mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=6537359783dd7ee8c7dbacaffad85eb5f73c77aa$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
|
||||
@ -21,13 +23,12 @@
|
||||
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_label_button_t* CEF_CALLBACK button_as_label_button(
|
||||
struct _cef_button_t* self) {
|
||||
cef_label_button_t* CEF_CALLBACK
|
||||
button_as_label_button(struct _cef_button_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -35,15 +36,15 @@ cef_label_button_t* CEF_CALLBACK button_as_label_button(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefLabelButton> _retval = CefButtonCppToC::Get(self)->AsLabelButton(
|
||||
);
|
||||
CefRefPtr<CefLabelButton> _retval =
|
||||
CefButtonCppToC::Get(self)->AsLabelButton();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefLabelButtonCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_state(struct _cef_button_t* self,
|
||||
cef_button_state_t state) {
|
||||
cef_button_state_t state) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,8 +52,7 @@ void CEF_CALLBACK button_set_state(struct _cef_button_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(self)->SetState(
|
||||
state);
|
||||
CefButtonCppToC::Get(self)->SetState(state);
|
||||
}
|
||||
|
||||
cef_button_state_t CEF_CALLBACK button_get_state(struct _cef_button_t* self) {
|
||||
@ -70,7 +70,7 @@ cef_button_state_t CEF_CALLBACK button_get_state(struct _cef_button_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_ink_drop_enabled(struct _cef_button_t* self,
|
||||
int enabled) {
|
||||
int enabled) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -78,12 +78,11 @@ void CEF_CALLBACK button_set_ink_drop_enabled(struct _cef_button_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(self)->SetInkDropEnabled(
|
||||
enabled?true:false);
|
||||
CefButtonCppToC::Get(self)->SetInkDropEnabled(enabled ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_tooltip_text(struct _cef_button_t* self,
|
||||
const cef_string_t* tooltip_text) {
|
||||
const cef_string_t* tooltip_text) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -95,12 +94,11 @@ void CEF_CALLBACK button_set_tooltip_text(struct _cef_button_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(self)->SetTooltipText(
|
||||
CefString(tooltip_text));
|
||||
CefButtonCppToC::Get(self)->SetTooltipText(CefString(tooltip_text));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_accessible_name(struct _cef_button_t* self,
|
||||
const cef_string_t* name) {
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -112,12 +110,11 @@ void CEF_CALLBACK button_set_accessible_name(struct _cef_button_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(self)->SetAccessibleName(
|
||||
CefString(name));
|
||||
CefButtonCppToC::Get(self)->SetAccessibleName(CefString(name));
|
||||
}
|
||||
|
||||
cef_browser_view_t* CEF_CALLBACK button_as_browser_view(
|
||||
struct _cef_view_t* self) {
|
||||
cef_browser_view_t* CEF_CALLBACK
|
||||
button_as_browser_view(struct _cef_view_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -125,8 +122,9 @@ cef_browser_view_t* CEF_CALLBACK button_as_browser_view(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBrowserView> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->AsBrowserView();
|
||||
CefRefPtr<CefBrowserView> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->AsBrowserView();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBrowserViewCppToC::Wrap(_retval);
|
||||
@ -140,8 +138,8 @@ cef_button_t* CEF_CALLBACK button_as_button(struct _cef_view_t* self) {
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefButton> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->AsButton();
|
||||
CefRefPtr<CefButton> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->AsButton();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefButtonCppToC::Wrap(_retval);
|
||||
@ -155,15 +153,15 @@ cef_panel_t* CEF_CALLBACK button_as_panel(struct _cef_view_t* self) {
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefPanel> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->AsPanel();
|
||||
CefRefPtr<CefPanel> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->AsPanel();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefPanelCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_scroll_view_t* CEF_CALLBACK button_as_scroll_view(
|
||||
struct _cef_view_t* self) {
|
||||
cef_scroll_view_t* CEF_CALLBACK
|
||||
button_as_scroll_view(struct _cef_view_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -171,8 +169,9 @@ cef_scroll_view_t* CEF_CALLBACK button_as_scroll_view(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefScrollView> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->AsScrollView();
|
||||
CefRefPtr<CefScrollView> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->AsScrollView();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefScrollViewCppToC::Wrap(_retval);
|
||||
@ -186,15 +185,16 @@ cef_textfield_t* CEF_CALLBACK button_as_textfield(struct _cef_view_t* self) {
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefTextfield> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->AsTextfield();
|
||||
CefRefPtr<CefTextfield> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->AsTextfield();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefTextfieldCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK button_get_type_string(
|
||||
struct _cef_view_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
button_get_type_string(struct _cef_view_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,15 +202,16 @@ cef_string_userfree_t CEF_CALLBACK button_get_type_string(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetTypeString();
|
||||
CefString _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetTypeString();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK button_to_string(struct _cef_view_t* self,
|
||||
int include_children) {
|
||||
int include_children) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -218,9 +219,9 @@ cef_string_userfree_t CEF_CALLBACK button_to_string(struct _cef_view_t* self,
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ToString(
|
||||
include_children?true:false);
|
||||
CefString _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ToString(include_children ? true : false);
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
@ -234,8 +235,8 @@ int CEF_CALLBACK button_is_valid(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsValid();
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->IsValid();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -249,15 +250,15 @@ int CEF_CALLBACK button_is_attached(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsAttached();
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->IsAttached();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_is_same(struct _cef_view_t* self,
|
||||
struct _cef_view_t* that) {
|
||||
struct _cef_view_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -269,16 +270,15 @@ int CEF_CALLBACK button_is_same(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsSame(
|
||||
CefViewCppToC::Unwrap(that));
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->IsSame(CefViewCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_view_delegate_t* CEF_CALLBACK button_get_delegate(
|
||||
struct _cef_view_t* self) {
|
||||
struct _cef_view_delegate_t* CEF_CALLBACK
|
||||
button_get_delegate(struct _cef_view_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -286,8 +286,9 @@ struct _cef_view_delegate_t* CEF_CALLBACK button_get_delegate(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefViewDelegate> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->GetDelegate();
|
||||
CefRefPtr<CefViewDelegate> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetDelegate();
|
||||
|
||||
// Return type: refptr_diff
|
||||
return CefViewDelegateCToCpp::Unwrap(_retval);
|
||||
@ -301,8 +302,8 @@ struct _cef_window_t* CEF_CALLBACK button_get_window(struct _cef_view_t* self) {
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefWindow> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->GetWindow();
|
||||
CefRefPtr<CefWindow> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetWindow();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefWindowCppToC::Wrap(_retval);
|
||||
@ -316,8 +317,8 @@ int CEF_CALLBACK button_get_id(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetID();
|
||||
int _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetID();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -331,8 +332,7 @@ void CEF_CALLBACK button_set_id(struct _cef_view_t* self, int id) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetID(
|
||||
id);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetID(id);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_get_group_id(struct _cef_view_t* self) {
|
||||
@ -343,8 +343,8 @@ int CEF_CALLBACK button_get_group_id(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetGroupID();
|
||||
int _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetGroupID();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -358,12 +358,12 @@ void CEF_CALLBACK button_set_group_id(struct _cef_view_t* self, int group_id) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetGroupID(
|
||||
group_id);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetGroupID(group_id);
|
||||
}
|
||||
|
||||
struct _cef_view_t* CEF_CALLBACK button_get_parent_view(
|
||||
struct _cef_view_t* self) {
|
||||
struct _cef_view_t* CEF_CALLBACK
|
||||
button_get_parent_view(struct _cef_view_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -371,15 +371,16 @@ struct _cef_view_t* CEF_CALLBACK button_get_parent_view(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefView> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->GetParentView();
|
||||
CefRefPtr<CefView> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetParentView();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefViewCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_view_t* CEF_CALLBACK button_get_view_for_id(
|
||||
struct _cef_view_t* self, int id) {
|
||||
struct _cef_view_t* CEF_CALLBACK
|
||||
button_get_view_for_id(struct _cef_view_t* self, int id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -387,16 +388,16 @@ struct _cef_view_t* CEF_CALLBACK button_get_view_for_id(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefView> _retval = CefButtonCppToC::Get(
|
||||
reinterpret_cast<cef_button_t*>(self))->GetViewForID(
|
||||
id);
|
||||
CefRefPtr<CefView> _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetViewForID(id);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefViewCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_bounds(struct _cef_view_t* self,
|
||||
const cef_rect_t* bounds) {
|
||||
const cef_rect_t* bounds) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -408,11 +409,11 @@ void CEF_CALLBACK button_set_bounds(struct _cef_view_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: bounds; type: simple_byref_const
|
||||
CefRect boundsVal = bounds?*bounds:CefRect();
|
||||
CefRect boundsVal = bounds ? *bounds : CefRect();
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetBounds(
|
||||
boundsVal);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetBounds(boundsVal);
|
||||
}
|
||||
|
||||
cef_rect_t CEF_CALLBACK button_get_bounds(struct _cef_view_t* self) {
|
||||
@ -423,8 +424,8 @@ cef_rect_t CEF_CALLBACK button_get_bounds(struct _cef_view_t* self) {
|
||||
return CefRect();
|
||||
|
||||
// Execute
|
||||
cef_rect_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetBounds();
|
||||
cef_rect_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetBounds();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -438,15 +439,16 @@ cef_rect_t CEF_CALLBACK button_get_bounds_in_screen(struct _cef_view_t* self) {
|
||||
return CefRect();
|
||||
|
||||
// Execute
|
||||
cef_rect_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetBoundsInScreen();
|
||||
cef_rect_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetBoundsInScreen();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_size(struct _cef_view_t* self,
|
||||
const cef_size_t* size) {
|
||||
const cef_size_t* size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -458,11 +460,10 @@ void CEF_CALLBACK button_set_size(struct _cef_view_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: size; type: simple_byref_const
|
||||
CefSize sizeVal = size?*size:CefSize();
|
||||
CefSize sizeVal = size ? *size : CefSize();
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetSize(
|
||||
sizeVal);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetSize(sizeVal);
|
||||
}
|
||||
|
||||
cef_size_t CEF_CALLBACK button_get_size(struct _cef_view_t* self) {
|
||||
@ -473,15 +474,15 @@ cef_size_t CEF_CALLBACK button_get_size(struct _cef_view_t* self) {
|
||||
return CefSize();
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetSize();
|
||||
cef_size_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetSize();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_position(struct _cef_view_t* self,
|
||||
const cef_point_t* position) {
|
||||
const cef_point_t* position) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -493,11 +494,11 @@ void CEF_CALLBACK button_set_position(struct _cef_view_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: position; type: simple_byref_const
|
||||
CefPoint positionVal = position?*position:CefPoint();
|
||||
CefPoint positionVal = position ? *position : CefPoint();
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetPosition(
|
||||
positionVal);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetPosition(positionVal);
|
||||
}
|
||||
|
||||
cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) {
|
||||
@ -508,8 +509,9 @@ cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) {
|
||||
return CefPoint();
|
||||
|
||||
// Execute
|
||||
cef_point_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetPosition();
|
||||
cef_point_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetPosition();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -523,8 +525,9 @@ cef_size_t CEF_CALLBACK button_get_preferred_size(struct _cef_view_t* self) {
|
||||
return CefSize();
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetPreferredSize();
|
||||
cef_size_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetPreferredSize();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -538,8 +541,8 @@ void CEF_CALLBACK button_size_to_preferred_size(struct _cef_view_t* self) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->SizeToPreferredSize();
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SizeToPreferredSize();
|
||||
}
|
||||
|
||||
cef_size_t CEF_CALLBACK button_get_minimum_size(struct _cef_view_t* self) {
|
||||
@ -550,8 +553,9 @@ cef_size_t CEF_CALLBACK button_get_minimum_size(struct _cef_view_t* self) {
|
||||
return CefSize();
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetMinimumSize();
|
||||
cef_size_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetMinimumSize();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -565,15 +569,16 @@ cef_size_t CEF_CALLBACK button_get_maximum_size(struct _cef_view_t* self) {
|
||||
return CefSize();
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetMaximumSize();
|
||||
cef_size_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetMaximumSize();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_get_height_for_width(struct _cef_view_t* self,
|
||||
int width) {
|
||||
int width) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -581,9 +586,8 @@ int CEF_CALLBACK button_get_height_for_width(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetHeightForWidth(
|
||||
width);
|
||||
int _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetHeightForWidth(width);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -597,8 +601,8 @@ void CEF_CALLBACK button_invalidate_layout(struct _cef_view_t* self) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->InvalidateLayout(
|
||||
);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->InvalidateLayout();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_visible(struct _cef_view_t* self, int visible) {
|
||||
@ -609,8 +613,8 @@ void CEF_CALLBACK button_set_visible(struct _cef_view_t* self, int visible) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetVisible(
|
||||
visible?true:false);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetVisible(visible ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_is_visible(struct _cef_view_t* self) {
|
||||
@ -621,8 +625,8 @@ int CEF_CALLBACK button_is_visible(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsVisible();
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->IsVisible();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -636,8 +640,8 @@ int CEF_CALLBACK button_is_drawn(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsDrawn();
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->IsDrawn();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -651,8 +655,8 @@ void CEF_CALLBACK button_set_enabled(struct _cef_view_t* self, int enabled) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetEnabled(
|
||||
enabled?true:false);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetEnabled(enabled ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_is_enabled(struct _cef_view_t* self) {
|
||||
@ -663,15 +667,15 @@ int CEF_CALLBACK button_is_enabled(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsEnabled();
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->IsEnabled();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_focusable(struct _cef_view_t* self,
|
||||
int focusable) {
|
||||
int focusable) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -679,8 +683,8 @@ void CEF_CALLBACK button_set_focusable(struct _cef_view_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->SetFocusable(
|
||||
focusable?true:false);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetFocusable(focusable ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_is_focusable(struct _cef_view_t* self) {
|
||||
@ -691,8 +695,8 @@ int CEF_CALLBACK button_is_focusable(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsFocusable();
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->IsFocusable();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -706,8 +710,8 @@ int CEF_CALLBACK button_is_accessibility_focusable(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->IsAccessibilityFocusable();
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->IsAccessibilityFocusable();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -725,7 +729,7 @@ void CEF_CALLBACK button_request_focus(struct _cef_view_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_set_background_color(struct _cef_view_t* self,
|
||||
cef_color_t color) {
|
||||
cef_color_t color) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -733,9 +737,8 @@ void CEF_CALLBACK button_set_background_color(struct _cef_view_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->SetBackgroundColor(
|
||||
color);
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->SetBackgroundColor(color);
|
||||
}
|
||||
|
||||
cef_color_t CEF_CALLBACK button_get_background_color(struct _cef_view_t* self) {
|
||||
@ -746,15 +749,16 @@ cef_color_t CEF_CALLBACK button_get_background_color(struct _cef_view_t* self) {
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
cef_color_t _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->GetBackgroundColor();
|
||||
cef_color_t _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->GetBackgroundColor();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self,
|
||||
cef_point_t* point) {
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -766,12 +770,11 @@ int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointToScreen(
|
||||
pointVal);
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointToScreen(pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -782,7 +785,7 @@ int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self,
|
||||
cef_point_t* point) {
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -794,12 +797,11 @@ int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointFromScreen(
|
||||
pointVal);
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointFromScreen(pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -810,7 +812,7 @@ int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self,
|
||||
cef_point_t* point) {
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -822,12 +824,11 @@ int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointToWindow(
|
||||
pointVal);
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointToWindow(pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -838,7 +839,7 @@ int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self,
|
||||
cef_point_t* point) {
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -850,12 +851,11 @@ int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointFromWindow(
|
||||
pointVal);
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointFromWindow(pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -866,7 +866,8 @@ int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self,
|
||||
struct _cef_view_t* view, cef_point_t* point) {
|
||||
struct _cef_view_t* view,
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -882,13 +883,12 @@ int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointToView(
|
||||
CefViewCppToC::Unwrap(view),
|
||||
pointVal);
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -899,7 +899,8 @@ int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self,
|
||||
struct _cef_view_t* view, cef_point_t* point) {
|
||||
struct _cef_view_t* view,
|
||||
cef_point_t* point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -915,13 +916,12 @@ int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: point; type: simple_byref
|
||||
CefPoint pointVal = point?*point:CefPoint();
|
||||
CefPoint pointVal = point ? *point : CefPoint();
|
||||
|
||||
// Execute
|
||||
bool _retval = CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(
|
||||
self))->ConvertPointFromView(
|
||||
CefViewCppToC::Unwrap(view),
|
||||
pointVal);
|
||||
bool _retval =
|
||||
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
|
||||
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
|
||||
|
||||
// Restore param: point; type: simple_byref
|
||||
if (point)
|
||||
@ -933,7 +933,6 @@ int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefButtonCppToC::CefButtonCppToC() {
|
||||
@ -996,11 +995,14 @@ CefButtonCppToC::CefButtonCppToC() {
|
||||
GetStruct()->base.convert_point_from_view = button_convert_point_from_view;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefButton> CefCppToCRefCounted<CefButtonCppToC, CefButton,
|
||||
cef_button_t>::UnwrapDerived(CefWrapperType type, cef_button_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefButton>
|
||||
CefCppToCRefCounted<CefButtonCppToC, CefButton, cef_button_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_button_t* s) {
|
||||
if (type == WT_LABEL_BUTTON) {
|
||||
return CefLabelButtonCppToC::Unwrap(reinterpret_cast<cef_label_button_t*>(
|
||||
s));
|
||||
return CefLabelButtonCppToC::Unwrap(
|
||||
reinterpret_cast<cef_label_button_t*>(s));
|
||||
}
|
||||
if (type == WT_MENU_BUTTON) {
|
||||
return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
|
||||
@ -1010,9 +1012,12 @@ template<> CefRefPtr<CefButton> CefCppToCRefCounted<CefButtonCppToC, CefButton,
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefButtonCppToC, CefButton,
|
||||
cef_button_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefButtonCppToC, CefButton, cef_button_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefButtonCppToC, CefButton,
|
||||
cef_button_t>::kWrapperType = WT_BUTTON;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefButtonCppToC, CefButton, cef_button_t>::
|
||||
kWrapperType = WT_BUTTON;
|
||||
|
Reference in New Issue
Block a user