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=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;