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,19 +9,21 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=7e07045e8a886e123572c3063aadd61d8a9624e8$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/views/button_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_button_pressed(
|
||||
struct _cef_button_delegate_t* self, cef_button_t* button) {
|
||||
void CEF_CALLBACK
|
||||
button_delegate_on_button_pressed(struct _cef_button_delegate_t* self,
|
||||
cef_button_t* button) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -37,8 +39,9 @@ void CEF_CALLBACK button_delegate_on_button_pressed(
|
||||
CefButtonCToCpp::Wrap(button));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_button_state_changed(
|
||||
struct _cef_button_delegate_t* self, cef_button_t* button) {
|
||||
void CEF_CALLBACK
|
||||
button_delegate_on_button_state_changed(struct _cef_button_delegate_t* self,
|
||||
cef_button_t* button) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -54,8 +57,9 @@ void CEF_CALLBACK button_delegate_on_button_state_changed(
|
||||
CefButtonCToCpp::Wrap(button));
|
||||
}
|
||||
|
||||
cef_size_t CEF_CALLBACK button_delegate_get_preferred_size(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view) {
|
||||
cef_size_t CEF_CALLBACK
|
||||
button_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -68,15 +72,16 @@ cef_size_t CEF_CALLBACK button_delegate_get_preferred_size(
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonDelegateCppToC::Get(
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))->GetPreferredSize(
|
||||
CefViewCToCpp::Wrap(view));
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->GetPreferredSize(CefViewCToCpp::Wrap(view));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_size_t CEF_CALLBACK button_delegate_get_minimum_size(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view) {
|
||||
cef_size_t CEF_CALLBACK
|
||||
button_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -89,15 +94,16 @@ cef_size_t CEF_CALLBACK button_delegate_get_minimum_size(
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonDelegateCppToC::Get(
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))->GetMinimumSize(
|
||||
CefViewCToCpp::Wrap(view));
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->GetMinimumSize(CefViewCToCpp::Wrap(view));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_size_t CEF_CALLBACK button_delegate_get_maximum_size(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view) {
|
||||
cef_size_t CEF_CALLBACK
|
||||
button_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -110,15 +116,17 @@ cef_size_t CEF_CALLBACK button_delegate_get_maximum_size(
|
||||
|
||||
// Execute
|
||||
cef_size_t _retval = CefButtonDelegateCppToC::Get(
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))->GetMaximumSize(
|
||||
CefViewCToCpp::Wrap(view));
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->GetMaximumSize(CefViewCToCpp::Wrap(view));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK button_delegate_get_height_for_width(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
|
||||
int CEF_CALLBACK
|
||||
button_delegate_get_height_for_width(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view,
|
||||
int width) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,17 +139,18 @@ int CEF_CALLBACK button_delegate_get_height_for_width(
|
||||
|
||||
// Execute
|
||||
int _retval = CefButtonDelegateCppToC::Get(
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))->GetHeightForWidth(
|
||||
CefViewCToCpp::Wrap(view),
|
||||
width);
|
||||
reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_parent_view_changed(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
|
||||
cef_view_t* parent) {
|
||||
void CEF_CALLBACK
|
||||
button_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view,
|
||||
int added,
|
||||
cef_view_t* parent) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -157,16 +166,16 @@ void CEF_CALLBACK button_delegate_on_parent_view_changed(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(
|
||||
self))->OnParentViewChanged(
|
||||
CefViewCToCpp::Wrap(view),
|
||||
added?true:false,
|
||||
CefViewCToCpp::Wrap(parent));
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
|
||||
CefViewCToCpp::Wrap(parent));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_child_view_changed(
|
||||
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
|
||||
cef_view_t* child) {
|
||||
void CEF_CALLBACK
|
||||
button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view,
|
||||
int added,
|
||||
cef_view_t* child) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -182,15 +191,13 @@ void CEF_CALLBACK button_delegate_on_child_view_changed(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(
|
||||
self))->OnChildViewChanged(
|
||||
CefViewCToCpp::Wrap(view),
|
||||
added?true:false,
|
||||
CefViewCToCpp::Wrap(child));
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
|
||||
CefViewCToCpp::Wrap(child));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view) {
|
||||
cef_view_t* view) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,13 +209,12 @@ void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(
|
||||
self))->OnFocus(
|
||||
CefViewCToCpp::Wrap(view));
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->OnFocus(CefViewCToCpp::Wrap(view));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK button_delegate_on_blur(struct _cef_view_delegate_t* self,
|
||||
cef_view_t* view) {
|
||||
cef_view_t* view) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -220,14 +226,12 @@ void CEF_CALLBACK button_delegate_on_blur(struct _cef_view_delegate_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(
|
||||
self))->OnBlur(
|
||||
CefViewCToCpp::Wrap(view));
|
||||
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
|
||||
->OnBlur(CefViewCToCpp::Wrap(view));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefButtonDelegateCppToC::CefButtonDelegateCppToC() {
|
||||
@ -246,9 +250,12 @@ CefButtonDelegateCppToC::CefButtonDelegateCppToC() {
|
||||
GetStruct()->base.on_blur = button_delegate_on_blur;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefButtonDelegate> CefCppToCRefCounted<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate, cef_button_delegate_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_button_delegate_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefButtonDelegate> CefCppToCRefCounted<
|
||||
CefButtonDelegateCppToC,
|
||||
CefButtonDelegate,
|
||||
cef_button_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_button_delegate_t* s) {
|
||||
if (type == WT_MENU_BUTTON_DELEGATE) {
|
||||
return CefMenuButtonDelegateCppToC::Unwrap(
|
||||
reinterpret_cast<cef_menu_button_delegate_t*>(s));
|
||||
@ -258,10 +265,14 @@ template<> CefRefPtr<CefButtonDelegate> CefCppToCRefCounted<CefButtonDelegateCpp
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate, cef_button_delegate_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate,
|
||||
cef_button_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate, cef_button_delegate_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefButtonDelegateCppToC,
|
||||
CefButtonDelegate,
|
||||
cef_button_delegate_t>::kWrapperType =
|
||||
WT_BUTTON_DELEGATE;
|
||||
|
Reference in New Issue
Block a user