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