Update generated files for copyright year and bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:47:15 -05:00
parent c7ffa3a122
commit d84b07a5cb
759 changed files with 12777 additions and 7149 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=95678987551b26755e5dc718c3cad2e975b574c7$
// $hash=fd39feb52a9ace3fda3d5bfda54c4a240173f2ff$
//
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
@ -29,12 +29,14 @@ void CEF_CALLBACK box_layout_set_flex_for_view(struct _cef_box_layout_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefBoxLayoutCppToC::Get(self)->SetFlexForView(CefViewCppToC::Unwrap(view),
@ -48,12 +50,14 @@ void CEF_CALLBACK box_layout_clear_flex_for_view(struct _cef_box_layout_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefBoxLayoutCppToC::Get(self)->ClearFlexForView(CefViewCppToC::Unwrap(view));
@ -66,8 +70,9 @@ box_layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBoxLayout> _retval =
@ -85,8 +90,9 @@ box_layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefFillLayout> _retval =
@ -103,8 +109,9 @@ int CEF_CALLBACK box_layout_is_valid(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=e665defe8e51c3405d75a3f1d9f382f6e9e9f81f$
// $hash=3f9e4984c1e1eff7e51ab13f9f7fe2ab249657ec$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BOX_LAYOUT_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=3c4be7d7450ee803b69453ae8b32dd37d95c921a$
// $hash=bb9fa0045c967777df8fd84c5b6c4223f7a84592$
//
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
@ -43,8 +43,9 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
// Verify param: settings; type: struct_byref_const
DCHECK(settings);
if (!settings)
if (!settings) {
return NULL;
}
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
@ -53,8 +54,9 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
// Translate param: settings; type: struct_byref_const
CefBrowserSettings settingsObj;
if (settings)
if (settings) {
settingsObj.Set(*settings, false);
}
// Execute
CefRefPtr<CefBrowserView> _retval = CefBrowserView::CreateBrowserView(
@ -75,8 +77,9 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_get_for_browser(
// Verify param: browser; type: refptr_same
DCHECK(browser);
if (!browser)
if (!browser) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -97,8 +100,9 @@ browser_view_get_browser(struct _cef_browser_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowser> _retval = CefBrowserViewCppToC::Get(self)->GetBrowser();
@ -114,8 +118,9 @@ browser_view_get_chrome_toolbar(struct _cef_browser_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -133,8 +138,9 @@ browser_view_set_prefer_accelerators(struct _cef_browser_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(self)->SetPreferAccelerators(
@ -148,8 +154,9 @@ browser_view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -166,8 +173,9 @@ cef_button_t* CEF_CALLBACK browser_view_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -184,8 +192,9 @@ cef_panel_t* CEF_CALLBACK browser_view_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -203,8 +212,9 @@ browser_view_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -222,8 +232,9 @@ browser_view_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -241,8 +252,9 @@ browser_view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -260,8 +272,9 @@ browser_view_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -278,8 +291,9 @@ int CEF_CALLBACK browser_view_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -296,8 +310,9 @@ int CEF_CALLBACK browser_view_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -315,12 +330,14 @@ int CEF_CALLBACK browser_view_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval =
@ -338,8 +355,9 @@ browser_view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -357,8 +375,9 @@ browser_view_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -375,8 +394,9 @@ int CEF_CALLBACK browser_view_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -393,8 +413,9 @@ void CEF_CALLBACK browser_view_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -407,8 +428,9 @@ int CEF_CALLBACK browser_view_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -426,8 +448,9 @@ void CEF_CALLBACK browser_view_set_group_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -441,8 +464,9 @@ browser_view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -460,8 +484,9 @@ browser_view_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -479,12 +504,14 @@ void CEF_CALLBACK browser_view_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -500,8 +527,9 @@ cef_rect_t CEF_CALLBACK browser_view_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -519,8 +547,9 @@ browser_view_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -538,12 +567,14 @@ void CEF_CALLBACK browser_view_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -559,8 +590,9 @@ cef_size_t CEF_CALLBACK browser_view_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -578,12 +610,14 @@ void CEF_CALLBACK browser_view_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -599,8 +633,9 @@ cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -618,12 +653,14 @@ void CEF_CALLBACK browser_view_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -639,8 +676,9 @@ cef_insets_t CEF_CALLBACK browser_view_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -658,8 +696,9 @@ browser_view_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -677,8 +716,9 @@ browser_view_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -692,8 +732,9 @@ browser_view_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -711,8 +752,9 @@ browser_view_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -730,8 +772,9 @@ int CEF_CALLBACK browser_view_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -748,8 +791,9 @@ void CEF_CALLBACK browser_view_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -763,8 +807,9 @@ void CEF_CALLBACK browser_view_set_visible(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -777,8 +822,9 @@ int CEF_CALLBACK browser_view_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -795,8 +841,9 @@ int CEF_CALLBACK browser_view_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -814,8 +861,9 @@ void CEF_CALLBACK browser_view_set_enabled(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -828,8 +876,9 @@ int CEF_CALLBACK browser_view_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -847,8 +896,9 @@ void CEF_CALLBACK browser_view_set_focusable(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -861,8 +911,9 @@ int CEF_CALLBACK browser_view_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -880,8 +931,9 @@ browser_view_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -898,8 +950,9 @@ void CEF_CALLBACK browser_view_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -913,8 +966,9 @@ void CEF_CALLBACK browser_view_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
@ -928,8 +982,9 @@ browser_view_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -947,12 +1002,14 @@ int CEF_CALLBACK browser_view_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -963,8 +1020,9 @@ int CEF_CALLBACK browser_view_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -978,12 +1036,14 @@ browser_view_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -994,8 +1054,9 @@ browser_view_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1008,12 +1069,14 @@ int CEF_CALLBACK browser_view_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1024,8 +1087,9 @@ int CEF_CALLBACK browser_view_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1039,12 +1103,14 @@ browser_view_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1055,8 +1121,9 @@ browser_view_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1070,16 +1137,19 @@ int CEF_CALLBACK browser_view_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1090,8 +1160,9 @@ int CEF_CALLBACK browser_view_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1105,16 +1176,19 @@ int CEF_CALLBACK browser_view_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1125,8 +1199,9 @@ int CEF_CALLBACK browser_view_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=dc07da6d436a7d99817045690a3932010cd1acfd$
// $hash=f981c5f7247ec57926549c145c47a7cdcbdd80a0$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=18d85c2997264af0f94976650eaf931805fa352e$
// $hash=499cb70269cbe05c9bba4b0672a26116f7436f76$
//
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
@ -33,16 +33,19 @@ void CEF_CALLBACK browser_view_delegate_on_browser_created(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: browser_view; type: refptr_diff
DCHECK(browser_view);
if (!browser_view)
if (!browser_view) {
return;
}
// Verify param: browser; type: refptr_diff
DCHECK(browser);
if (!browser)
if (!browser) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(self)->OnBrowserCreated(
@ -59,16 +62,19 @@ void CEF_CALLBACK browser_view_delegate_on_browser_destroyed(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: browser_view; type: refptr_diff
DCHECK(browser_view);
if (!browser_view)
if (!browser_view) {
return;
}
// Verify param: browser; type: refptr_diff
DCHECK(browser);
if (!browser)
if (!browser) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(self)->OnBrowserDestroyed(
@ -88,29 +94,34 @@ browser_view_delegate_get_delegate_for_popup_browser_view(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Verify param: browser_view; type: refptr_diff
DCHECK(browser_view);
if (!browser_view)
if (!browser_view) {
return NULL;
}
// Verify param: settings; type: struct_byref_const
DCHECK(settings);
if (!settings)
if (!settings) {
return NULL;
}
if (!template_util::has_valid_size(settings)) {
NOTREACHED() << "invalid settings->[base.]size";
return NULL;
}
// Verify param: client; type: refptr_same
DCHECK(client);
if (!client)
if (!client) {
return NULL;
}
// Translate param: settings; type: struct_byref_const
CefBrowserSettings settingsObj;
if (settings)
if (settings) {
settingsObj.Set(*settings, false);
}
// Execute
CefRefPtr<CefBrowserViewDelegate> _retval =
@ -132,16 +143,19 @@ int CEF_CALLBACK browser_view_delegate_on_popup_browser_view_created(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: browser_view; type: refptr_diff
DCHECK(browser_view);
if (!browser_view)
if (!browser_view) {
return 0;
}
// Verify param: popup_browser_view; type: refptr_diff
DCHECK(popup_browser_view);
if (!popup_browser_view)
if (!popup_browser_view) {
return 0;
}
// Execute
bool _retval =
@ -162,8 +176,9 @@ browser_view_delegate_get_chrome_toolbar_type(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_CTT_NONE;
}
// Execute
cef_chrome_toolbar_type_t _retval =
@ -181,12 +196,14 @@ browser_view_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
@ -205,12 +222,14 @@ browser_view_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
@ -229,12 +248,14 @@ browser_view_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
@ -254,12 +275,14 @@ browser_view_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefBrowserViewDelegateCppToC::Get(
@ -280,16 +303,19 @@ browser_view_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(
@ -308,16 +334,19 @@ browser_view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(
@ -335,12 +364,14 @@ browser_view_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(
@ -357,16 +388,19 @@ browser_view_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -385,12 +419,14 @@ browser_view_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(
@ -406,12 +442,14 @@ browser_view_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefBrowserViewDelegateCppToC::Get(

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5bd6bbfbc74b0059f073463c28b74c9b31916e59$
// $hash=b091e620040d148171ce5c99d5376cb00356eb37$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_DELEGATE_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f002c60074ac76bb3e4db3d070b5ea1b430e620d$
// $hash=5428bc6354709f7b7083f545fa0ed5c1af82470d$
//
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
@ -35,8 +35,9 @@ button_as_label_button(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefLabelButton> _retval =
@ -53,8 +54,9 @@ void CEF_CALLBACK button_set_state(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(self)->SetState(state);
@ -66,8 +68,9 @@ cef_button_state_t CEF_CALLBACK button_get_state(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_BUTTON_STATE_NORMAL;
}
// Execute
cef_button_state_t _retval = CefButtonCppToC::Get(self)->GetState();
@ -83,8 +86,9 @@ void CEF_CALLBACK button_set_ink_drop_enabled(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(self)->SetInkDropEnabled(enabled ? true : false);
@ -97,12 +101,14 @@ void CEF_CALLBACK button_set_tooltip_text(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: tooltip_text; type: string_byref_const
DCHECK(tooltip_text);
if (!tooltip_text)
if (!tooltip_text) {
return;
}
// Execute
CefButtonCppToC::Get(self)->SetTooltipText(CefString(tooltip_text));
@ -115,12 +121,14 @@ void CEF_CALLBACK button_set_accessible_name(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: name; type: string_byref_const
DCHECK(name);
if (!name)
if (!name) {
return;
}
// Execute
CefButtonCppToC::Get(self)->SetAccessibleName(CefString(name));
@ -133,8 +141,9 @@ button_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -151,8 +160,9 @@ cef_button_t* CEF_CALLBACK button_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -168,8 +178,9 @@ cef_panel_t* CEF_CALLBACK button_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -186,8 +197,9 @@ button_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -204,8 +216,9 @@ cef_textfield_t* CEF_CALLBACK button_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -223,8 +236,9 @@ button_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -242,8 +256,9 @@ cef_string_userfree_t CEF_CALLBACK button_to_string(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -260,8 +275,9 @@ int CEF_CALLBACK button_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -277,8 +293,9 @@ int CEF_CALLBACK button_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -295,12 +312,14 @@ int CEF_CALLBACK button_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -317,8 +336,9 @@ button_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -335,8 +355,9 @@ struct _cef_window_t* CEF_CALLBACK button_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -352,8 +373,9 @@ int CEF_CALLBACK button_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -369,8 +391,9 @@ void CEF_CALLBACK button_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetID(id);
@ -382,8 +405,9 @@ int CEF_CALLBACK button_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -399,8 +423,9 @@ void CEF_CALLBACK button_set_group_id(struct _cef_view_t* self, int group_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -414,8 +439,9 @@ button_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -433,8 +459,9 @@ button_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -452,12 +479,14 @@ void CEF_CALLBACK button_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -473,8 +502,9 @@ cef_rect_t CEF_CALLBACK button_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -490,8 +520,9 @@ cef_rect_t CEF_CALLBACK button_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -509,12 +540,14 @@ void CEF_CALLBACK button_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -529,8 +562,9 @@ cef_size_t CEF_CALLBACK button_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -547,12 +581,14 @@ void CEF_CALLBACK button_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -568,8 +604,9 @@ cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -587,12 +624,14 @@ void CEF_CALLBACK button_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -608,8 +647,9 @@ cef_insets_t CEF_CALLBACK button_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -625,8 +665,9 @@ cef_size_t CEF_CALLBACK button_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -643,8 +684,9 @@ void CEF_CALLBACK button_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -657,8 +699,9 @@ cef_size_t CEF_CALLBACK button_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -675,8 +718,9 @@ cef_size_t CEF_CALLBACK button_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -694,8 +738,9 @@ int CEF_CALLBACK button_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -711,8 +756,9 @@ void CEF_CALLBACK button_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -725,8 +771,9 @@ void CEF_CALLBACK button_set_visible(struct _cef_view_t* self, int visible) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -739,8 +786,9 @@ int CEF_CALLBACK button_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -756,8 +804,9 @@ int CEF_CALLBACK button_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -773,8 +822,9 @@ void CEF_CALLBACK button_set_enabled(struct _cef_view_t* self, int enabled) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -787,8 +837,9 @@ int CEF_CALLBACK button_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -805,8 +856,9 @@ void CEF_CALLBACK button_set_focusable(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -819,8 +871,9 @@ int CEF_CALLBACK button_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -836,8 +889,9 @@ int CEF_CALLBACK button_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -853,8 +907,9 @@ void CEF_CALLBACK button_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->RequestFocus();
@ -867,8 +922,9 @@ void CEF_CALLBACK button_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
@ -881,8 +937,9 @@ cef_color_t CEF_CALLBACK button_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -900,12 +957,14 @@ int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -915,8 +974,9 @@ int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -929,12 +989,14 @@ int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -944,8 +1006,9 @@ int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -958,12 +1021,14 @@ int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -973,8 +1038,9 @@ int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -987,12 +1053,14 @@ int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1002,8 +1070,9 @@ int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1017,16 +1086,19 @@ int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1037,8 +1109,9 @@ int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1052,16 +1125,19 @@ int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1072,8 +1148,9 @@ int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=60660c0973fee97e850fcf4026b57a6f367ea294$
// $hash=3fc906cb8937c58418501c33ba81462806b26860$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4e776c8db93f07efd47e80fe380071539e94ec81$
// $hash=87511af5e1a3eebefe2fa90759274ac14cdbda62$
//
#include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h"
@ -30,12 +30,14 @@ button_delegate_on_button_pressed(struct _cef_button_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: button; type: refptr_diff
DCHECK(button);
if (!button)
if (!button) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(self)->OnButtonPressed(
@ -50,12 +52,14 @@ button_delegate_on_button_state_changed(struct _cef_button_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: button; type: refptr_diff
DCHECK(button);
if (!button)
if (!button) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(self)->OnButtonStateChanged(
@ -70,12 +74,14 @@ button_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefButtonDelegateCppToC::Get(
@ -94,12 +100,14 @@ button_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefButtonDelegateCppToC::Get(
@ -118,12 +126,14 @@ button_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefButtonDelegateCppToC::Get(
@ -143,12 +153,14 @@ button_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefButtonDelegateCppToC::Get(
@ -169,16 +181,19 @@ button_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
@ -196,16 +211,19 @@ button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
@ -222,12 +240,14 @@ button_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
@ -243,16 +263,19 @@ button_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -269,12 +292,14 @@ void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
@ -288,12 +313,14 @@ void CEF_CALLBACK button_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f3b8ad78e8614f873ee581697ac29cad49a19260$
// $hash=455b4eb400cc642cfb4cf0089b12059b8be31af6$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_DELEGATE_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d2f3054a54f514ce650101e293bf085eeba48ee7$
// $hash=c876a721fa14497054e1d3fd3bd95a09298cd774$
//
#include "libcef_dll/cpptoc/views/display_cpptoc.h"
@ -39,8 +39,9 @@ CEF_EXPORT cef_display_t* cef_display_get_nearest_point(
// Verify param: point; type: simple_byref_const
DCHECK(point);
if (!point)
if (!point) {
return NULL;
}
// Translate param: point; type: simple_byref_const
CefPoint pointVal = point ? *point : CefPoint();
@ -62,8 +63,9 @@ CEF_EXPORT cef_display_t* cef_display_get_matching_bounds(
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return NULL;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -96,8 +98,9 @@ CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
// Verify param: displays; type: refptr_vec_same_byref
DCHECK(displaysCount && (*displaysCount == 0 || displays));
if (!displaysCount || (*displaysCount > 0 && !displays))
if (!displaysCount || (*displaysCount > 0 && !displays)) {
return;
}
// Translate param: displays; type: refptr_vec_same_byref
std::vector<CefRefPtr<CefDisplay>> displaysList;
@ -129,8 +132,9 @@ cef_display_convert_screen_point_to_pixels(const cef_point_t* point) {
// Verify param: point; type: simple_byref_const
DCHECK(point);
if (!point)
if (!point) {
return CefPoint();
}
// Translate param: point; type: simple_byref_const
CefPoint pointVal = point ? *point : CefPoint();
@ -150,8 +154,9 @@ cef_display_convert_screen_point_from_pixels(const cef_point_t* point) {
// Verify param: point; type: simple_byref_const
DCHECK(point);
if (!point)
if (!point) {
return CefPoint();
}
// Translate param: point; type: simple_byref_const
CefPoint pointVal = point ? *point : CefPoint();
@ -171,8 +176,9 @@ cef_display_convert_screen_rect_to_pixels(const cef_rect_t* rect) {
// Verify param: rect; type: simple_byref_const
DCHECK(rect);
if (!rect)
if (!rect) {
return CefRect();
}
// Translate param: rect; type: simple_byref_const
CefRect rectVal = rect ? *rect : CefRect();
@ -192,8 +198,9 @@ cef_display_convert_screen_rect_from_pixels(const cef_rect_t* rect) {
// Verify param: rect; type: simple_byref_const
DCHECK(rect);
if (!rect)
if (!rect) {
return CefRect();
}
// Translate param: rect; type: simple_byref_const
CefRect rectVal = rect ? *rect : CefRect();
@ -215,8 +222,9 @@ int64 CEF_CALLBACK display_get_id(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int64 _retval = CefDisplayCppToC::Get(self)->GetID();
@ -232,8 +240,9 @@ display_get_device_scale_factor(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
float _retval = CefDisplayCppToC::Get(self)->GetDeviceScaleFactor();
@ -249,12 +258,14 @@ void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -263,8 +274,9 @@ void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self,
CefDisplayCppToC::Get(self)->ConvertPointToPixels(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
}
void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self,
@ -274,12 +286,14 @@ void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -288,8 +302,9 @@ void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self,
CefDisplayCppToC::Get(self)->ConvertPointFromPixels(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
}
cef_rect_t CEF_CALLBACK display_get_bounds(struct _cef_display_t* self) {
@ -298,8 +313,9 @@ cef_rect_t CEF_CALLBACK display_get_bounds(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefDisplayCppToC::Get(self)->GetBounds();
@ -314,8 +330,9 @@ cef_rect_t CEF_CALLBACK display_get_work_area(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefDisplayCppToC::Get(self)->GetWorkArea();
@ -330,8 +347,9 @@ int CEF_CALLBACK display_get_rotation(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefDisplayCppToC::Get(self)->GetRotation();

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5918cca150c476ead77121bb93599c763a3e13e7$
// $hash=73811073aeb490787e777b5e7f8e41ef34cd6369$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_DISPLAY_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=304f5db25f7e2a1e4cf169f7cc205013bb06f861$
// $hash=94b09cfcb27c860d91d5c36b80f84569e35c9147$
//
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
@ -27,8 +27,9 @@ fill_layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBoxLayout> _retval =
@ -46,8 +47,9 @@ fill_layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefFillLayout> _retval =
@ -64,8 +66,9 @@ int CEF_CALLBACK fill_layout_is_valid(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=e2bad567245e3e1bdf240be33a3b0008ec0e3b18$
// $hash=88b95199af576610e6ce7e71603fb3c8b1426046$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_FILL_LAYOUT_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c32cf44685b993619659ae5f6fb681e40d0b4cd9$
// $hash=b82103e68fffd36a97aa8d9784a1f2def77a6fab$
//
#include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
@ -37,8 +37,9 @@ CEF_EXPORT cef_label_button_t* cef_label_button_create(
// Verify param: delegate; type: refptr_diff
DCHECK(delegate);
if (!delegate)
if (!delegate) {
return NULL;
}
// Unverified params: text
// Execute
@ -60,8 +61,9 @@ label_button_as_menu_button(struct _cef_label_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefMenuButton> _retval =
@ -78,12 +80,14 @@ void CEF_CALLBACK label_button_set_text(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: text; type: string_byref_const
DCHECK(text);
if (!text)
if (!text) {
return;
}
// Execute
CefLabelButtonCppToC::Get(self)->SetText(CefString(text));
@ -96,8 +100,9 @@ label_button_get_text(struct _cef_label_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval = CefLabelButtonCppToC::Get(self)->GetText();
@ -114,8 +119,9 @@ void CEF_CALLBACK label_button_set_image(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Unverified params: image
// Execute
@ -131,8 +137,9 @@ label_button_get_image(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefImage> _retval =
@ -150,8 +157,9 @@ void CEF_CALLBACK label_button_set_text_color(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(self)->SetTextColor(for_state, color);
@ -165,8 +173,9 @@ label_button_set_enabled_text_colors(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(self)->SetEnabledTextColors(color);
@ -179,12 +188,14 @@ void CEF_CALLBACK label_button_set_font_list(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: font_list; type: string_byref_const
DCHECK(font_list);
if (!font_list)
if (!font_list) {
return;
}
// Execute
CefLabelButtonCppToC::Get(self)->SetFontList(CefString(font_list));
@ -198,8 +209,9 @@ label_button_set_horizontal_alignment(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(self)->SetHorizontalAlignment(alignment);
@ -213,12 +225,14 @@ label_button_set_minimum_size(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -235,12 +249,14 @@ label_button_set_maximum_size(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -256,8 +272,9 @@ label_button_as_label_button(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefLabelButton> _retval =
@ -275,8 +292,9 @@ void CEF_CALLBACK label_button_set_state(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -290,8 +308,9 @@ label_button_get_state(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_BUTTON_STATE_NORMAL;
}
// Execute
cef_button_state_t _retval =
@ -309,8 +328,9 @@ void CEF_CALLBACK label_button_set_ink_drop_enabled(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -325,12 +345,14 @@ label_button_set_tooltip_text(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: tooltip_text; type: string_byref_const
DCHECK(tooltip_text);
if (!tooltip_text)
if (!tooltip_text) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -344,12 +366,14 @@ void CEF_CALLBACK label_button_set_accessible_name(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: name; type: string_byref_const
DCHECK(name);
if (!name)
if (!name) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -363,8 +387,9 @@ label_button_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -381,8 +406,9 @@ cef_button_t* CEF_CALLBACK label_button_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -399,8 +425,9 @@ cef_panel_t* CEF_CALLBACK label_button_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -418,8 +445,9 @@ label_button_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -437,8 +465,9 @@ label_button_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -456,8 +485,9 @@ label_button_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -475,8 +505,9 @@ label_button_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -493,8 +524,9 @@ int CEF_CALLBACK label_button_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -511,8 +543,9 @@ int CEF_CALLBACK label_button_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -530,12 +563,14 @@ int CEF_CALLBACK label_button_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval =
@ -553,8 +588,9 @@ label_button_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -572,8 +608,9 @@ label_button_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -590,8 +627,9 @@ int CEF_CALLBACK label_button_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -608,8 +646,9 @@ void CEF_CALLBACK label_button_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -622,8 +661,9 @@ int CEF_CALLBACK label_button_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -641,8 +681,9 @@ void CEF_CALLBACK label_button_set_group_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -656,8 +697,9 @@ label_button_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -675,8 +717,9 @@ label_button_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -694,12 +737,14 @@ void CEF_CALLBACK label_button_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -715,8 +760,9 @@ cef_rect_t CEF_CALLBACK label_button_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -734,8 +780,9 @@ label_button_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -753,12 +800,14 @@ void CEF_CALLBACK label_button_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -774,8 +823,9 @@ cef_size_t CEF_CALLBACK label_button_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -793,12 +843,14 @@ void CEF_CALLBACK label_button_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -814,8 +866,9 @@ cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -833,12 +886,14 @@ void CEF_CALLBACK label_button_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -854,8 +909,9 @@ cef_insets_t CEF_CALLBACK label_button_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -873,8 +929,9 @@ label_button_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -892,8 +949,9 @@ label_button_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -907,8 +965,9 @@ label_button_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -926,8 +985,9 @@ label_button_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -945,8 +1005,9 @@ int CEF_CALLBACK label_button_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -963,8 +1024,9 @@ void CEF_CALLBACK label_button_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -978,8 +1040,9 @@ void CEF_CALLBACK label_button_set_visible(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -992,8 +1055,9 @@ int CEF_CALLBACK label_button_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1010,8 +1074,9 @@ int CEF_CALLBACK label_button_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1029,8 +1094,9 @@ void CEF_CALLBACK label_button_set_enabled(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -1043,8 +1109,9 @@ int CEF_CALLBACK label_button_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1062,8 +1129,9 @@ void CEF_CALLBACK label_button_set_focusable(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -1076,8 +1144,9 @@ int CEF_CALLBACK label_button_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1095,8 +1164,9 @@ label_button_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1113,8 +1183,9 @@ void CEF_CALLBACK label_button_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -1128,8 +1199,9 @@ void CEF_CALLBACK label_button_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
@ -1143,8 +1215,9 @@ label_button_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -1162,12 +1235,14 @@ int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1178,8 +1253,9 @@ int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1193,12 +1269,14 @@ label_button_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1209,8 +1287,9 @@ label_button_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1223,12 +1302,14 @@ int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1239,8 +1320,9 @@ int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1254,12 +1336,14 @@ label_button_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1270,8 +1354,9 @@ label_button_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1285,16 +1370,19 @@ int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1305,8 +1393,9 @@ int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1320,16 +1409,19 @@ int CEF_CALLBACK label_button_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1340,8 +1432,9 @@ int CEF_CALLBACK label_button_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=60d980037705be97fb1113e0b23b0e4bdd29b801$
// $hash=8e86fa292ee6e5debd2525e71eaa3ae8e42c8e55$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LABEL_BUTTON_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=91327244b4a4c037841a54ea2a06ebe42efe5477$
// $hash=e8d8216333b81676768e82762ec1da35a19e62f8$
//
#include "libcef_dll/cpptoc/views/layout_cpptoc.h"
@ -28,8 +28,9 @@ layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBoxLayout> _retval = CefLayoutCppToC::Get(self)->AsBoxLayout();
@ -45,8 +46,9 @@ layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefFillLayout> _retval = CefLayoutCppToC::Get(self)->AsFillLayout();
@ -61,8 +63,9 @@ int CEF_CALLBACK layout_is_valid(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefLayoutCppToC::Get(self)->IsValid();

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8044bcf51ec6feacc1a186f6780c9076f5c1ec74$
// $hash=d0adda3ed7bbb825b0c9959960f832d23f75ccdc$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LAYOUT_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=be533dcd2dd95060259a8baaece87bf2c6df0c27$
// $hash=8a0e747873df46bb39ec65538eb0d6b4f1b04327$
//
#include "libcef_dll/cpptoc/views/menu_button_cpptoc.h"
@ -38,8 +38,9 @@ CEF_EXPORT cef_menu_button_t* cef_menu_button_create(
// Verify param: delegate; type: refptr_diff
DCHECK(delegate);
if (!delegate)
if (!delegate) {
return NULL;
}
// Unverified params: text
// Execute
@ -64,16 +65,19 @@ menu_button_show_menu(struct _cef_menu_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: menu_model; type: refptr_same
DCHECK(menu_model);
if (!menu_model)
if (!menu_model) {
return;
}
// Verify param: screen_point; type: simple_byref_const
DCHECK(screen_point);
if (!screen_point)
if (!screen_point) {
return;
}
// Translate param: screen_point; type: simple_byref_const
CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
@ -89,8 +93,9 @@ void CEF_CALLBACK menu_button_trigger_menu(struct _cef_menu_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(self)->TriggerMenu();
@ -103,8 +108,9 @@ menu_button_as_menu_button(struct _cef_label_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefMenuButton> _retval =
@ -122,12 +128,14 @@ void CEF_CALLBACK menu_button_set_text(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: text; type: string_byref_const
DCHECK(text);
if (!text)
if (!text) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -141,8 +149,9 @@ menu_button_get_text(struct _cef_label_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -161,8 +170,9 @@ void CEF_CALLBACK menu_button_set_image(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Unverified params: image
// Execute
@ -178,8 +188,9 @@ menu_button_get_image(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefImage> _retval =
@ -198,8 +209,9 @@ void CEF_CALLBACK menu_button_set_text_color(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -214,8 +226,9 @@ menu_button_set_enabled_text_colors(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -229,12 +242,14 @@ void CEF_CALLBACK menu_button_set_font_list(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: font_list; type: string_byref_const
DCHECK(font_list);
if (!font_list)
if (!font_list) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -249,8 +264,9 @@ menu_button_set_horizontal_alignment(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -264,12 +280,14 @@ void CEF_CALLBACK menu_button_set_minimum_size(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -286,12 +304,14 @@ void CEF_CALLBACK menu_button_set_maximum_size(struct _cef_label_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -308,8 +328,9 @@ menu_button_as_label_button(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefLabelButton> _retval =
@ -327,8 +348,9 @@ void CEF_CALLBACK menu_button_set_state(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -342,8 +364,9 @@ menu_button_get_state(struct _cef_button_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_BUTTON_STATE_NORMAL;
}
// Execute
cef_button_state_t _retval =
@ -361,8 +384,9 @@ void CEF_CALLBACK menu_button_set_ink_drop_enabled(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -377,12 +401,14 @@ menu_button_set_tooltip_text(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: tooltip_text; type: string_byref_const
DCHECK(tooltip_text);
if (!tooltip_text)
if (!tooltip_text) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -396,12 +422,14 @@ void CEF_CALLBACK menu_button_set_accessible_name(struct _cef_button_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: name; type: string_byref_const
DCHECK(name);
if (!name)
if (!name) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -415,8 +443,9 @@ menu_button_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -433,8 +462,9 @@ cef_button_t* CEF_CALLBACK menu_button_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -451,8 +481,9 @@ cef_panel_t* CEF_CALLBACK menu_button_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -470,8 +501,9 @@ menu_button_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -489,8 +521,9 @@ menu_button_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -508,8 +541,9 @@ menu_button_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -527,8 +561,9 @@ menu_button_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -545,8 +580,9 @@ int CEF_CALLBACK menu_button_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -563,8 +599,9 @@ int CEF_CALLBACK menu_button_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -582,12 +619,14 @@ int CEF_CALLBACK menu_button_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval =
@ -605,8 +644,9 @@ menu_button_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -624,8 +664,9 @@ menu_button_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -642,8 +683,9 @@ int CEF_CALLBACK menu_button_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -660,8 +702,9 @@ void CEF_CALLBACK menu_button_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -674,8 +717,9 @@ int CEF_CALLBACK menu_button_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -693,8 +737,9 @@ void CEF_CALLBACK menu_button_set_group_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -708,8 +753,9 @@ menu_button_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -727,8 +773,9 @@ menu_button_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -746,12 +793,14 @@ void CEF_CALLBACK menu_button_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -767,8 +816,9 @@ cef_rect_t CEF_CALLBACK menu_button_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -786,8 +836,9 @@ menu_button_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -805,12 +856,14 @@ void CEF_CALLBACK menu_button_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -826,8 +879,9 @@ cef_size_t CEF_CALLBACK menu_button_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -845,12 +899,14 @@ void CEF_CALLBACK menu_button_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -866,8 +922,9 @@ cef_point_t CEF_CALLBACK menu_button_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -885,12 +942,14 @@ void CEF_CALLBACK menu_button_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -906,8 +965,9 @@ cef_insets_t CEF_CALLBACK menu_button_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -925,8 +985,9 @@ menu_button_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -943,8 +1004,9 @@ void CEF_CALLBACK menu_button_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -957,8 +1019,9 @@ cef_size_t CEF_CALLBACK menu_button_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -975,8 +1038,9 @@ cef_size_t CEF_CALLBACK menu_button_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -994,8 +1058,9 @@ int CEF_CALLBACK menu_button_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -1012,8 +1077,9 @@ void CEF_CALLBACK menu_button_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1027,8 +1093,9 @@ void CEF_CALLBACK menu_button_set_visible(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1041,8 +1108,9 @@ int CEF_CALLBACK menu_button_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1059,8 +1127,9 @@ int CEF_CALLBACK menu_button_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1078,8 +1147,9 @@ void CEF_CALLBACK menu_button_set_enabled(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1092,8 +1162,9 @@ int CEF_CALLBACK menu_button_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1111,8 +1182,9 @@ void CEF_CALLBACK menu_button_set_focusable(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1125,8 +1197,9 @@ int CEF_CALLBACK menu_button_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1144,8 +1217,9 @@ menu_button_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -1162,8 +1236,9 @@ void CEF_CALLBACK menu_button_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1177,8 +1252,9 @@ void CEF_CALLBACK menu_button_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
@ -1192,8 +1268,9 @@ menu_button_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -1211,12 +1288,14 @@ int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1227,8 +1306,9 @@ int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1241,12 +1321,14 @@ int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1257,8 +1339,9 @@ int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1271,12 +1354,14 @@ int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1287,8 +1372,9 @@ int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1301,12 +1387,14 @@ int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1317,8 +1405,9 @@ int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1332,16 +1421,19 @@ int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1352,8 +1444,9 @@ int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1367,16 +1460,19 @@ int CEF_CALLBACK menu_button_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1387,8 +1483,9 @@ int CEF_CALLBACK menu_button_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d3b01ef1bca22e454dd4375df90a5a3fbd0f11f3$
// $hash=f2f44594e4cbcb3ef1ee3eb39d3d498f7a6cafbc$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=269173ab9f81796dec4b732e2050e26a177d8387$
// $hash=9758823653e71b6f40a07d1ccf051dd10e92b5b5$
//
#include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h"
@ -33,20 +33,24 @@ void CEF_CALLBACK menu_button_delegate_on_menu_button_pressed(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: menu_button; type: refptr_diff
DCHECK(menu_button);
if (!menu_button)
if (!menu_button) {
return;
}
// Verify param: screen_point; type: simple_byref_const
DCHECK(screen_point);
if (!screen_point)
if (!screen_point) {
return;
}
// Verify param: button_pressed_lock; type: refptr_diff
DCHECK(button_pressed_lock);
if (!button_pressed_lock)
if (!button_pressed_lock) {
return;
}
// Translate param: screen_point; type: simple_byref_const
CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
@ -65,12 +69,14 @@ menu_button_delegate_on_button_pressed(struct _cef_button_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: button; type: refptr_diff
DCHECK(button);
if (!button)
if (!button) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -86,12 +92,14 @@ void CEF_CALLBACK menu_button_delegate_on_button_state_changed(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: button; type: refptr_diff
DCHECK(button);
if (!button)
if (!button) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -107,12 +115,14 @@ menu_button_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
@ -131,12 +141,14 @@ menu_button_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
@ -155,12 +167,14 @@ menu_button_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
@ -180,12 +194,14 @@ menu_button_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefMenuButtonDelegateCppToC::Get(
@ -206,16 +222,19 @@ menu_button_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -234,16 +253,19 @@ menu_button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -261,12 +283,14 @@ menu_button_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -283,16 +307,19 @@ menu_button_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -311,12 +338,14 @@ menu_button_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(
@ -332,12 +361,14 @@ menu_button_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefMenuButtonDelegateCppToC::Get(

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=670b8f7f67a5eacd3288724ec6439c56248477ec$
// $hash=9178b58c1b03965fc20636f3efd97c2385618574$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_DELEGATE_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c6db7f8e7c031a323e9da96aed3aee7fd7a4f558$
// $hash=2dc6b6ba5f4b65f25877aa56083d0e6dea42e7ae$
//
#include "libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.h"

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=072279b56eeeaf089107f5f78ee431c907afda46$
// $hash=5d7f30f1265294fc8617b444bd35bee3da172746$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_PRESSED_LOCK_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=6cf61c4e2900a7776278d4a0542f2b3e32d4420b$
// $hash=8ebed0f097f98544037eeebfb9b2dbf21d579f03$
//
#include "libcef_dll/cpptoc/views/overlay_controller_cpptoc.h"
@ -28,8 +28,9 @@ overlay_controller_is_valid(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsValid();
@ -46,12 +47,14 @@ overlay_controller_is_same(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsSame(
@ -68,8 +71,9 @@ overlay_controller_get_contents_view(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -86,8 +90,9 @@ overlay_controller_get_window(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -104,8 +109,9 @@ overlay_controller_get_docking_mode(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_DOCKING_MODE_TOP_LEFT;
}
// Execute
cef_docking_mode_t _retval =
@ -122,8 +128,9 @@ overlay_controller_destroy(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefOverlayControllerCppToC::Get(self)->Destroy();
@ -137,12 +144,14 @@ overlay_controller_set_bounds(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -158,8 +167,9 @@ overlay_controller_get_bounds(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefOverlayControllerCppToC::Get(self)->GetBounds();
@ -175,8 +185,9 @@ cef_rect_t CEF_CALLBACK overlay_controller_get_bounds_in_screen(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -194,12 +205,14 @@ overlay_controller_set_size(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -215,8 +228,9 @@ overlay_controller_get_size(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefOverlayControllerCppToC::Get(self)->GetSize();
@ -233,12 +247,14 @@ overlay_controller_set_position(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -254,8 +270,9 @@ overlay_controller_get_position(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval = CefOverlayControllerCppToC::Get(self)->GetPosition();
@ -272,12 +289,14 @@ overlay_controller_set_insets(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -293,8 +312,9 @@ overlay_controller_get_insets(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval = CefOverlayControllerCppToC::Get(self)->GetInsets();
@ -310,8 +330,9 @@ void CEF_CALLBACK overlay_controller_size_to_preferred_size(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefOverlayControllerCppToC::Get(self)->SizeToPreferredSize();
@ -325,8 +346,9 @@ overlay_controller_set_visible(struct _cef_overlay_controller_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefOverlayControllerCppToC::Get(self)->SetVisible(visible ? true : false);
@ -339,8 +361,9 @@ overlay_controller_is_visible(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsVisible();
@ -356,8 +379,9 @@ overlay_controller_is_drawn(struct _cef_overlay_controller_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsDrawn();

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=15c5e3c251b7a4f882b2e49e9a2ee6e84deb21e1$
// $hash=8d50609d2e79539752a8118f831e853b845892f4$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_OVERLAY_CONTROLLER_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8b6386137895a8c202890fd6a5d239eddd9e400e$
// $hash=bbcc06d178c7f86041c0b9f0887c67427a7381ff$
//
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
@ -53,8 +53,9 @@ struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval = CefPanelCppToC::Get(self)->AsWindow();
@ -70,8 +71,9 @@ panel_set_to_fill_layout(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefFillLayout> _retval =
@ -89,12 +91,14 @@ panel_set_to_box_layout(struct _cef_panel_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Verify param: settings; type: simple_byref_const
DCHECK(settings);
if (!settings)
if (!settings) {
return NULL;
}
// Translate param: settings; type: simple_byref_const
CefBoxLayoutSettings settingsVal =
@ -114,8 +118,9 @@ cef_layout_t* CEF_CALLBACK panel_get_layout(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefLayout> _retval = CefPanelCppToC::Get(self)->GetLayout();
@ -130,8 +135,9 @@ void CEF_CALLBACK panel_layout(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(self)->Layout();
@ -144,12 +150,14 @@ void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelCppToC::Get(self)->AddChildView(CefViewCppToC::Unwrap(view));
@ -163,16 +171,19 @@ void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: index; type: simple_byval
DCHECK_GE(index, 0);
if (index < 0)
if (index < 0) {
return;
}
// Execute
CefPanelCppToC::Get(self)->AddChildViewAt(CefViewCppToC::Unwrap(view), index);
@ -186,12 +197,14 @@ void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelCppToC::Get(self)->ReorderChildView(CefViewCppToC::Unwrap(view),
@ -205,12 +218,14 @@ void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelCppToC::Get(self)->RemoveChildView(CefViewCppToC::Unwrap(view));
@ -222,8 +237,9 @@ void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(self)->RemoveAllChildViews();
@ -235,8 +251,9 @@ size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
size_t _retval = CefPanelCppToC::Get(self)->GetChildViewCount();
@ -252,12 +269,14 @@ panel_get_child_view_at(struct _cef_panel_t* self, int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Verify param: index; type: simple_byval
DCHECK_GE(index, 0);
if (index < 0)
if (index < 0) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval = CefPanelCppToC::Get(self)->GetChildViewAt(index);
@ -273,8 +292,9 @@ panel_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -291,8 +311,9 @@ cef_button_t* CEF_CALLBACK panel_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -308,8 +329,9 @@ cef_panel_t* CEF_CALLBACK panel_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -325,8 +347,9 @@ cef_scroll_view_t* CEF_CALLBACK panel_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -342,8 +365,9 @@ cef_textfield_t* CEF_CALLBACK panel_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -360,8 +384,9 @@ panel_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -378,8 +403,9 @@ cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -395,8 +421,9 @@ int CEF_CALLBACK panel_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -412,8 +439,9 @@ int CEF_CALLBACK panel_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -430,12 +458,14 @@ int CEF_CALLBACK panel_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -452,8 +482,9 @@ panel_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -469,8 +500,9 @@ struct _cef_window_t* CEF_CALLBACK panel_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -486,8 +518,9 @@ int CEF_CALLBACK panel_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -503,8 +536,9 @@ void CEF_CALLBACK panel_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetID(id);
@ -516,8 +550,9 @@ int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -533,8 +568,9 @@ void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, int group_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -548,8 +584,9 @@ panel_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -567,8 +604,9 @@ struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -586,12 +624,14 @@ void CEF_CALLBACK panel_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -607,8 +647,9 @@ cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -624,8 +665,9 @@ cef_rect_t CEF_CALLBACK panel_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -642,12 +684,14 @@ void CEF_CALLBACK panel_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -662,8 +706,9 @@ cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -680,12 +725,14 @@ void CEF_CALLBACK panel_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -701,8 +748,9 @@ cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -719,12 +767,14 @@ void CEF_CALLBACK panel_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -740,8 +790,9 @@ cef_insets_t CEF_CALLBACK panel_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -757,8 +808,9 @@ cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -774,8 +826,9 @@ void CEF_CALLBACK panel_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -788,8 +841,9 @@ cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -805,8 +859,9 @@ cef_size_t CEF_CALLBACK panel_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -823,8 +878,9 @@ int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -840,8 +896,9 @@ void CEF_CALLBACK panel_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->InvalidateLayout();
@ -853,8 +910,9 @@ void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, int visible) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -867,8 +925,9 @@ int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -884,8 +943,9 @@ int CEF_CALLBACK panel_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -901,8 +961,9 @@ void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, int enabled) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -915,8 +976,9 @@ int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -932,8 +994,9 @@ void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, int focusable) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -946,8 +1009,9 @@ int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -963,8 +1027,9 @@ int CEF_CALLBACK panel_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -980,8 +1045,9 @@ void CEF_CALLBACK panel_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->RequestFocus();
@ -994,8 +1060,9 @@ void CEF_CALLBACK panel_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
@ -1008,8 +1075,9 @@ cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -1027,12 +1095,14 @@ int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1042,8 +1112,9 @@ int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1056,12 +1127,14 @@ int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1071,8 +1144,9 @@ int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1085,12 +1159,14 @@ int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1100,8 +1176,9 @@ int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1114,12 +1191,14 @@ int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1129,8 +1208,9 @@ int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1144,16 +1224,19 @@ int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1164,8 +1247,9 @@ int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1179,16 +1263,19 @@ int CEF_CALLBACK panel_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1199,8 +1286,9 @@ int CEF_CALLBACK panel_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4fd7a58485d8ef00e6b2dff8ffdfcb1405eb4fcc$
// $hash=2c4b5c88fc2a00039dc5eb01aaa90ecd7c2ea0ad$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=03a39472314a6cb7cf93fb0196be57e9ae308c53$
// $hash=5738293c290214f784a22e3144475247cd4ee3b4$
//
#include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h"
@ -29,12 +29,14 @@ panel_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -53,12 +55,14 @@ panel_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -77,12 +81,14 @@ panel_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -102,12 +108,14 @@ panel_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval =
@ -128,16 +136,19 @@ panel_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
@ -155,16 +166,19 @@ panel_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
@ -181,12 +195,14 @@ panel_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
@ -202,16 +218,19 @@ panel_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -228,12 +247,14 @@ void CEF_CALLBACK panel_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
@ -247,12 +268,14 @@ void CEF_CALLBACK panel_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=821d48d74b437c7a0387b1d0ac1875621873b2e4$
// $hash=1eedf21b5a9e1edb24e6c24de55c991388b50c7c$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_DELEGATE_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=02f2588f9c40c510115d3279fbffdb9bf2f4dcfb$
// $hash=6f6ba39e44e91b687fc1f4d0c2c1873664b5cf93$
//
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
@ -51,12 +51,14 @@ void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefScrollViewCppToC::Get(self)->SetContentView(CefViewCppToC::Unwrap(view));
@ -69,8 +71,9 @@ scroll_view_get_content_view(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval = CefScrollViewCppToC::Get(self)->GetContentView();
@ -86,8 +89,9 @@ scroll_view_get_visible_content_rect(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefScrollViewCppToC::Get(self)->GetVisibleContentRect();
@ -103,8 +107,9 @@ scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefScrollViewCppToC::Get(self)->HasHorizontalScrollbar();
@ -120,8 +125,9 @@ scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefScrollViewCppToC::Get(self)->GetHorizontalScrollbarHeight();
@ -137,8 +143,9 @@ scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefScrollViewCppToC::Get(self)->HasVerticalScrollbar();
@ -154,8 +161,9 @@ scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefScrollViewCppToC::Get(self)->GetVerticalScrollbarWidth();
@ -171,8 +179,9 @@ scroll_view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval =
@ -189,8 +198,9 @@ cef_button_t* CEF_CALLBACK scroll_view_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval =
@ -207,8 +217,9 @@ cef_panel_t* CEF_CALLBACK scroll_view_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval =
@ -226,8 +237,9 @@ scroll_view_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval =
@ -245,8 +257,9 @@ scroll_view_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval =
@ -264,8 +277,9 @@ scroll_view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -283,8 +297,9 @@ scroll_view_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -301,8 +316,9 @@ int CEF_CALLBACK scroll_view_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -319,8 +335,9 @@ int CEF_CALLBACK scroll_view_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -338,12 +355,14 @@ int CEF_CALLBACK scroll_view_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval =
@ -361,8 +380,9 @@ scroll_view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval =
@ -380,8 +400,9 @@ scroll_view_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval =
@ -398,8 +419,9 @@ int CEF_CALLBACK scroll_view_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -416,8 +438,9 @@ void CEF_CALLBACK scroll_view_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -430,8 +453,9 @@ int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -449,8 +473,9 @@ void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -464,8 +489,9 @@ scroll_view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -483,8 +509,9 @@ scroll_view_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval =
@ -502,12 +529,14 @@ void CEF_CALLBACK scroll_view_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -523,8 +552,9 @@ cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -542,8 +572,9 @@ scroll_view_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval =
@ -561,12 +592,14 @@ void CEF_CALLBACK scroll_view_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -582,8 +615,9 @@ cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -601,12 +635,14 @@ void CEF_CALLBACK scroll_view_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -622,8 +658,9 @@ cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval =
@ -641,12 +678,14 @@ void CEF_CALLBACK scroll_view_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -662,8 +701,9 @@ cef_insets_t CEF_CALLBACK scroll_view_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval =
@ -681,8 +721,9 @@ scroll_view_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -699,8 +740,9 @@ void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -713,8 +755,9 @@ cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -731,8 +774,9 @@ cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval =
@ -750,8 +794,9 @@ int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval =
@ -768,8 +813,9 @@ void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -783,8 +829,9 @@ void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -797,8 +844,9 @@ int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -815,8 +863,9 @@ int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -834,8 +883,9 @@ void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -848,8 +898,9 @@ int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -867,8 +918,9 @@ void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -881,8 +933,9 @@ int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -900,8 +953,9 @@ scroll_view_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval =
@ -918,8 +972,9 @@ void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -933,8 +988,9 @@ void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
@ -948,8 +1004,9 @@ scroll_view_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval =
@ -967,12 +1024,14 @@ int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -983,8 +1042,9 @@ int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self,
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -997,12 +1057,14 @@ int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1013,8 +1075,9 @@ int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self,
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1027,12 +1090,14 @@ int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1043,8 +1108,9 @@ int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self,
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1057,12 +1123,14 @@ int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1073,8 +1141,9 @@ int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self,
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1088,16 +1157,19 @@ int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1108,8 +1180,9 @@ int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self,
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -1123,16 +1196,19 @@ int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -1143,8 +1219,9 @@ int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self,
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a5d02fd363950248101f5113ceeee2c280dd831c$
// $hash=f0b7e40e7ec1e3870dbc7f25430978c46eb1a51f$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_SCROLL_VIEW_CPPTOC_H_

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=2e8b2aebc574d685d1c39e7cb96b2e8c724a6d9c$
// $hash=0b5018c0b9d42f4ee100098365c46e0ea723ea29$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=be4a8b1aeaa7b2c6701c9cc5445285a20027c44b$
// $hash=00fd32a1d0bf034760f3afe3fb62ba58aba6a61b$
//
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
@ -30,16 +30,19 @@ textfield_delegate_on_key_event(struct _cef_textfield_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: textfield; type: refptr_diff
DCHECK(textfield);
if (!textfield)
if (!textfield) {
return 0;
}
// Verify param: event; type: simple_byref_const
DCHECK(event);
if (!event)
if (!event) {
return 0;
}
// Translate param: event; type: simple_byref_const
CefKeyEvent eventVal = event ? *event : CefKeyEvent();
@ -60,12 +63,14 @@ textfield_delegate_on_after_user_action(struct _cef_textfield_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: textfield; type: refptr_diff
DCHECK(textfield);
if (!textfield)
if (!textfield) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(self)->OnAfterUserAction(
@ -80,12 +85,14 @@ textfield_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
@ -104,12 +111,14 @@ textfield_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
@ -128,12 +137,14 @@ textfield_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
@ -153,12 +164,14 @@ textfield_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefTextfieldDelegateCppToC::Get(
@ -179,16 +192,19 @@ textfield_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(
@ -207,16 +223,19 @@ textfield_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(
@ -234,12 +253,14 @@ textfield_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(
@ -256,16 +277,19 @@ textfield_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -283,12 +307,14 @@ void CEF_CALLBACK textfield_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(
@ -303,12 +329,14 @@ void CEF_CALLBACK textfield_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefTextfieldDelegateCppToC::Get(

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=157e47e42dbb25aa2effd5bd085228d1dc3ad061$
// $hash=33ba2bd44c946bf204f2f7a929b8d208768ca3dd$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_DELEGATE_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=48694fa56762351ccd3369dca9e679efbda61160$
// $hash=13c90ba22a371d972974229f18f87f407e552102$
//
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
@ -35,8 +35,9 @@ view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefBrowserView> _retval = CefViewCppToC::Get(self)->AsBrowserView();
@ -51,8 +52,9 @@ cef_button_t* CEF_CALLBACK view_as_button(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefButton> _retval = CefViewCppToC::Get(self)->AsButton();
@ -67,8 +69,9 @@ cef_panel_t* CEF_CALLBACK view_as_panel(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefPanel> _retval = CefViewCppToC::Get(self)->AsPanel();
@ -83,8 +86,9 @@ cef_scroll_view_t* CEF_CALLBACK view_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefScrollView> _retval = CefViewCppToC::Get(self)->AsScrollView();
@ -99,8 +103,9 @@ cef_textfield_t* CEF_CALLBACK view_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefTextfield> _retval = CefViewCppToC::Get(self)->AsTextfield();
@ -116,8 +121,9 @@ view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval = CefViewCppToC::Get(self)->GetTypeString();
@ -133,8 +139,9 @@ cef_string_userfree_t CEF_CALLBACK view_to_string(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefString _retval =
@ -150,8 +157,9 @@ int CEF_CALLBACK view_is_valid(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsValid();
@ -166,8 +174,9 @@ int CEF_CALLBACK view_is_attached(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsAttached();
@ -183,12 +192,14 @@ int CEF_CALLBACK view_is_same(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
if (!that) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsSame(CefViewCppToC::Unwrap(that));
@ -204,8 +215,9 @@ view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefViewDelegate> _retval = CefViewCppToC::Get(self)->GetDelegate();
@ -220,8 +232,9 @@ struct _cef_window_t* CEF_CALLBACK view_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefWindow> _retval = CefViewCppToC::Get(self)->GetWindow();
@ -236,8 +249,9 @@ int CEF_CALLBACK view_get_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefViewCppToC::Get(self)->GetID();
@ -252,8 +266,9 @@ void CEF_CALLBACK view_set_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetID(id);
@ -265,8 +280,9 @@ int CEF_CALLBACK view_get_group_id(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefViewCppToC::Get(self)->GetGroupID();
@ -281,8 +297,9 @@ void CEF_CALLBACK view_set_group_id(struct _cef_view_t* self, int group_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetGroupID(group_id);
@ -295,8 +312,9 @@ view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval = CefViewCppToC::Get(self)->GetParentView();
@ -312,8 +330,9 @@ struct _cef_view_t* CEF_CALLBACK view_get_view_for_id(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Execute
CefRefPtr<CefView> _retval = CefViewCppToC::Get(self)->GetViewForID(id);
@ -329,12 +348,14 @@ void CEF_CALLBACK view_set_bounds(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
if (!bounds) {
return;
}
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
@ -349,8 +370,9 @@ cef_rect_t CEF_CALLBACK view_get_bounds(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefViewCppToC::Get(self)->GetBounds();
@ -365,8 +387,9 @@ cef_rect_t CEF_CALLBACK view_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefViewCppToC::Get(self)->GetBoundsInScreen();
@ -382,12 +405,14 @@ void CEF_CALLBACK view_set_size(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
if (!size) {
return;
}
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
@ -402,8 +427,9 @@ cef_size_t CEF_CALLBACK view_get_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewCppToC::Get(self)->GetSize();
@ -419,12 +445,14 @@ void CEF_CALLBACK view_set_position(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
if (!position) {
return;
}
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
@ -439,8 +467,9 @@ cef_point_t CEF_CALLBACK view_get_position(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefPoint();
}
// Execute
cef_point_t _retval = CefViewCppToC::Get(self)->GetPosition();
@ -456,12 +485,14 @@ void CEF_CALLBACK view_set_insets(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
if (!insets) {
return;
}
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
@ -476,8 +507,9 @@ cef_insets_t CEF_CALLBACK view_get_insets(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefInsets();
}
// Execute
cef_insets_t _retval = CefViewCppToC::Get(self)->GetInsets();
@ -492,8 +524,9 @@ cef_size_t CEF_CALLBACK view_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewCppToC::Get(self)->GetPreferredSize();
@ -508,8 +541,9 @@ void CEF_CALLBACK view_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SizeToPreferredSize();
@ -521,8 +555,9 @@ cef_size_t CEF_CALLBACK view_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewCppToC::Get(self)->GetMinimumSize();
@ -537,8 +572,9 @@ cef_size_t CEF_CALLBACK view_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewCppToC::Get(self)->GetMaximumSize();
@ -554,8 +590,9 @@ int CEF_CALLBACK view_get_height_for_width(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
int _retval = CefViewCppToC::Get(self)->GetHeightForWidth(width);
@ -570,8 +607,9 @@ void CEF_CALLBACK view_invalidate_layout(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->InvalidateLayout();
@ -583,8 +621,9 @@ void CEF_CALLBACK view_set_visible(struct _cef_view_t* self, int visible) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetVisible(visible ? true : false);
@ -596,8 +635,9 @@ int CEF_CALLBACK view_is_visible(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsVisible();
@ -612,8 +652,9 @@ int CEF_CALLBACK view_is_drawn(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsDrawn();
@ -628,8 +669,9 @@ void CEF_CALLBACK view_set_enabled(struct _cef_view_t* self, int enabled) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetEnabled(enabled ? true : false);
@ -641,8 +683,9 @@ int CEF_CALLBACK view_is_enabled(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsEnabled();
@ -657,8 +700,9 @@ void CEF_CALLBACK view_set_focusable(struct _cef_view_t* self, int focusable) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetFocusable(focusable ? true : false);
@ -670,8 +714,9 @@ int CEF_CALLBACK view_is_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsFocusable();
@ -686,8 +731,9 @@ int CEF_CALLBACK view_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
bool _retval = CefViewCppToC::Get(self)->IsAccessibilityFocusable();
@ -702,8 +748,9 @@ void CEF_CALLBACK view_request_focus(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->RequestFocus();
@ -716,8 +763,9 @@ void CEF_CALLBACK view_set_background_color(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Execute
CefViewCppToC::Get(self)->SetBackgroundColor(color);
@ -729,8 +777,9 @@ cef_color_t CEF_CALLBACK view_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Execute
cef_color_t _retval = CefViewCppToC::Get(self)->GetBackgroundColor();
@ -746,12 +795,14 @@ int CEF_CALLBACK view_convert_point_to_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -760,8 +811,9 @@ int CEF_CALLBACK view_convert_point_to_screen(struct _cef_view_t* self,
bool _retval = CefViewCppToC::Get(self)->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -774,12 +826,14 @@ int CEF_CALLBACK view_convert_point_from_screen(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -788,8 +842,9 @@ int CEF_CALLBACK view_convert_point_from_screen(struct _cef_view_t* self,
bool _retval = CefViewCppToC::Get(self)->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -802,12 +857,14 @@ int CEF_CALLBACK view_convert_point_to_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -816,8 +873,9 @@ int CEF_CALLBACK view_convert_point_to_window(struct _cef_view_t* self,
bool _retval = CefViewCppToC::Get(self)->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -830,12 +888,14 @@ int CEF_CALLBACK view_convert_point_from_window(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -844,8 +904,9 @@ int CEF_CALLBACK view_convert_point_from_window(struct _cef_view_t* self,
bool _retval = CefViewCppToC::Get(self)->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -859,16 +920,19 @@ int CEF_CALLBACK view_convert_point_to_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -878,8 +942,9 @@ int CEF_CALLBACK view_convert_point_to_view(struct _cef_view_t* self,
CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;
@ -893,16 +958,19 @@ int CEF_CALLBACK view_convert_point_from_view(struct _cef_view_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Verify param: point; type: simple_byref
DCHECK(point);
if (!point)
if (!point) {
return 0;
}
// Translate param: point; type: simple_byref
CefPoint pointVal = point ? *point : CefPoint();
@ -912,8 +980,9 @@ int CEF_CALLBACK view_convert_point_from_view(struct _cef_view_t* self,
CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
if (point) {
*point = pointVal;
}
// Return type: bool
return _retval;

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=725abc7d1f25861799c54c827de37617b23a1bd5$
// $hash=0d24d12448e97907667f8347a38818e0a4d713ed$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=43217c47279478323050eef44d6403cb4b5c62a6$
// $hash=7411dc1ef606336389a483ed2a95b14d70c8eb3e$
//
#include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
@ -34,12 +34,14 @@ view_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewDelegateCppToC::Get(self)->GetPreferredSize(
@ -57,12 +59,14 @@ view_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewDelegateCppToC::Get(self)->GetMinimumSize(
@ -80,12 +84,14 @@ view_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefViewDelegateCppToC::Get(self)->GetMaximumSize(
@ -104,12 +110,14 @@ view_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefViewDelegateCppToC::Get(self)->GetHeightForWidth(
@ -129,16 +137,19 @@ view_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefViewDelegateCppToC::Get(self)->OnParentViewChanged(
@ -156,16 +167,19 @@ view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefViewDelegateCppToC::Get(self)->OnChildViewChanged(
@ -182,12 +196,14 @@ view_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefViewDelegateCppToC::Get(self)->OnWindowChanged(CefViewCToCpp::Wrap(view),
@ -203,16 +219,19 @@ view_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -229,12 +248,14 @@ void CEF_CALLBACK view_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefViewDelegateCppToC::Get(self)->OnFocus(CefViewCToCpp::Wrap(view));
@ -247,12 +268,14 @@ void CEF_CALLBACK view_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefViewDelegateCppToC::Get(self)->OnBlur(CefViewCToCpp::Wrap(view));

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=ebd265b4907f2531eacce52bd6cfd1f8848b7abf$
// $hash=384b7d1f2df446d35d6ba46e62d89976d88fef7c$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_DELEGATE_CPPTOC_H_

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5b14236c7e00a7dafa47fdc32ce78d347de477a1$
// $hash=12ff3d7d14f9977ff1f62e9a35b04b153a135480$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_CPPTOC_H_

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9657432e6ca2ba72aeeb1ced5c8cf5ee71cf7221$
// $hash=af80a36cdcb47a18eb1ac8bc3315dfd322f4e96e$
//
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
@ -29,12 +29,14 @@ window_delegate_on_window_created(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(self)->OnWindowCreated(
@ -49,12 +51,14 @@ window_delegate_on_window_closing(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(self)->OnWindowClosing(
@ -69,12 +73,14 @@ window_delegate_on_window_destroyed(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(self)->OnWindowDestroyed(
@ -90,12 +96,14 @@ void CEF_CALLBACK window_delegate_on_window_activation_changed(
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(self)->OnWindowActivationChanged(
@ -111,16 +119,19 @@ window_delegate_on_window_bounds_changed(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -140,20 +151,24 @@ window_delegate_get_parent_window(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return NULL;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return NULL;
}
// Verify param: is_menu; type: bool_byaddr
DCHECK(is_menu);
if (!is_menu)
if (!is_menu) {
return NULL;
}
// Verify param: can_activate_menu; type: bool_byaddr
DCHECK(can_activate_menu);
if (!can_activate_menu)
if (!can_activate_menu) {
return NULL;
}
// Translate param: is_menu; type: bool_byaddr
bool is_menuBool = (is_menu && *is_menu) ? true : false;
@ -167,11 +182,13 @@ window_delegate_get_parent_window(struct _cef_window_delegate_t* self,
CefWindowCToCpp::Wrap(window), &is_menuBool, &can_activate_menuBool);
// Restore param: is_menu; type: bool_byaddr
if (is_menu)
if (is_menu) {
*is_menu = is_menuBool ? true : false;
}
// Restore param: can_activate_menu; type: bool_byaddr
if (can_activate_menu)
if (can_activate_menu) {
*can_activate_menu = can_activate_menuBool ? true : false;
}
// Return type: refptr_diff
return CefWindowCToCpp::Unwrap(_retval);
@ -185,12 +202,14 @@ window_delegate_get_initial_bounds(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefRect();
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return CefRect();
}
// Execute
cef_rect_t _retval = CefWindowDelegateCppToC::Get(self)->GetInitialBounds(
@ -208,12 +227,14 @@ window_delegate_get_initial_show_state(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CEF_SHOW_STATE_NORMAL;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return CEF_SHOW_STATE_NORMAL;
}
// Execute
cef_show_state_t _retval =
@ -232,12 +253,14 @@ window_delegate_is_frameless(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->IsFrameless(
@ -254,12 +277,14 @@ int CEF_CALLBACK window_delegate_can_resize(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->CanResize(
@ -277,12 +302,14 @@ window_delegate_can_maximize(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->CanMaximize(
@ -300,12 +327,14 @@ window_delegate_can_minimize(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->CanMinimize(
@ -322,12 +351,14 @@ int CEF_CALLBACK window_delegate_can_close(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->CanClose(
@ -346,12 +377,14 @@ window_delegate_on_accelerator(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->OnAccelerator(
@ -370,16 +403,19 @@ window_delegate_on_key_event(struct _cef_window_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: window; type: refptr_diff
DCHECK(window);
if (!window)
if (!window) {
return 0;
}
// Verify param: event; type: simple_byref_const
DCHECK(event);
if (!event)
if (!event) {
return 0;
}
// Translate param: event; type: simple_byref_const
CefKeyEvent eventVal = event ? *event : CefKeyEvent();
@ -400,12 +436,14 @@ window_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
@ -424,12 +462,14 @@ window_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
@ -448,12 +488,14 @@ window_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return CefSize();
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return CefSize();
}
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
@ -473,12 +515,14 @@ window_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return 0;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return 0;
}
// Execute
int _retval = CefWindowDelegateCppToC::Get(
@ -499,16 +543,19 @@ window_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: parent; type: refptr_diff
DCHECK(parent);
if (!parent)
if (!parent) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
@ -526,16 +573,19 @@ window_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: child; type: refptr_diff
DCHECK(child);
if (!child)
if (!child) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
@ -552,12 +602,14 @@ window_delegate_on_window_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
@ -573,16 +625,19 @@ window_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
if (!new_bounds) {
return;
}
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
@ -599,12 +654,14 @@ void CEF_CALLBACK window_delegate_on_focus(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
@ -618,12 +675,14 @@ void CEF_CALLBACK window_delegate_on_blur(struct _cef_view_delegate_t* self,
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
if (!self) {
return;
}
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
if (!view) {
return;
}
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=594a3ff498c14872187e0ae8d466a023664c92b6$
// $hash=b4d82958ac79ac843f904c4aa8010a6909ca06fa$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_DELEGATE_CPPTOC_H_