Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@@ -9,18 +9,20 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7af9db791a4b3c2a6f93326731c9959e891148ed$
//
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK box_layout_set_flex_for_view(struct _cef_box_layout_t* self,
struct _cef_view_t* view, int flex) {
struct _cef_view_t* view,
int flex) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -32,13 +34,12 @@ void CEF_CALLBACK box_layout_set_flex_for_view(struct _cef_box_layout_t* self,
return;
// Execute
CefBoxLayoutCppToC::Get(self)->SetFlexForView(
CefViewCppToC::Unwrap(view),
flex);
CefBoxLayoutCppToC::Get(self)->SetFlexForView(CefViewCppToC::Unwrap(view),
flex);
}
void CEF_CALLBACK box_layout_clear_flex_for_view(struct _cef_box_layout_t* self,
struct _cef_view_t* view) {
struct _cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -50,12 +51,11 @@ void CEF_CALLBACK box_layout_clear_flex_for_view(struct _cef_box_layout_t* self,
return;
// Execute
CefBoxLayoutCppToC::Get(self)->ClearFlexForView(
CefViewCppToC::Unwrap(view));
CefBoxLayoutCppToC::Get(self)->ClearFlexForView(CefViewCppToC::Unwrap(view));
}
cef_box_layout_t* CEF_CALLBACK box_layout_as_box_layout(
struct _cef_layout_t* self) {
cef_box_layout_t* CEF_CALLBACK
box_layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -63,15 +63,16 @@ cef_box_layout_t* CEF_CALLBACK box_layout_as_box_layout(
return NULL;
// Execute
CefRefPtr<CefBoxLayout> _retval = CefBoxLayoutCppToC::Get(
reinterpret_cast<cef_box_layout_t*>(self))->AsBoxLayout();
CefRefPtr<CefBoxLayout> _retval =
CefBoxLayoutCppToC::Get(reinterpret_cast<cef_box_layout_t*>(self))
->AsBoxLayout();
// Return type: refptr_same
return CefBoxLayoutCppToC::Wrap(_retval);
}
cef_fill_layout_t* CEF_CALLBACK box_layout_as_fill_layout(
struct _cef_layout_t* self) {
cef_fill_layout_t* CEF_CALLBACK
box_layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -79,8 +80,9 @@ cef_fill_layout_t* CEF_CALLBACK box_layout_as_fill_layout(
return NULL;
// Execute
CefRefPtr<CefFillLayout> _retval = CefBoxLayoutCppToC::Get(
reinterpret_cast<cef_box_layout_t*>(self))->AsFillLayout();
CefRefPtr<CefFillLayout> _retval =
CefBoxLayoutCppToC::Get(reinterpret_cast<cef_box_layout_t*>(self))
->AsFillLayout();
// Return type: refptr_same
return CefFillLayoutCppToC::Wrap(_retval);
@@ -94,8 +96,9 @@ int CEF_CALLBACK box_layout_is_valid(struct _cef_layout_t* self) {
return 0;
// Execute
bool _retval = CefBoxLayoutCppToC::Get(reinterpret_cast<cef_box_layout_t*>(
self))->IsValid();
bool _retval =
CefBoxLayoutCppToC::Get(reinterpret_cast<cef_box_layout_t*>(self))
->IsValid();
// Return type: bool
return _retval;
@@ -103,7 +106,6 @@ int CEF_CALLBACK box_layout_is_valid(struct _cef_layout_t* self) {
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefBoxLayoutCppToC::CefBoxLayoutCppToC() {
@@ -114,17 +116,23 @@ CefBoxLayoutCppToC::CefBoxLayoutCppToC() {
GetStruct()->base.is_valid = box_layout_is_valid;
}
template<> CefRefPtr<CefBoxLayout> CefCppToCRefCounted<CefBoxLayoutCppToC,
CefBoxLayout, cef_box_layout_t>::UnwrapDerived(CefWrapperType type,
cef_box_layout_t* s) {
template <>
CefRefPtr<CefBoxLayout>
CefCppToCRefCounted<CefBoxLayoutCppToC, CefBoxLayout, cef_box_layout_t>::
UnwrapDerived(CefWrapperType type, cef_box_layout_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefBoxLayoutCppToC,
CefBoxLayout, cef_box_layout_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefBoxLayoutCppToC,
CefBoxLayout,
cef_box_layout_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefBoxLayoutCppToC, CefBoxLayout,
cef_box_layout_t>::kWrapperType = WT_BOX_LAYOUT;
template <>
CefWrapperType CefCppToCRefCounted<CefBoxLayoutCppToC,
CefBoxLayout,
cef_box_layout_t>::kWrapperType =
WT_BOX_LAYOUT;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=85078c8660e652f2063ead3252b0f3d114aa587c$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BOX_LAYOUT_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_BOX_LAYOUT_CPPTOC_H_
@@ -18,17 +20,17 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_box_layout.h"
#include "include/capi/views/cef_box_layout_capi.h"
#include "include/views/cef_view.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/views/cef_box_layout.h"
#include "include/views/cef_view.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefBoxLayoutCppToC
: public CefCppToCRefCounted<CefBoxLayoutCppToC, CefBoxLayout,
cef_box_layout_t> {
class CefBoxLayoutCppToC : public CefCppToCRefCounted<CefBoxLayoutCppToC,
CefBoxLayout,
cef_box_layout_t> {
public:
CefBoxLayoutCppToC();
};

View File

@@ -9,25 +9,28 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8d879b5ba21a991aa60cdde72667473158676056$
//
#include "libcef_dll/cpptoc/browser_cpptoc.h"
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
#include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/client_ctocpp.h"
#include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_browser_view_t* cef_browser_view_create(cef_client_t* client,
const cef_string_t* url, const struct _cef_browser_settings_t* settings,
CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
cef_client_t* client,
const cef_string_t* url,
const struct _cef_browser_settings_t* settings,
cef_request_context_t* request_context,
cef_browser_view_delegate_t* delegate) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@@ -45,9 +48,7 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(cef_client_t* client,
// Execute
CefRefPtr<CefBrowserView> _retval = CefBrowserView::CreateBrowserView(
CefClientCToCpp::Wrap(client),
CefString(url),
settingsObj,
CefClientCToCpp::Wrap(client), CefString(url), settingsObj,
CefRequestContextCppToC::Unwrap(request_context),
CefBrowserViewDelegateCToCpp::Wrap(delegate));
@@ -65,20 +66,19 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_get_for_browser(
return NULL;
// Execute
CefRefPtr<CefBrowserView> _retval = CefBrowserView::GetForBrowser(
CefBrowserCppToC::Unwrap(browser));
CefRefPtr<CefBrowserView> _retval =
CefBrowserView::GetForBrowser(CefBrowserCppToC::Unwrap(browser));
// Return type: refptr_same
return CefBrowserViewCppToC::Wrap(_retval);
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_browser_t* CEF_CALLBACK browser_view_get_browser(
struct _cef_browser_view_t* self) {
cef_browser_t* CEF_CALLBACK
browser_view_get_browser(struct _cef_browser_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -92,8 +92,9 @@ cef_browser_t* CEF_CALLBACK browser_view_get_browser(
return CefBrowserCppToC::Wrap(_retval);
}
void CEF_CALLBACK browser_view_set_prefer_accelerators(
struct _cef_browser_view_t* self, int prefer_accelerators) {
void CEF_CALLBACK
browser_view_set_prefer_accelerators(struct _cef_browser_view_t* self,
int prefer_accelerators) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -102,11 +103,11 @@ void CEF_CALLBACK browser_view_set_prefer_accelerators(
// Execute
CefBrowserViewCppToC::Get(self)->SetPreferAccelerators(
prefer_accelerators?true:false);
prefer_accelerators ? true : false);
}
cef_browser_view_t* CEF_CALLBACK browser_view_as_browser_view(
struct _cef_view_t* self) {
cef_browser_view_t* CEF_CALLBACK
browser_view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -114,8 +115,9 @@ cef_browser_view_t* CEF_CALLBACK browser_view_as_browser_view(
return NULL;
// Execute
CefRefPtr<CefBrowserView> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->AsBrowserView();
CefRefPtr<CefBrowserView> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->AsBrowserView();
// Return type: refptr_same
return CefBrowserViewCppToC::Wrap(_retval);
@@ -129,8 +131,9 @@ cef_button_t* CEF_CALLBACK browser_view_as_button(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefButton> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->AsButton();
CefRefPtr<CefButton> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->AsButton();
// Return type: refptr_same
return CefButtonCppToC::Wrap(_retval);
@@ -144,15 +147,16 @@ cef_panel_t* CEF_CALLBACK browser_view_as_panel(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefPanel> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->AsPanel();
CefRefPtr<CefPanel> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->AsPanel();
// Return type: refptr_same
return CefPanelCppToC::Wrap(_retval);
}
cef_scroll_view_t* CEF_CALLBACK browser_view_as_scroll_view(
struct _cef_view_t* self) {
cef_scroll_view_t* CEF_CALLBACK
browser_view_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -160,15 +164,16 @@ cef_scroll_view_t* CEF_CALLBACK browser_view_as_scroll_view(
return NULL;
// Execute
CefRefPtr<CefScrollView> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->AsScrollView();
CefRefPtr<CefScrollView> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->AsScrollView();
// Return type: refptr_same
return CefScrollViewCppToC::Wrap(_retval);
}
cef_textfield_t* CEF_CALLBACK browser_view_as_textfield(
struct _cef_view_t* self) {
cef_textfield_t* CEF_CALLBACK
browser_view_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -176,15 +181,16 @@ cef_textfield_t* CEF_CALLBACK browser_view_as_textfield(
return NULL;
// Execute
CefRefPtr<CefTextfield> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->AsTextfield();
CefRefPtr<CefTextfield> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->AsTextfield();
// Return type: refptr_same
return CefTextfieldCppToC::Wrap(_retval);
}
cef_string_userfree_t CEF_CALLBACK browser_view_get_type_string(
struct _cef_view_t* self) {
cef_string_userfree_t CEF_CALLBACK
browser_view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -192,15 +198,16 @@ cef_string_userfree_t CEF_CALLBACK browser_view_get_type_string(
return NULL;
// Execute
CefString _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetTypeString();
CefString _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetTypeString();
// Return type: string
return _retval.DetachToUserFree();
}
cef_string_userfree_t CEF_CALLBACK browser_view_to_string(
struct _cef_view_t* self, int include_children) {
cef_string_userfree_t CEF_CALLBACK
browser_view_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -208,9 +215,9 @@ cef_string_userfree_t CEF_CALLBACK browser_view_to_string(
return NULL;
// Execute
CefString _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ToString(
include_children?true:false);
CefString _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ToString(include_children ? true : false);
// Return type: string
return _retval.DetachToUserFree();
@@ -224,8 +231,9 @@ int CEF_CALLBACK browser_view_is_valid(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsValid();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsValid();
// Return type: bool
return _retval;
@@ -239,15 +247,16 @@ int CEF_CALLBACK browser_view_is_attached(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsAttached();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsAttached();
// Return type: bool
return _retval;
}
int CEF_CALLBACK browser_view_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);
@@ -259,16 +268,16 @@ int CEF_CALLBACK browser_view_is_same(struct _cef_view_t* self,
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsSame(
CefViewCppToC::Unwrap(that));
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsSame(CefViewCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_view_delegate_t* CEF_CALLBACK browser_view_get_delegate(
struct _cef_view_t* self) {
struct _cef_view_delegate_t* CEF_CALLBACK
browser_view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -276,15 +285,16 @@ struct _cef_view_delegate_t* CEF_CALLBACK browser_view_get_delegate(
return NULL;
// Execute
CefRefPtr<CefViewDelegate> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetDelegate();
CefRefPtr<CefViewDelegate> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetDelegate();
// Return type: refptr_diff
return CefViewDelegateCToCpp::Unwrap(_retval);
}
struct _cef_window_t* CEF_CALLBACK browser_view_get_window(
struct _cef_view_t* self) {
struct _cef_window_t* CEF_CALLBACK
browser_view_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -292,8 +302,9 @@ struct _cef_window_t* CEF_CALLBACK browser_view_get_window(
return NULL;
// Execute
CefRefPtr<CefWindow> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetWindow();
CefRefPtr<CefWindow> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetWindow();
// Return type: refptr_same
return CefWindowCppToC::Wrap(_retval);
@@ -307,8 +318,9 @@ int CEF_CALLBACK browser_view_get_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->GetID();
int _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetID();
// Return type: simple
return _retval;
@@ -322,8 +334,8 @@ void CEF_CALLBACK browser_view_set_id(struct _cef_view_t* self, int id) {
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))->SetID(
id);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetID(id);
}
int CEF_CALLBACK browser_view_get_group_id(struct _cef_view_t* self) {
@@ -334,15 +346,16 @@ int CEF_CALLBACK browser_view_get_group_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->GetGroupID();
int _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetGroupID();
// Return type: simple
return _retval;
}
void CEF_CALLBACK browser_view_set_group_id(struct _cef_view_t* self,
int group_id) {
int group_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -350,13 +363,12 @@ void CEF_CALLBACK browser_view_set_group_id(struct _cef_view_t* self,
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetGroupID(
group_id);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetGroupID(group_id);
}
struct _cef_view_t* CEF_CALLBACK browser_view_get_parent_view(
struct _cef_view_t* self) {
struct _cef_view_t* CEF_CALLBACK
browser_view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -364,15 +376,16 @@ struct _cef_view_t* CEF_CALLBACK browser_view_get_parent_view(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetParentView();
CefRefPtr<CefView> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetParentView();
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
struct _cef_view_t* CEF_CALLBACK browser_view_get_view_for_id(
struct _cef_view_t* self, int id) {
struct _cef_view_t* CEF_CALLBACK
browser_view_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -380,16 +393,16 @@ struct _cef_view_t* CEF_CALLBACK browser_view_get_view_for_id(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetViewForID(
id);
CefRefPtr<CefView> _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetViewForID(id);
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
void CEF_CALLBACK browser_view_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);
@@ -401,12 +414,11 @@ void CEF_CALLBACK browser_view_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
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetBounds(
boundsVal);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetBounds(boundsVal);
}
cef_rect_t CEF_CALLBACK browser_view_get_bounds(struct _cef_view_t* self) {
@@ -417,15 +429,16 @@ cef_rect_t CEF_CALLBACK browser_view_get_bounds(struct _cef_view_t* self) {
return CefRect();
// Execute
cef_rect_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetBounds();
cef_rect_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetBounds();
// Return type: simple
return _retval;
}
cef_rect_t CEF_CALLBACK browser_view_get_bounds_in_screen(
struct _cef_view_t* self) {
cef_rect_t CEF_CALLBACK
browser_view_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -433,15 +446,16 @@ cef_rect_t CEF_CALLBACK browser_view_get_bounds_in_screen(
return CefRect();
// Execute
cef_rect_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetBoundsInScreen();
cef_rect_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetBoundsInScreen();
// Return type: simple
return _retval;
}
void CEF_CALLBACK browser_view_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);
@@ -453,12 +467,11 @@ void CEF_CALLBACK browser_view_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
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetSize(
sizeVal);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetSize(sizeVal);
}
cef_size_t CEF_CALLBACK browser_view_get_size(struct _cef_view_t* self) {
@@ -469,15 +482,16 @@ cef_size_t CEF_CALLBACK browser_view_get_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetSize();
cef_size_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetSize();
// Return type: simple
return _retval;
}
void CEF_CALLBACK browser_view_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);
@@ -489,12 +503,11 @@ void CEF_CALLBACK browser_view_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
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetPosition(
positionVal);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetPosition(positionVal);
}
cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) {
@@ -505,15 +518,16 @@ cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) {
return CefPoint();
// Execute
cef_point_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetPosition();
cef_point_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetPosition();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK browser_view_get_preferred_size(
struct _cef_view_t* self) {
cef_size_t CEF_CALLBACK
browser_view_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -521,15 +535,16 @@ cef_size_t CEF_CALLBACK browser_view_get_preferred_size(
return CefSize();
// Execute
cef_size_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetPreferredSize();
cef_size_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetPreferredSize();
// Return type: simple
return _retval;
}
void CEF_CALLBACK browser_view_size_to_preferred_size(
struct _cef_view_t* self) {
void CEF_CALLBACK
browser_view_size_to_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -537,12 +552,12 @@ void CEF_CALLBACK browser_view_size_to_preferred_size(
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SizeToPreferredSize();
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SizeToPreferredSize();
}
cef_size_t CEF_CALLBACK browser_view_get_minimum_size(
struct _cef_view_t* self) {
cef_size_t CEF_CALLBACK
browser_view_get_minimum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -550,15 +565,16 @@ cef_size_t CEF_CALLBACK browser_view_get_minimum_size(
return CefSize();
// Execute
cef_size_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetMinimumSize();
cef_size_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetMinimumSize();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK browser_view_get_maximum_size(
struct _cef_view_t* self) {
cef_size_t CEF_CALLBACK
browser_view_get_maximum_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -566,15 +582,16 @@ cef_size_t CEF_CALLBACK browser_view_get_maximum_size(
return CefSize();
// Execute
cef_size_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetMaximumSize();
cef_size_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetMaximumSize();
// Return type: simple
return _retval;
}
int CEF_CALLBACK browser_view_get_height_for_width(struct _cef_view_t* self,
int width) {
int width) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -582,9 +599,9 @@ int CEF_CALLBACK browser_view_get_height_for_width(struct _cef_view_t* self,
return 0;
// Execute
int _retval = CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->GetHeightForWidth(
width);
int _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetHeightForWidth(width);
// Return type: simple
return _retval;
@@ -598,12 +615,12 @@ void CEF_CALLBACK browser_view_invalidate_layout(struct _cef_view_t* self) {
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->InvalidateLayout();
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->InvalidateLayout();
}
void CEF_CALLBACK browser_view_set_visible(struct _cef_view_t* self,
int visible) {
int visible) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -611,9 +628,8 @@ void CEF_CALLBACK browser_view_set_visible(struct _cef_view_t* self,
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetVisible(
visible?true:false);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetVisible(visible ? true : false);
}
int CEF_CALLBACK browser_view_is_visible(struct _cef_view_t* self) {
@@ -624,8 +640,9 @@ int CEF_CALLBACK browser_view_is_visible(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsVisible();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsVisible();
// Return type: bool
return _retval;
@@ -639,15 +656,16 @@ int CEF_CALLBACK browser_view_is_drawn(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsDrawn();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsDrawn();
// Return type: bool
return _retval;
}
void CEF_CALLBACK browser_view_set_enabled(struct _cef_view_t* self,
int enabled) {
int enabled) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -655,9 +673,8 @@ void CEF_CALLBACK browser_view_set_enabled(struct _cef_view_t* self,
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetEnabled(
enabled?true:false);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetEnabled(enabled ? true : false);
}
int CEF_CALLBACK browser_view_is_enabled(struct _cef_view_t* self) {
@@ -668,15 +685,16 @@ int CEF_CALLBACK browser_view_is_enabled(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsEnabled();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsEnabled();
// Return type: bool
return _retval;
}
void CEF_CALLBACK browser_view_set_focusable(struct _cef_view_t* self,
int focusable) {
int focusable) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -684,9 +702,8 @@ void CEF_CALLBACK browser_view_set_focusable(struct _cef_view_t* self,
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetFocusable(
focusable?true:false);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetFocusable(focusable ? true : false);
}
int CEF_CALLBACK browser_view_is_focusable(struct _cef_view_t* self) {
@@ -697,15 +714,16 @@ int CEF_CALLBACK browser_view_is_focusable(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsFocusable();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsFocusable();
// Return type: bool
return _retval;
}
int CEF_CALLBACK browser_view_is_accessibility_focusable(
struct _cef_view_t* self) {
int CEF_CALLBACK
browser_view_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -713,8 +731,9 @@ int CEF_CALLBACK browser_view_is_accessibility_focusable(
return 0;
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->IsAccessibilityFocusable();
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->IsAccessibilityFocusable();
// Return type: bool
return _retval;
@@ -728,12 +747,12 @@ void CEF_CALLBACK browser_view_request_focus(struct _cef_view_t* self) {
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->RequestFocus();
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->RequestFocus();
}
void CEF_CALLBACK browser_view_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);
@@ -741,13 +760,12 @@ void CEF_CALLBACK browser_view_set_background_color(struct _cef_view_t* self,
return;
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(
self))->SetBackgroundColor(
color);
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetBackgroundColor(color);
}
cef_color_t CEF_CALLBACK browser_view_get_background_color(
struct _cef_view_t* self) {
cef_color_t CEF_CALLBACK
browser_view_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -755,15 +773,16 @@ cef_color_t CEF_CALLBACK browser_view_get_background_color(
return 0;
// Execute
cef_color_t _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->GetBackgroundColor();
cef_color_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetBackgroundColor();
// Return type: simple
return _retval;
}
int CEF_CALLBACK browser_view_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);
@@ -775,12 +794,12 @@ int CEF_CALLBACK browser_view_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 = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointToScreen(
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -790,8 +809,9 @@ int CEF_CALLBACK browser_view_convert_point_to_screen(struct _cef_view_t* self,
return _retval;
}
int CEF_CALLBACK browser_view_convert_point_from_screen(
struct _cef_view_t* self, cef_point_t* point) {
int CEF_CALLBACK
browser_view_convert_point_from_screen(struct _cef_view_t* self,
cef_point_t* point) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -803,12 +823,12 @@ int CEF_CALLBACK browser_view_convert_point_from_screen(
return 0;
// Translate param: point; type: simple_byref
CefPoint pointVal = point?*point:CefPoint();
CefPoint pointVal = point ? *point : CefPoint();
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointFromScreen(
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -819,7 +839,7 @@ int CEF_CALLBACK browser_view_convert_point_from_screen(
}
int CEF_CALLBACK browser_view_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);
@@ -831,12 +851,12 @@ int CEF_CALLBACK browser_view_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 = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointToWindow(
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -846,8 +866,9 @@ int CEF_CALLBACK browser_view_convert_point_to_window(struct _cef_view_t* self,
return _retval;
}
int CEF_CALLBACK browser_view_convert_point_from_window(
struct _cef_view_t* self, cef_point_t* point) {
int CEF_CALLBACK
browser_view_convert_point_from_window(struct _cef_view_t* self,
cef_point_t* point) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -859,12 +880,12 @@ int CEF_CALLBACK browser_view_convert_point_from_window(
return 0;
// Translate param: point; type: simple_byref
CefPoint pointVal = point?*point:CefPoint();
CefPoint pointVal = point ? *point : CefPoint();
// Execute
bool _retval = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointFromWindow(
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -875,7 +896,8 @@ int CEF_CALLBACK browser_view_convert_point_from_window(
}
int CEF_CALLBACK browser_view_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);
@@ -891,13 +913,12 @@ int CEF_CALLBACK browser_view_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 = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointToView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -908,7 +929,8 @@ int CEF_CALLBACK browser_view_convert_point_to_view(struct _cef_view_t* self,
}
int CEF_CALLBACK browser_view_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);
@@ -924,13 +946,12 @@ int CEF_CALLBACK browser_view_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 = CefBrowserViewCppToC::Get(
reinterpret_cast<cef_browser_view_t*>(self))->ConvertPointFromView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -942,7 +963,6 @@ int CEF_CALLBACK browser_view_convert_point_from_view(struct _cef_view_t* self,
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefBrowserViewCppToC::CefBrowserViewCppToC() {
@@ -1005,17 +1025,23 @@ CefBrowserViewCppToC::CefBrowserViewCppToC() {
browser_view_convert_point_from_view;
}
template<> CefRefPtr<CefBrowserView> CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView, cef_browser_view_t>::UnwrapDerived(CefWrapperType type,
cef_browser_view_t* s) {
template <>
CefRefPtr<CefBrowserView>
CefCppToCRefCounted<CefBrowserViewCppToC, CefBrowserView, cef_browser_view_t>::
UnwrapDerived(CefWrapperType type, cef_browser_view_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView, cef_browser_view_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView,
cef_browser_view_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView, cef_browser_view_t>::kWrapperType = WT_BROWSER_VIEW;
template <>
CefWrapperType CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView,
cef_browser_view_t>::kWrapperType =
WT_BROWSER_VIEW;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=83e50496f673ccae0b62729d3ef80272c317b49c$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_CPPTOC_H_
@@ -18,15 +20,15 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_browser_view.h"
#include "include/capi/views/cef_browser_view_capi.h"
#include "include/views/cef_browser_view.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefBrowserViewCppToC
: public CefCppToCRefCounted<CefBrowserViewCppToC, CefBrowserView,
cef_browser_view_t> {
class CefBrowserViewCppToC : public CefCppToCRefCounted<CefBrowserViewCppToC,
CefBrowserView,
cef_browser_view_t> {
public:
CefBrowserViewCppToC();
};

View File

@@ -9,20 +9,22 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9a19ca77c7dad9e0c8ddd5a1f3f2c1a2073fdd84$
//
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
#include "libcef_dll/cpptoc/client_cpptoc.h"
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK browser_view_delegate_on_browser_created(
struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view,
struct _cef_browser_view_delegate_t* self,
cef_browser_view_t* browser_view,
cef_browser_t* browser) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@@ -45,7 +47,8 @@ void CEF_CALLBACK browser_view_delegate_on_browser_created(
}
void CEF_CALLBACK browser_view_delegate_on_browser_destroyed(
struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view,
struct _cef_browser_view_delegate_t* self,
cef_browser_view_t* browser_view,
cef_browser_t* browser) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@@ -67,9 +70,12 @@ void CEF_CALLBACK browser_view_delegate_on_browser_destroyed(
CefBrowserCToCpp::Wrap(browser));
}
cef_browser_view_delegate_t* CEF_CALLBACK browser_view_delegate_get_delegate_for_popup_browser_view(
struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view,
const struct _cef_browser_settings_t* settings, cef_client_t* client,
cef_browser_view_delegate_t* CEF_CALLBACK
browser_view_delegate_get_delegate_for_popup_browser_view(
struct _cef_browser_view_delegate_t* self,
cef_browser_view_t* browser_view,
const struct _cef_browser_settings_t* settings,
cef_client_t* client,
int is_devtools) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@@ -95,20 +101,20 @@ cef_browser_view_delegate_t* CEF_CALLBACK browser_view_delegate_get_delegate_for
settingsObj.Set(*settings, false);
// Execute
CefRefPtr<CefBrowserViewDelegate> _retval = CefBrowserViewDelegateCppToC::Get(
self)->GetDelegateForPopupBrowserView(
CefBrowserViewCToCpp::Wrap(browser_view),
settingsObj,
CefClientCppToC::Unwrap(client),
is_devtools?true:false);
CefRefPtr<CefBrowserViewDelegate> _retval =
CefBrowserViewDelegateCppToC::Get(self)->GetDelegateForPopupBrowserView(
CefBrowserViewCToCpp::Wrap(browser_view), settingsObj,
CefClientCppToC::Unwrap(client), is_devtools ? true : false);
// Return type: refptr_same
return CefBrowserViewDelegateCppToC::Wrap(_retval);
}
int CEF_CALLBACK browser_view_delegate_on_popup_browser_view_created(
struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view,
cef_browser_view_t* popup_browser_view, int is_devtools) {
struct _cef_browser_view_delegate_t* self,
cef_browser_view_t* browser_view,
cef_browser_view_t* popup_browser_view,
int is_devtools) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -124,18 +130,19 @@ int CEF_CALLBACK browser_view_delegate_on_popup_browser_view_created(
return 0;
// Execute
bool _retval = CefBrowserViewDelegateCppToC::Get(
self)->OnPopupBrowserViewCreated(
CefBrowserViewCToCpp::Wrap(browser_view),
CefBrowserViewCToCpp::Wrap(popup_browser_view),
is_devtools?true:false);
bool _retval =
CefBrowserViewDelegateCppToC::Get(self)->OnPopupBrowserViewCreated(
CefBrowserViewCToCpp::Wrap(browser_view),
CefBrowserViewCToCpp::Wrap(popup_browser_view),
is_devtools ? true : false);
// Return type: bool
return _retval;
}
cef_size_t CEF_CALLBACK browser_view_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
browser_view_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -148,15 +155,16 @@ cef_size_t CEF_CALLBACK browser_view_delegate_get_preferred_size(
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->GetPreferredSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->GetPreferredSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK browser_view_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
browser_view_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -169,15 +177,16 @@ cef_size_t CEF_CALLBACK browser_view_delegate_get_minimum_size(
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->GetMinimumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->GetMinimumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK browser_view_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
browser_view_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -190,15 +199,17 @@ cef_size_t CEF_CALLBACK browser_view_delegate_get_maximum_size(
// Execute
cef_size_t _retval = CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->GetMaximumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->GetMaximumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
int CEF_CALLBACK browser_view_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
browser_view_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);
@@ -211,17 +222,18 @@ int CEF_CALLBACK browser_view_delegate_get_height_for_width(
// Execute
int _retval = CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK browser_view_delegate_on_parent_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* parent) {
void CEF_CALLBACK
browser_view_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);
@@ -238,16 +250,16 @@ void CEF_CALLBACK browser_view_delegate_on_parent_view_changed(
// Execute
CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(
self))->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(parent));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK browser_view_delegate_on_child_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* child) {
void CEF_CALLBACK
browser_view_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);
@@ -264,14 +276,14 @@ void CEF_CALLBACK browser_view_delegate_on_child_view_changed(
// Execute
CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(child));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK browser_view_delegate_on_focus(
struct _cef_view_delegate_t* self, cef_view_t* view) {
void CEF_CALLBACK
browser_view_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -284,12 +296,13 @@ void CEF_CALLBACK browser_view_delegate_on_focus(
// Execute
CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->OnFocus(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK browser_view_delegate_on_blur(
struct _cef_view_delegate_t* self, cef_view_t* view) {
void CEF_CALLBACK
browser_view_delegate_on_blur(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -302,13 +315,12 @@ void CEF_CALLBACK browser_view_delegate_on_blur(
// Execute
CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))->OnBlur(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefBrowserViewDelegateCppToC::CefBrowserViewDelegateCppToC() {
@@ -333,18 +345,27 @@ CefBrowserViewDelegateCppToC::CefBrowserViewDelegateCppToC() {
GetStruct()->base.on_blur = browser_view_delegate_on_blur;
}
template<> CefRefPtr<CefBrowserViewDelegate> CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate, cef_browser_view_delegate_t>::UnwrapDerived(
CefWrapperType type, cef_browser_view_delegate_t* s) {
template <>
CefRefPtr<CefBrowserViewDelegate> CefCppToCRefCounted<
CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate,
cef_browser_view_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_browser_view_delegate_t*
s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate, cef_browser_view_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate,
cef_browser_view_delegate_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate, cef_browser_view_delegate_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate,
cef_browser_view_delegate_t>::kWrapperType =
WT_BROWSER_VIEW_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=1f4deb7e04581129aac9e6a0461bc1e7772a875c$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_DELEGATE_CPPTOC_H_
@@ -18,19 +20,20 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_browser_view_delegate.h"
#include "include/capi/cef_browser_capi.h"
#include "include/capi/views/cef_browser_view_capi.h"
#include "include/capi/views/cef_browser_view_delegate_capi.h"
#include "include/cef_browser.h"
#include "include/capi/cef_browser_capi.h"
#include "include/views/cef_browser_view.h"
#include "include/capi/views/cef_browser_view_capi.h"
#include "include/views/cef_browser_view_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefBrowserViewDelegateCppToC
: public CefCppToCRefCounted<CefBrowserViewDelegateCppToC,
CefBrowserViewDelegate, cef_browser_view_delegate_t> {
CefBrowserViewDelegate,
cef_browser_view_delegate_t> {
public:
CefBrowserViewDelegateCppToC();
};

View File

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

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4b8c8e3c2dda9ef0f51b5b05a5046cafdcd933fb$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_CPPTOC_H_
@@ -18,10 +20,10 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_button.h"
#include "include/capi/views/cef_button_capi.h"
#include "include/views/cef_label_button.h"
#include "include/capi/views/cef_label_button_capi.h"
#include "include/views/cef_button.h"
#include "include/views/cef_label_button.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

View File

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

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a541f3cf1af9fd7de2a481ca44dbcc2c4237b0d2$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_DELEGATE_CPPTOC_H_
@@ -18,17 +20,18 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_button_delegate.h"
#include "include/capi/views/cef_button_capi.h"
#include "include/capi/views/cef_button_delegate_capi.h"
#include "include/views/cef_button.h"
#include "include/capi/views/cef_button_capi.h"
#include "include/views/cef_button_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefButtonDelegateCppToC
: public CefCppToCRefCounted<CefButtonDelegateCppToC, CefButtonDelegate,
cef_button_delegate_t> {
: public CefCppToCRefCounted<CefButtonDelegateCppToC,
CefButtonDelegate,
cef_button_delegate_t> {
public:
CefButtonDelegateCppToC();
};

View File

@@ -9,11 +9,12 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=419a1382826b28236d1489946915172ab944e081$
//
#include <algorithm>
#include "libcef_dll/cpptoc/views/display_cpptoc.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_display_t* cef_display_get_primary() {
@@ -27,7 +28,8 @@ CEF_EXPORT cef_display_t* cef_display_get_primary() {
}
CEF_EXPORT cef_display_t* cef_display_get_nearest_point(
const cef_point_t* point, int input_pixel_coords) {
const cef_point_t* point,
int input_pixel_coords) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: point; type: simple_byref_const
@@ -36,19 +38,19 @@ CEF_EXPORT cef_display_t* cef_display_get_nearest_point(
return NULL;
// Translate param: point; type: simple_byref_const
CefPoint pointVal = point?*point:CefPoint();
CefPoint pointVal = point ? *point : CefPoint();
// Execute
CefRefPtr<CefDisplay> _retval = CefDisplay::GetDisplayNearestPoint(
pointVal,
input_pixel_coords?true:false);
pointVal, input_pixel_coords ? true : false);
// Return type: refptr_same
return CefDisplayCppToC::Wrap(_retval);
}
CEF_EXPORT cef_display_t* cef_display_get_matching_bounds(
const cef_rect_t* bounds, int input_pixel_coords) {
const cef_rect_t* bounds,
int input_pixel_coords) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: bounds; type: simple_byref_const
@@ -57,12 +59,11 @@ CEF_EXPORT cef_display_t* cef_display_get_matching_bounds(
return NULL;
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds?*bounds:CefRect();
CefRect boundsVal = bounds ? *bounds : CefRect();
// Execute
CefRefPtr<CefDisplay> _retval = CefDisplay::GetDisplayMatchingBounds(
boundsVal,
input_pixel_coords?true:false);
boundsVal, input_pixel_coords ? true : false);
// Return type: refptr_same
return CefDisplayCppToC::Wrap(_retval);
@@ -79,7 +80,7 @@ CEF_EXPORT size_t cef_display_get_count() {
}
CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
cef_display_t** displays) {
cef_display_t** displays) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: displays; type: refptr_vec_same_byref
@@ -88,7 +89,7 @@ CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
return;
// Translate param: displays; type: refptr_vec_same_byref
std::vector<CefRefPtr<CefDisplay> > displaysList;
std::vector<CefRefPtr<CefDisplay>> displaysList;
if (displaysCount && *displaysCount > 0 && displays) {
for (size_t i = 0; i < *displaysCount; ++i) {
displaysList.push_back(CefDisplayCppToC::Unwrap(displays[i]));
@@ -96,8 +97,7 @@ CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
}
// Execute
CefDisplay::GetAllDisplays(
displaysList);
CefDisplay::GetAllDisplays(displaysList);
// Restore param: displays; type: refptr_vec_same_byref
if (displaysCount && displays) {
@@ -110,7 +110,6 @@ CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
}
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
@@ -129,8 +128,8 @@ int64 CEF_CALLBACK display_get_id(struct _cef_display_t* self) {
return _retval;
}
float CEF_CALLBACK display_get_device_scale_factor(
struct _cef_display_t* self) {
float CEF_CALLBACK
display_get_device_scale_factor(struct _cef_display_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -145,7 +144,7 @@ float CEF_CALLBACK display_get_device_scale_factor(
}
void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self,
cef_point_t* point) {
cef_point_t* point) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -157,11 +156,10 @@ void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self,
return;
// Translate param: point; type: simple_byref
CefPoint pointVal = point?*point:CefPoint();
CefPoint pointVal = point ? *point : CefPoint();
// Execute
CefDisplayCppToC::Get(self)->ConvertPointToPixels(
pointVal);
CefDisplayCppToC::Get(self)->ConvertPointToPixels(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -169,7 +167,7 @@ void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self,
}
void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self,
cef_point_t* point) {
cef_point_t* point) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -181,11 +179,10 @@ void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self,
return;
// Translate param: point; type: simple_byref
CefPoint pointVal = point?*point:CefPoint();
CefPoint pointVal = point ? *point : CefPoint();
// Execute
CefDisplayCppToC::Get(self)->ConvertPointFromPixels(
pointVal);
CefDisplayCppToC::Get(self)->ConvertPointFromPixels(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -236,7 +233,6 @@ int CEF_CALLBACK display_get_rotation(struct _cef_display_t* self) {
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefDisplayCppToC::CefDisplayCppToC() {
@@ -249,17 +245,23 @@ CefDisplayCppToC::CefDisplayCppToC() {
GetStruct()->get_rotation = display_get_rotation;
}
template<> CefRefPtr<CefDisplay> CefCppToCRefCounted<CefDisplayCppToC,
CefDisplay, cef_display_t>::UnwrapDerived(CefWrapperType type,
template <>
CefRefPtr<CefDisplay>
CefCppToCRefCounted<CefDisplayCppToC, CefDisplay, cef_display_t>::UnwrapDerived(
CefWrapperType type,
cef_display_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefDisplayCppToC,
CefDisplay, cef_display_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefDisplayCppToC,
CefDisplay,
cef_display_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefDisplayCppToC, CefDisplay,
cef_display_t>::kWrapperType = WT_DISPLAY;
template <>
CefWrapperType CefCppToCRefCounted<CefDisplayCppToC,
CefDisplay,
cef_display_t>::kWrapperType = WT_DISPLAY;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=52e62629e88cc653226bf66f1628dbdff607b3c9$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_DISPLAY_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_DISPLAY_CPPTOC_H_
@@ -18,8 +20,8 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_display.h"
#include "include/capi/views/cef_display_capi.h"
#include "include/views/cef_display.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

View File

@@ -9,17 +9,18 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f780dd085b13ba188b549770e8a2d00cbe2d5c91$
//
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_box_layout_t* CEF_CALLBACK fill_layout_as_box_layout(
struct _cef_layout_t* self) {
cef_box_layout_t* CEF_CALLBACK
fill_layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -27,15 +28,16 @@ cef_box_layout_t* CEF_CALLBACK fill_layout_as_box_layout(
return NULL;
// Execute
CefRefPtr<CefBoxLayout> _retval = CefFillLayoutCppToC::Get(
reinterpret_cast<cef_fill_layout_t*>(self))->AsBoxLayout();
CefRefPtr<CefBoxLayout> _retval =
CefFillLayoutCppToC::Get(reinterpret_cast<cef_fill_layout_t*>(self))
->AsBoxLayout();
// Return type: refptr_same
return CefBoxLayoutCppToC::Wrap(_retval);
}
cef_fill_layout_t* CEF_CALLBACK fill_layout_as_fill_layout(
struct _cef_layout_t* self) {
cef_fill_layout_t* CEF_CALLBACK
fill_layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -43,8 +45,9 @@ cef_fill_layout_t* CEF_CALLBACK fill_layout_as_fill_layout(
return NULL;
// Execute
CefRefPtr<CefFillLayout> _retval = CefFillLayoutCppToC::Get(
reinterpret_cast<cef_fill_layout_t*>(self))->AsFillLayout();
CefRefPtr<CefFillLayout> _retval =
CefFillLayoutCppToC::Get(reinterpret_cast<cef_fill_layout_t*>(self))
->AsFillLayout();
// Return type: refptr_same
return CefFillLayoutCppToC::Wrap(_retval);
@@ -58,8 +61,9 @@ int CEF_CALLBACK fill_layout_is_valid(struct _cef_layout_t* self) {
return 0;
// Execute
bool _retval = CefFillLayoutCppToC::Get(reinterpret_cast<cef_fill_layout_t*>(
self))->IsValid();
bool _retval =
CefFillLayoutCppToC::Get(reinterpret_cast<cef_fill_layout_t*>(self))
->IsValid();
// Return type: bool
return _retval;
@@ -67,7 +71,6 @@ int CEF_CALLBACK fill_layout_is_valid(struct _cef_layout_t* self) {
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefFillLayoutCppToC::CefFillLayoutCppToC() {
@@ -76,17 +79,23 @@ CefFillLayoutCppToC::CefFillLayoutCppToC() {
GetStruct()->base.is_valid = fill_layout_is_valid;
}
template<> CefRefPtr<CefFillLayout> CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout, cef_fill_layout_t>::UnwrapDerived(CefWrapperType type,
cef_fill_layout_t* s) {
template <>
CefRefPtr<CefFillLayout>
CefCppToCRefCounted<CefFillLayoutCppToC, CefFillLayout, cef_fill_layout_t>::
UnwrapDerived(CefWrapperType type, cef_fill_layout_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout, cef_fill_layout_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout,
cef_fill_layout_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout, cef_fill_layout_t>::kWrapperType = WT_FILL_LAYOUT;
template <>
CefWrapperType CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout,
cef_fill_layout_t>::kWrapperType =
WT_FILL_LAYOUT;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a427b96b052be5219c47d3e3a27dacf15ad8a02f$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_FILL_LAYOUT_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_FILL_LAYOUT_CPPTOC_H_
@@ -18,15 +20,15 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_fill_layout.h"
#include "include/capi/views/cef_fill_layout_capi.h"
#include "include/views/cef_fill_layout.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefFillLayoutCppToC
: public CefCppToCRefCounted<CefFillLayoutCppToC, CefFillLayout,
cef_fill_layout_t> {
class CefFillLayoutCppToC : public CefCppToCRefCounted<CefFillLayoutCppToC,
CefFillLayout,
cef_fill_layout_t> {
public:
CefFillLayoutCppToC();
};

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d7fa3b055397a7b033b2342d1c57b0b62bb185a7$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LABEL_BUTTON_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_LABEL_BUTTON_CPPTOC_H_
@@ -18,17 +20,17 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_label_button.h"
#include "include/capi/views/cef_label_button_capi.h"
#include "include/views/cef_menu_button.h"
#include "include/capi/views/cef_menu_button_capi.h"
#include "include/views/cef_label_button.h"
#include "include/views/cef_menu_button.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefLabelButtonCppToC
: public CefCppToCRefCounted<CefLabelButtonCppToC, CefLabelButton,
cef_label_button_t> {
class CefLabelButtonCppToC : public CefCppToCRefCounted<CefLabelButtonCppToC,
CefLabelButton,
cef_label_button_t> {
public:
CefLabelButtonCppToC();
};

View File

@@ -9,18 +9,19 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b6e3efc1fe708d14feafbc283fc33e6acef2cca9$
//
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/layout_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_box_layout_t* CEF_CALLBACK layout_as_box_layout(
struct _cef_layout_t* self) {
cef_box_layout_t* CEF_CALLBACK
layout_as_box_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -34,8 +35,8 @@ cef_box_layout_t* CEF_CALLBACK layout_as_box_layout(
return CefBoxLayoutCppToC::Wrap(_retval);
}
cef_fill_layout_t* CEF_CALLBACK layout_as_fill_layout(
struct _cef_layout_t* self) {
cef_fill_layout_t* CEF_CALLBACK
layout_as_fill_layout(struct _cef_layout_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -65,7 +66,6 @@ int CEF_CALLBACK layout_is_valid(struct _cef_layout_t* self) {
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefLayoutCppToC::CefLayoutCppToC() {
@@ -74,8 +74,11 @@ CefLayoutCppToC::CefLayoutCppToC() {
GetStruct()->is_valid = layout_is_valid;
}
template<> CefRefPtr<CefLayout> CefCppToCRefCounted<CefLayoutCppToC, CefLayout,
cef_layout_t>::UnwrapDerived(CefWrapperType type, cef_layout_t* s) {
template <>
CefRefPtr<CefLayout>
CefCppToCRefCounted<CefLayoutCppToC, CefLayout, cef_layout_t>::UnwrapDerived(
CefWrapperType type,
cef_layout_t* s) {
if (type == WT_BOX_LAYOUT) {
return CefBoxLayoutCppToC::Unwrap(reinterpret_cast<cef_box_layout_t*>(s));
}
@@ -87,9 +90,12 @@ template<> CefRefPtr<CefLayout> CefCppToCRefCounted<CefLayoutCppToC, CefLayout,
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefLayoutCppToC, CefLayout,
cef_layout_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefLayoutCppToC, CefLayout, cef_layout_t>::DebugObjCt =
0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefLayoutCppToC, CefLayout,
cef_layout_t>::kWrapperType = WT_LAYOUT;
template <>
CefWrapperType CefCppToCRefCounted<CefLayoutCppToC, CefLayout, cef_layout_t>::
kWrapperType = WT_LAYOUT;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=709b97b7a0681318066ea81342a04e3b61859930$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LAYOUT_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_LAYOUT_CPPTOC_H_
@@ -18,12 +20,12 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_layout.h"
#include "include/capi/views/cef_box_layout_capi.h"
#include "include/capi/views/cef_fill_layout_capi.h"
#include "include/capi/views/cef_layout_capi.h"
#include "include/views/cef_box_layout.h"
#include "include/capi/views/cef_box_layout_capi.h"
#include "include/views/cef_fill_layout.h"
#include "include/capi/views/cef_fill_layout_capi.h"
#include "include/views/cef_layout.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d630dbad95607fbb076035ba1760e959016f4867$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_CPPTOC_H_
@@ -18,15 +20,15 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_menu_button.h"
#include "include/capi/views/cef_menu_button_capi.h"
#include "include/views/cef_menu_button.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefMenuButtonCppToC
: public CefCppToCRefCounted<CefMenuButtonCppToC, CefMenuButton,
cef_menu_button_t> {
class CefMenuButtonCppToC : public CefCppToCRefCounted<CefMenuButtonCppToC,
CefMenuButton,
cef_menu_button_t> {
public:
CefMenuButtonCppToC();
};

View File

@@ -9,19 +9,21 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5fb2df4d0f1e5e3eae470c6808edee2a9cf1d52a$
//
#include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/button_ctocpp.h"
#include "libcef_dll/ctocpp/views/menu_button_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK menu_button_delegate_on_menu_button_pressed(
struct _cef_menu_button_delegate_t* self, cef_menu_button_t* menu_button,
struct _cef_menu_button_delegate_t* self,
cef_menu_button_t* menu_button,
const cef_point_t* screen_point) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@@ -38,16 +40,16 @@ void CEF_CALLBACK menu_button_delegate_on_menu_button_pressed(
return;
// Translate param: screen_point; type: simple_byref_const
CefPoint screen_pointVal = screen_point?*screen_point:CefPoint();
CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
// Execute
CefMenuButtonDelegateCppToC::Get(self)->OnMenuButtonPressed(
CefMenuButtonCToCpp::Wrap(menu_button),
screen_pointVal);
CefMenuButtonCToCpp::Wrap(menu_button), screen_pointVal);
}
void CEF_CALLBACK menu_button_delegate_on_button_pressed(
struct _cef_button_delegate_t* self, cef_button_t* button) {
void CEF_CALLBACK
menu_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);
@@ -60,12 +62,13 @@ void CEF_CALLBACK menu_button_delegate_on_button_pressed(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->OnButtonPressed(
CefButtonCToCpp::Wrap(button));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnButtonPressed(CefButtonCToCpp::Wrap(button));
}
void CEF_CALLBACK menu_button_delegate_on_button_state_changed(
struct _cef_button_delegate_t* self, cef_button_t* button) {
struct _cef_button_delegate_t* self,
cef_button_t* button) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -78,13 +81,13 @@ void CEF_CALLBACK menu_button_delegate_on_button_state_changed(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(
self))->OnButtonStateChanged(
CefButtonCToCpp::Wrap(button));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnButtonStateChanged(CefButtonCToCpp::Wrap(button));
}
cef_size_t CEF_CALLBACK menu_button_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
menu_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);
@@ -97,15 +100,16 @@ cef_size_t CEF_CALLBACK menu_button_delegate_get_preferred_size(
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->GetPreferredSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->GetPreferredSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK menu_button_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
menu_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);
@@ -118,15 +122,16 @@ cef_size_t CEF_CALLBACK menu_button_delegate_get_minimum_size(
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->GetMinimumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->GetMinimumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK menu_button_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
menu_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);
@@ -139,15 +144,17 @@ cef_size_t CEF_CALLBACK menu_button_delegate_get_maximum_size(
// Execute
cef_size_t _retval = CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->GetMaximumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->GetMaximumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
int CEF_CALLBACK menu_button_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
menu_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);
@@ -160,17 +167,18 @@ int CEF_CALLBACK menu_button_delegate_get_height_for_width(
// Execute
int _retval = CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK menu_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
menu_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);
@@ -187,15 +195,16 @@ void CEF_CALLBACK menu_button_delegate_on_parent_view_changed(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(parent));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK menu_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
menu_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);
@@ -212,14 +221,14 @@ void CEF_CALLBACK menu_button_delegate_on_child_view_changed(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(child));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK menu_button_delegate_on_focus(
struct _cef_view_delegate_t* self, cef_view_t* view) {
void CEF_CALLBACK
menu_button_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -232,12 +241,13 @@ void CEF_CALLBACK menu_button_delegate_on_focus(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->OnFocus(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK menu_button_delegate_on_blur(
struct _cef_view_delegate_t* self, cef_view_t* view) {
void CEF_CALLBACK
menu_button_delegate_on_blur(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -250,13 +260,12 @@ void CEF_CALLBACK menu_button_delegate_on_blur(
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))->OnBlur(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefMenuButtonDelegateCppToC::CefMenuButtonDelegateCppToC() {
@@ -281,18 +290,26 @@ CefMenuButtonDelegateCppToC::CefMenuButtonDelegateCppToC() {
GetStruct()->base.base.on_blur = menu_button_delegate_on_blur;
}
template<> CefRefPtr<CefMenuButtonDelegate> CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate, cef_menu_button_delegate_t>::UnwrapDerived(
CefWrapperType type, cef_menu_button_delegate_t* s) {
template <>
CefRefPtr<CefMenuButtonDelegate> CefCppToCRefCounted<
CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate,
cef_menu_button_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_menu_button_delegate_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate, cef_menu_button_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate,
cef_menu_button_delegate_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate, cef_menu_button_delegate_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate,
cef_menu_button_delegate_t>::kWrapperType =
WT_MENU_BUTTON_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=bb001eb3753ab4ab8e4fb10ae1aadea6e5db0ffb$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_DELEGATE_CPPTOC_H_
@@ -18,17 +20,18 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_menu_button_delegate.h"
#include "include/capi/views/cef_menu_button_capi.h"
#include "include/capi/views/cef_menu_button_delegate_capi.h"
#include "include/views/cef_menu_button.h"
#include "include/capi/views/cef_menu_button_capi.h"
#include "include/views/cef_menu_button_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefMenuButtonDelegateCppToC
: public CefCppToCRefCounted<CefMenuButtonDelegateCppToC,
CefMenuButtonDelegate, cef_menu_button_delegate_t> {
CefMenuButtonDelegate,
cef_menu_button_delegate_t> {
public:
CefMenuButtonDelegateCppToC();
};

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=2d4b60447f6e9e1ccc04b5e76f1635ffd3484075$
//
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
@@ -23,7 +25,6 @@
#include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_panel_t* cef_panel_create(cef_panel_delegate_t* delegate) {
@@ -32,14 +33,13 @@ CEF_EXPORT cef_panel_t* cef_panel_create(cef_panel_delegate_t* delegate) {
// Unverified params: delegate
// Execute
CefRefPtr<CefPanel> _retval = CefPanel::CreatePanel(
CefPanelDelegateCToCpp::Wrap(delegate));
CefRefPtr<CefPanel> _retval =
CefPanel::CreatePanel(CefPanelDelegateCToCpp::Wrap(delegate));
// Return type: refptr_same
return CefPanelCppToC::Wrap(_retval);
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
@@ -58,8 +58,8 @@ struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_t* self) {
return CefWindowCppToC::Wrap(_retval);
}
cef_fill_layout_t* CEF_CALLBACK panel_set_to_fill_layout(
struct _cef_panel_t* self) {
cef_fill_layout_t* CEF_CALLBACK
panel_set_to_fill_layout(struct _cef_panel_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -67,16 +67,16 @@ cef_fill_layout_t* CEF_CALLBACK panel_set_to_fill_layout(
return NULL;
// Execute
CefRefPtr<CefFillLayout> _retval = CefPanelCppToC::Get(self)->SetToFillLayout(
);
CefRefPtr<CefFillLayout> _retval =
CefPanelCppToC::Get(self)->SetToFillLayout();
// Return type: refptr_same
return CefFillLayoutCppToC::Wrap(_retval);
}
cef_box_layout_t* CEF_CALLBACK panel_set_to_box_layout(
struct _cef_panel_t* self,
const struct _cef_box_layout_settings_t* settings) {
cef_box_layout_t* CEF_CALLBACK
panel_set_to_box_layout(struct _cef_panel_t* self,
const struct _cef_box_layout_settings_t* settings) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -93,8 +93,8 @@ cef_box_layout_t* CEF_CALLBACK panel_set_to_box_layout(
settingsObj.Set(*settings, false);
// Execute
CefRefPtr<CefBoxLayout> _retval = CefPanelCppToC::Get(self)->SetToBoxLayout(
settingsObj);
CefRefPtr<CefBoxLayout> _retval =
CefPanelCppToC::Get(self)->SetToBoxLayout(settingsObj);
// Return type: refptr_same
return CefBoxLayoutCppToC::Wrap(_retval);
@@ -126,7 +126,7 @@ void CEF_CALLBACK panel_layout(struct _cef_panel_t* self) {
}
void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self,
struct _cef_view_t* view) {
struct _cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -138,12 +138,12 @@ void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self,
return;
// Execute
CefPanelCppToC::Get(self)->AddChildView(
CefViewCppToC::Unwrap(view));
CefPanelCppToC::Get(self)->AddChildView(CefViewCppToC::Unwrap(view));
}
void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self,
struct _cef_view_t* view, int index) {
struct _cef_view_t* view,
int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -159,13 +159,12 @@ void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self,
return;
// Execute
CefPanelCppToC::Get(self)->AddChildViewAt(
CefViewCppToC::Unwrap(view),
index);
CefPanelCppToC::Get(self)->AddChildViewAt(CefViewCppToC::Unwrap(view), index);
}
void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self,
struct _cef_view_t* view, int index) {
struct _cef_view_t* view,
int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -177,13 +176,12 @@ void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self,
return;
// Execute
CefPanelCppToC::Get(self)->ReorderChildView(
CefViewCppToC::Unwrap(view),
index);
CefPanelCppToC::Get(self)->ReorderChildView(CefViewCppToC::Unwrap(view),
index);
}
void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self,
struct _cef_view_t* view) {
struct _cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -195,8 +193,7 @@ void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self,
return;
// Execute
CefPanelCppToC::Get(self)->RemoveChildView(
CefViewCppToC::Unwrap(view));
CefPanelCppToC::Get(self)->RemoveChildView(CefViewCppToC::Unwrap(view));
}
void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_t* self) {
@@ -224,8 +221,8 @@ size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_t* self) {
return _retval;
}
struct _cef_view_t* CEF_CALLBACK panel_get_child_view_at(
struct _cef_panel_t* self, int index) {
struct _cef_view_t* CEF_CALLBACK
panel_get_child_view_at(struct _cef_panel_t* self, int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -237,15 +234,14 @@ struct _cef_view_t* CEF_CALLBACK panel_get_child_view_at(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefPanelCppToC::Get(self)->GetChildViewAt(
index);
CefRefPtr<CefView> _retval = CefPanelCppToC::Get(self)->GetChildViewAt(index);
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
cef_browser_view_t* CEF_CALLBACK panel_as_browser_view(
struct _cef_view_t* self) {
cef_browser_view_t* CEF_CALLBACK
panel_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -253,8 +249,9 @@ cef_browser_view_t* CEF_CALLBACK panel_as_browser_view(
return NULL;
// Execute
CefRefPtr<CefBrowserView> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->AsBrowserView();
CefRefPtr<CefBrowserView> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->AsBrowserView();
// Return type: refptr_same
return CefBrowserViewCppToC::Wrap(_retval);
@@ -268,8 +265,8 @@ cef_button_t* CEF_CALLBACK panel_as_button(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefButton> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->AsButton();
CefRefPtr<CefButton> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsButton();
// Return type: refptr_same
return CefButtonCppToC::Wrap(_retval);
@@ -283,8 +280,8 @@ cef_panel_t* CEF_CALLBACK panel_as_panel(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefPanel> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->AsPanel();
CefRefPtr<CefPanel> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsPanel();
// Return type: refptr_same
return CefPanelCppToC::Wrap(_retval);
@@ -298,8 +295,8 @@ cef_scroll_view_t* CEF_CALLBACK panel_as_scroll_view(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefScrollView> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->AsScrollView();
CefRefPtr<CefScrollView> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsScrollView();
// Return type: refptr_same
return CefScrollViewCppToC::Wrap(_retval);
@@ -313,15 +310,15 @@ cef_textfield_t* CEF_CALLBACK panel_as_textfield(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefTextfield> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->AsTextfield();
CefRefPtr<CefTextfield> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsTextfield();
// Return type: refptr_same
return CefTextfieldCppToC::Wrap(_retval);
}
cef_string_userfree_t CEF_CALLBACK panel_get_type_string(
struct _cef_view_t* self) {
cef_string_userfree_t CEF_CALLBACK
panel_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -329,15 +326,15 @@ cef_string_userfree_t CEF_CALLBACK panel_get_type_string(
return NULL;
// Execute
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetTypeString();
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetTypeString();
// Return type: string
return _retval.DetachToUserFree();
}
cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self,
int include_children) {
int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -345,9 +342,8 @@ cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self,
return NULL;
// Execute
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ToString(
include_children?true:false);
CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ToString(include_children ? true : false);
// Return type: string
return _retval.DetachToUserFree();
@@ -361,8 +357,8 @@ int CEF_CALLBACK panel_is_valid(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsValid();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsValid();
// Return type: bool
return _retval;
@@ -376,15 +372,15 @@ int CEF_CALLBACK panel_is_attached(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsAttached();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsAttached();
// Return type: bool
return _retval;
}
int CEF_CALLBACK panel_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);
@@ -396,16 +392,15 @@ int CEF_CALLBACK panel_is_same(struct _cef_view_t* self,
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsSame(
CefViewCppToC::Unwrap(that));
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->IsSame(CefViewCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_view_delegate_t* CEF_CALLBACK panel_get_delegate(
struct _cef_view_t* self) {
struct _cef_view_delegate_t* CEF_CALLBACK
panel_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -413,8 +408,8 @@ struct _cef_view_delegate_t* CEF_CALLBACK panel_get_delegate(
return NULL;
// Execute
CefRefPtr<CefViewDelegate> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->GetDelegate();
CefRefPtr<CefViewDelegate> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetDelegate();
// Return type: refptr_diff
return CefViewDelegateCToCpp::Unwrap(_retval);
@@ -428,8 +423,8 @@ struct _cef_window_t* CEF_CALLBACK panel_get_window(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefWindow> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->GetWindow();
CefRefPtr<CefWindow> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetWindow();
// Return type: refptr_same
return CefWindowCppToC::Wrap(_retval);
@@ -443,8 +438,8 @@ int CEF_CALLBACK panel_get_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetID();
int _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetID();
// Return type: simple
return _retval;
@@ -458,8 +453,7 @@ void CEF_CALLBACK panel_set_id(struct _cef_view_t* self, int id) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetID(
id);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetID(id);
}
int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) {
@@ -470,8 +464,8 @@ int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetGroupID();
int _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetGroupID();
// Return type: simple
return _retval;
@@ -485,12 +479,12 @@ void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, int group_id) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetGroupID(
group_id);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetGroupID(group_id);
}
struct _cef_view_t* CEF_CALLBACK panel_get_parent_view(
struct _cef_view_t* self) {
struct _cef_view_t* CEF_CALLBACK
panel_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -498,15 +492,16 @@ struct _cef_view_t* CEF_CALLBACK panel_get_parent_view(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->GetParentView();
CefRefPtr<CefView> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetParentView();
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self,
int id) {
int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -514,16 +509,16 @@ struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self,
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefPanelCppToC::Get(
reinterpret_cast<cef_panel_t*>(self))->GetViewForID(
id);
CefRefPtr<CefView> _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetViewForID(id);
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
void CEF_CALLBACK panel_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);
@@ -535,11 +530,11 @@ void CEF_CALLBACK panel_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
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetBounds(
boundsVal);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetBounds(boundsVal);
}
cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) {
@@ -550,8 +545,8 @@ cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) {
return CefRect();
// Execute
cef_rect_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetBounds();
cef_rect_t _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetBounds();
// Return type: simple
return _retval;
@@ -565,15 +560,15 @@ cef_rect_t CEF_CALLBACK panel_get_bounds_in_screen(struct _cef_view_t* self) {
return CefRect();
// Execute
cef_rect_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetBoundsInScreen();
cef_rect_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetBoundsInScreen();
// Return type: simple
return _retval;
}
void CEF_CALLBACK panel_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);
@@ -585,11 +580,10 @@ void CEF_CALLBACK panel_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
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetSize(
sizeVal);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetSize(sizeVal);
}
cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) {
@@ -600,15 +594,15 @@ cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetSize();
cef_size_t _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetSize();
// Return type: simple
return _retval;
}
void CEF_CALLBACK panel_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);
@@ -620,11 +614,11 @@ void CEF_CALLBACK panel_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
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetPosition(
positionVal);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetPosition(positionVal);
}
cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) {
@@ -635,8 +629,8 @@ cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) {
return CefPoint();
// Execute
cef_point_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetPosition();
cef_point_t _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetPosition();
// Return type: simple
return _retval;
@@ -650,8 +644,8 @@ cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetPreferredSize();
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetPreferredSize();
// Return type: simple
return _retval;
@@ -665,8 +659,8 @@ void CEF_CALLBACK panel_size_to_preferred_size(struct _cef_view_t* self) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->SizeToPreferredSize();
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SizeToPreferredSize();
}
cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) {
@@ -677,8 +671,8 @@ cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetMinimumSize();
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetMinimumSize();
// Return type: simple
return _retval;
@@ -692,15 +686,15 @@ cef_size_t CEF_CALLBACK panel_get_maximum_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetMaximumSize();
cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetMaximumSize();
// Return type: simple
return _retval;
}
int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self,
int width) {
int width) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -708,9 +702,8 @@ int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self,
return 0;
// Execute
int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetHeightForWidth(
width);
int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetHeightForWidth(width);
// Return type: simple
return _retval;
@@ -735,8 +728,8 @@ void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, int visible) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetVisible(
visible?true:false);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetVisible(visible ? true : false);
}
int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) {
@@ -747,8 +740,8 @@ int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsVisible();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsVisible();
// Return type: bool
return _retval;
@@ -762,8 +755,8 @@ int CEF_CALLBACK panel_is_drawn(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsDrawn();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsDrawn();
// Return type: bool
return _retval;
@@ -777,8 +770,8 @@ void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, int enabled) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetEnabled(
enabled?true:false);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetEnabled(enabled ? true : false);
}
int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) {
@@ -789,8 +782,8 @@ int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsEnabled();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsEnabled();
// Return type: bool
return _retval;
@@ -804,8 +797,8 @@ void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, int focusable) {
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetFocusable(
focusable?true:false);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetFocusable(focusable ? true : false);
}
int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) {
@@ -816,8 +809,8 @@ int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsFocusable();
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsFocusable();
// Return type: bool
return _retval;
@@ -831,8 +824,8 @@ int CEF_CALLBACK panel_is_accessibility_focusable(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->IsAccessibilityFocusable();
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->IsAccessibilityFocusable();
// Return type: bool
return _retval;
@@ -850,7 +843,7 @@ void CEF_CALLBACK panel_request_focus(struct _cef_view_t* self) {
}
void CEF_CALLBACK panel_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);
@@ -858,8 +851,8 @@ void CEF_CALLBACK panel_set_background_color(struct _cef_view_t* self,
return;
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetBackgroundColor(
color);
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetBackgroundColor(color);
}
cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) {
@@ -870,15 +863,16 @@ cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) {
return 0;
// Execute
cef_color_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->GetBackgroundColor();
cef_color_t _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->GetBackgroundColor();
// Return type: simple
return _retval;
}
int CEF_CALLBACK panel_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);
@@ -890,12 +884,11 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointToScreen(
pointVal);
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -906,7 +899,7 @@ int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK panel_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);
@@ -918,12 +911,11 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointFromScreen(
pointVal);
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -934,7 +926,7 @@ int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK panel_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);
@@ -946,12 +938,11 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointToWindow(
pointVal);
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -962,7 +953,7 @@ int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self,
}
int CEF_CALLBACK panel_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);
@@ -974,12 +965,11 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointFromWindow(
pointVal);
bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -990,7 +980,8 @@ int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self,
}
int CEF_CALLBACK panel_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);
@@ -1006,13 +997,12 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointToView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -1023,7 +1013,8 @@ int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self,
}
int CEF_CALLBACK panel_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);
@@ -1039,13 +1030,12 @@ int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(
self))->ConvertPointFromView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -1057,7 +1047,6 @@ int CEF_CALLBACK panel_convert_point_from_view(struct _cef_view_t* self,
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefPanelCppToC::CefPanelCppToC() {
@@ -1124,8 +1113,11 @@ CefPanelCppToC::CefPanelCppToC() {
GetStruct()->base.convert_point_from_view = panel_convert_point_from_view;
}
template<> CefRefPtr<CefPanel> CefCppToCRefCounted<CefPanelCppToC, CefPanel,
cef_panel_t>::UnwrapDerived(CefWrapperType type, cef_panel_t* s) {
template <>
CefRefPtr<CefPanel>
CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::UnwrapDerived(
CefWrapperType type,
cef_panel_t* s) {
if (type == WT_WINDOW) {
return CefWindowCppToC::Unwrap(reinterpret_cast<cef_window_t*>(s));
}
@@ -1134,9 +1126,12 @@ template<> CefRefPtr<CefPanel> CefCppToCRefCounted<CefPanelCppToC, CefPanel,
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefPanelCppToC, CefPanel,
cef_panel_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefPanelCppToC, CefPanel,
cef_panel_t>::kWrapperType = WT_PANEL;
template <>
CefWrapperType
CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::kWrapperType =
WT_PANEL;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c6eb4bd13fab27f265a692432a8f17de2b9ac471$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_CPPTOC_H_
@@ -18,16 +20,16 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_panel.h"
#include "include/capi/views/cef_panel_capi.h"
#include "include/views/cef_box_layout.h"
#include "include/capi/views/cef_box_layout_capi.h"
#include "include/views/cef_fill_layout.h"
#include "include/capi/views/cef_fill_layout_capi.h"
#include "include/views/cef_layout.h"
#include "include/capi/views/cef_layout_capi.h"
#include "include/views/cef_window.h"
#include "include/capi/views/cef_panel_capi.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_box_layout.h"
#include "include/views/cef_fill_layout.h"
#include "include/views/cef_layout.h"
#include "include/views/cef_panel.h"
#include "include/views/cef_window.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

View File

@@ -9,18 +9,20 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c918146a8bbbc5f3e93e6471f9dbab9ca74785a9$
//
#include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h"
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_size_t CEF_CALLBACK panel_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
panel_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -32,16 +34,17 @@ cef_size_t CEF_CALLBACK panel_delegate_get_preferred_size(
return CefSize();
// Execute
cef_size_t _retval = CefPanelDelegateCppToC::Get(
reinterpret_cast<cef_panel_delegate_t*>(self))->GetPreferredSize(
CefViewCToCpp::Wrap(view));
cef_size_t _retval =
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->GetPreferredSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK panel_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
panel_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -53,16 +56,17 @@ cef_size_t CEF_CALLBACK panel_delegate_get_minimum_size(
return CefSize();
// Execute
cef_size_t _retval = CefPanelDelegateCppToC::Get(
reinterpret_cast<cef_panel_delegate_t*>(self))->GetMinimumSize(
CefViewCToCpp::Wrap(view));
cef_size_t _retval =
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->GetMinimumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK panel_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
panel_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -74,16 +78,18 @@ cef_size_t CEF_CALLBACK panel_delegate_get_maximum_size(
return CefSize();
// Execute
cef_size_t _retval = CefPanelDelegateCppToC::Get(
reinterpret_cast<cef_panel_delegate_t*>(self))->GetMaximumSize(
CefViewCToCpp::Wrap(view));
cef_size_t _retval =
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->GetMaximumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
int CEF_CALLBACK panel_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
panel_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);
@@ -95,18 +101,19 @@ int CEF_CALLBACK panel_delegate_get_height_for_width(
return 0;
// Execute
int _retval = CefPanelDelegateCppToC::Get(
reinterpret_cast<cef_panel_delegate_t*>(self))->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
int _retval =
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK panel_delegate_on_parent_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* parent) {
void CEF_CALLBACK
panel_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);
@@ -122,16 +129,16 @@ void CEF_CALLBACK panel_delegate_on_parent_view_changed(
return;
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(
self))->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(parent));
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK panel_delegate_on_child_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* child) {
void CEF_CALLBACK
panel_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);
@@ -147,15 +154,13 @@ void CEF_CALLBACK panel_delegate_on_child_view_changed(
return;
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(
self))->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(child));
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK panel_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);
@@ -167,13 +172,12 @@ void CEF_CALLBACK panel_delegate_on_focus(struct _cef_view_delegate_t* self,
return;
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(
self))->OnFocus(
CefViewCToCpp::Wrap(view));
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK panel_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);
@@ -185,14 +189,12 @@ void CEF_CALLBACK panel_delegate_on_blur(struct _cef_view_delegate_t* self,
return;
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(
self))->OnBlur(
CefViewCToCpp::Wrap(view));
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefPanelDelegateCppToC::CefPanelDelegateCppToC() {
@@ -208,9 +210,12 @@ CefPanelDelegateCppToC::CefPanelDelegateCppToC() {
GetStruct()->base.on_blur = panel_delegate_on_blur;
}
template<> CefRefPtr<CefPanelDelegate> CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate, cef_panel_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_panel_delegate_t* s) {
template <>
CefRefPtr<CefPanelDelegate> CefCppToCRefCounted<
CefPanelDelegateCppToC,
CefPanelDelegate,
cef_panel_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_panel_delegate_t* s) {
if (type == WT_WINDOW_DELEGATE) {
return CefWindowDelegateCppToC::Unwrap(
reinterpret_cast<cef_window_delegate_t*>(s));
@@ -220,9 +225,14 @@ template<> CefRefPtr<CefPanelDelegate> CefCppToCRefCounted<CefPanelDelegateCppTo
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate, cef_panel_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate,
cef_panel_delegate_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate, cef_panel_delegate_t>::kWrapperType = WT_PANEL_DELEGATE;
template <>
CefWrapperType CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate,
cef_panel_delegate_t>::kWrapperType =
WT_PANEL_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9d5bf927058637f4aca443730b31acadff656c09$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_DELEGATE_CPPTOC_H_
@@ -18,15 +20,16 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_panel_delegate.h"
#include "include/capi/views/cef_panel_delegate_capi.h"
#include "include/views/cef_panel_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefPanelDelegateCppToC
: public CefCppToCRefCounted<CefPanelDelegateCppToC, CefPanelDelegate,
cef_panel_delegate_t> {
: public CefCppToCRefCounted<CefPanelDelegateCppToC,
CefPanelDelegate,
cef_panel_delegate_t> {
public:
CefPanelDelegateCppToC();
};

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=2babe5bd3069d25994beb6d122d59b0038c5a2bb$
//
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
@@ -19,7 +21,6 @@
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_scroll_view_t* cef_scroll_view_create(
@@ -29,20 +30,19 @@ CEF_EXPORT cef_scroll_view_t* cef_scroll_view_create(
// Unverified params: delegate
// Execute
CefRefPtr<CefScrollView> _retval = CefScrollView::CreateScrollView(
CefViewDelegateCToCpp::Wrap(delegate));
CefRefPtr<CefScrollView> _retval =
CefScrollView::CreateScrollView(CefViewDelegateCToCpp::Wrap(delegate));
// Return type: refptr_same
return CefScrollViewCppToC::Wrap(_retval);
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self,
struct _cef_view_t* view) {
struct _cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -54,12 +54,11 @@ void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(self)->SetContentView(
CefViewCppToC::Unwrap(view));
CefScrollViewCppToC::Get(self)->SetContentView(CefViewCppToC::Unwrap(view));
}
struct _cef_view_t* CEF_CALLBACK scroll_view_get_content_view(
struct _cef_scroll_view_t* self) {
struct _cef_view_t* CEF_CALLBACK
scroll_view_get_content_view(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -73,8 +72,8 @@ struct _cef_view_t* CEF_CALLBACK scroll_view_get_content_view(
return CefViewCppToC::Wrap(_retval);
}
cef_rect_t CEF_CALLBACK scroll_view_get_visible_content_rect(
struct _cef_scroll_view_t* self) {
cef_rect_t CEF_CALLBACK
scroll_view_get_visible_content_rect(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -88,8 +87,8 @@ cef_rect_t CEF_CALLBACK scroll_view_get_visible_content_rect(
return _retval;
}
int CEF_CALLBACK scroll_view_has_horizontal_scrollbar(
struct _cef_scroll_view_t* self) {
int CEF_CALLBACK
scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -103,8 +102,8 @@ int CEF_CALLBACK scroll_view_has_horizontal_scrollbar(
return _retval;
}
int CEF_CALLBACK scroll_view_get_horizontal_scrollbar_height(
struct _cef_scroll_view_t* self) {
int CEF_CALLBACK
scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -118,8 +117,8 @@ int CEF_CALLBACK scroll_view_get_horizontal_scrollbar_height(
return _retval;
}
int CEF_CALLBACK scroll_view_has_vertical_scrollbar(
struct _cef_scroll_view_t* self) {
int CEF_CALLBACK
scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -133,8 +132,8 @@ int CEF_CALLBACK scroll_view_has_vertical_scrollbar(
return _retval;
}
int CEF_CALLBACK scroll_view_get_vertical_scrollbar_width(
struct _cef_scroll_view_t* self) {
int CEF_CALLBACK
scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -148,8 +147,8 @@ int CEF_CALLBACK scroll_view_get_vertical_scrollbar_width(
return _retval;
}
cef_browser_view_t* CEF_CALLBACK scroll_view_as_browser_view(
struct _cef_view_t* self) {
cef_browser_view_t* CEF_CALLBACK
scroll_view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -157,8 +156,9 @@ cef_browser_view_t* CEF_CALLBACK scroll_view_as_browser_view(
return NULL;
// Execute
CefRefPtr<CefBrowserView> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->AsBrowserView();
CefRefPtr<CefBrowserView> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->AsBrowserView();
// Return type: refptr_same
return CefBrowserViewCppToC::Wrap(_retval);
@@ -172,8 +172,9 @@ cef_button_t* CEF_CALLBACK scroll_view_as_button(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefButton> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->AsButton();
CefRefPtr<CefButton> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->AsButton();
// Return type: refptr_same
return CefButtonCppToC::Wrap(_retval);
@@ -187,15 +188,16 @@ cef_panel_t* CEF_CALLBACK scroll_view_as_panel(struct _cef_view_t* self) {
return NULL;
// Execute
CefRefPtr<CefPanel> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->AsPanel();
CefRefPtr<CefPanel> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->AsPanel();
// Return type: refptr_same
return CefPanelCppToC::Wrap(_retval);
}
cef_scroll_view_t* CEF_CALLBACK scroll_view_as_scroll_view(
struct _cef_view_t* self) {
cef_scroll_view_t* CEF_CALLBACK
scroll_view_as_scroll_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -203,15 +205,16 @@ cef_scroll_view_t* CEF_CALLBACK scroll_view_as_scroll_view(
return NULL;
// Execute
CefRefPtr<CefScrollView> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->AsScrollView();
CefRefPtr<CefScrollView> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->AsScrollView();
// Return type: refptr_same
return CefScrollViewCppToC::Wrap(_retval);
}
cef_textfield_t* CEF_CALLBACK scroll_view_as_textfield(
struct _cef_view_t* self) {
cef_textfield_t* CEF_CALLBACK
scroll_view_as_textfield(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -219,15 +222,16 @@ cef_textfield_t* CEF_CALLBACK scroll_view_as_textfield(
return NULL;
// Execute
CefRefPtr<CefTextfield> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->AsTextfield();
CefRefPtr<CefTextfield> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->AsTextfield();
// Return type: refptr_same
return CefTextfieldCppToC::Wrap(_retval);
}
cef_string_userfree_t CEF_CALLBACK scroll_view_get_type_string(
struct _cef_view_t* self) {
cef_string_userfree_t CEF_CALLBACK
scroll_view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -235,15 +239,16 @@ cef_string_userfree_t CEF_CALLBACK scroll_view_get_type_string(
return NULL;
// Execute
CefString _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetTypeString();
CefString _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetTypeString();
// Return type: string
return _retval.DetachToUserFree();
}
cef_string_userfree_t CEF_CALLBACK scroll_view_to_string(
struct _cef_view_t* self, int include_children) {
cef_string_userfree_t CEF_CALLBACK
scroll_view_to_string(struct _cef_view_t* self, int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -251,9 +256,9 @@ cef_string_userfree_t CEF_CALLBACK scroll_view_to_string(
return NULL;
// Execute
CefString _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->ToString(
include_children?true:false);
CefString _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ToString(include_children ? true : false);
// Return type: string
return _retval.DetachToUserFree();
@@ -267,8 +272,9 @@ int CEF_CALLBACK scroll_view_is_valid(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsValid();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsValid();
// Return type: bool
return _retval;
@@ -282,15 +288,16 @@ int CEF_CALLBACK scroll_view_is_attached(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsAttached();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsAttached();
// Return type: bool
return _retval;
}
int CEF_CALLBACK scroll_view_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);
@@ -302,16 +309,16 @@ int CEF_CALLBACK scroll_view_is_same(struct _cef_view_t* self,
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsSame(
CefViewCppToC::Unwrap(that));
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsSame(CefViewCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_view_delegate_t* CEF_CALLBACK scroll_view_get_delegate(
struct _cef_view_t* self) {
struct _cef_view_delegate_t* CEF_CALLBACK
scroll_view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -319,15 +326,16 @@ struct _cef_view_delegate_t* CEF_CALLBACK scroll_view_get_delegate(
return NULL;
// Execute
CefRefPtr<CefViewDelegate> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetDelegate();
CefRefPtr<CefViewDelegate> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetDelegate();
// Return type: refptr_diff
return CefViewDelegateCToCpp::Unwrap(_retval);
}
struct _cef_window_t* CEF_CALLBACK scroll_view_get_window(
struct _cef_view_t* self) {
struct _cef_window_t* CEF_CALLBACK
scroll_view_get_window(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -335,8 +343,9 @@ struct _cef_window_t* CEF_CALLBACK scroll_view_get_window(
return NULL;
// Execute
CefRefPtr<CefWindow> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetWindow();
CefRefPtr<CefWindow> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetWindow();
// Return type: refptr_same
return CefWindowCppToC::Wrap(_retval);
@@ -350,8 +359,9 @@ int CEF_CALLBACK scroll_view_get_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->GetID();
int _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetID();
// Return type: simple
return _retval;
@@ -365,8 +375,8 @@ void CEF_CALLBACK scroll_view_set_id(struct _cef_view_t* self, int id) {
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))->SetID(
id);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetID(id);
}
int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) {
@@ -377,15 +387,16 @@ int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) {
return 0;
// Execute
int _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->GetGroupID();
int _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetGroupID();
// Return type: simple
return _retval;
}
void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self,
int group_id) {
int group_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -393,13 +404,12 @@ void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetGroupID(
group_id);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetGroupID(group_id);
}
struct _cef_view_t* CEF_CALLBACK scroll_view_get_parent_view(
struct _cef_view_t* self) {
struct _cef_view_t* CEF_CALLBACK
scroll_view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -407,15 +417,16 @@ struct _cef_view_t* CEF_CALLBACK scroll_view_get_parent_view(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetParentView();
CefRefPtr<CefView> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetParentView();
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
struct _cef_view_t* CEF_CALLBACK scroll_view_get_view_for_id(
struct _cef_view_t* self, int id) {
struct _cef_view_t* CEF_CALLBACK
scroll_view_get_view_for_id(struct _cef_view_t* self, int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -423,16 +434,16 @@ struct _cef_view_t* CEF_CALLBACK scroll_view_get_view_for_id(
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetViewForID(
id);
CefRefPtr<CefView> _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetViewForID(id);
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
void CEF_CALLBACK scroll_view_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);
@@ -444,12 +455,11 @@ void CEF_CALLBACK scroll_view_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
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetBounds(
boundsVal);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetBounds(boundsVal);
}
cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) {
@@ -460,15 +470,16 @@ cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) {
return CefRect();
// Execute
cef_rect_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetBounds();
cef_rect_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetBounds();
// Return type: simple
return _retval;
}
cef_rect_t CEF_CALLBACK scroll_view_get_bounds_in_screen(
struct _cef_view_t* self) {
cef_rect_t CEF_CALLBACK
scroll_view_get_bounds_in_screen(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -476,15 +487,16 @@ cef_rect_t CEF_CALLBACK scroll_view_get_bounds_in_screen(
return CefRect();
// Execute
cef_rect_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetBoundsInScreen();
cef_rect_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetBoundsInScreen();
// Return type: simple
return _retval;
}
void CEF_CALLBACK scroll_view_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);
@@ -496,11 +508,11 @@ void CEF_CALLBACK scroll_view_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
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))->SetSize(
sizeVal);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetSize(sizeVal);
}
cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) {
@@ -511,15 +523,16 @@ cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetSize();
cef_size_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetSize();
// Return type: simple
return _retval;
}
void CEF_CALLBACK scroll_view_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);
@@ -531,12 +544,11 @@ void CEF_CALLBACK scroll_view_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
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetPosition(
positionVal);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetPosition(positionVal);
}
cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) {
@@ -547,15 +559,16 @@ cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) {
return CefPoint();
// Execute
cef_point_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetPosition();
cef_point_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetPosition();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK scroll_view_get_preferred_size(
struct _cef_view_t* self) {
cef_size_t CEF_CALLBACK
scroll_view_get_preferred_size(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -563,8 +576,9 @@ cef_size_t CEF_CALLBACK scroll_view_get_preferred_size(
return CefSize();
// Execute
cef_size_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetPreferredSize();
cef_size_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetPreferredSize();
// Return type: simple
return _retval;
@@ -578,8 +592,8 @@ void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) {
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SizeToPreferredSize();
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SizeToPreferredSize();
}
cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) {
@@ -590,8 +604,9 @@ cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetMinimumSize();
cef_size_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetMinimumSize();
// Return type: simple
return _retval;
@@ -605,15 +620,16 @@ cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) {
return CefSize();
// Execute
cef_size_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetMaximumSize();
cef_size_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetMaximumSize();
// Return type: simple
return _retval;
}
int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self,
int width) {
int width) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -621,9 +637,9 @@ int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self,
return 0;
// Execute
int _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->GetHeightForWidth(
width);
int _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetHeightForWidth(width);
// Return type: simple
return _retval;
@@ -637,12 +653,12 @@ void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) {
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->InvalidateLayout();
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->InvalidateLayout();
}
void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
int visible) {
int visible) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -650,9 +666,8 @@ void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetVisible(
visible?true:false);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetVisible(visible ? true : false);
}
int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) {
@@ -663,8 +678,9 @@ int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsVisible();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsVisible();
// Return type: bool
return _retval;
@@ -678,15 +694,16 @@ int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsDrawn();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsDrawn();
// Return type: bool
return _retval;
}
void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
int enabled) {
int enabled) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -694,9 +711,8 @@ void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetEnabled(
enabled?true:false);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetEnabled(enabled ? true : false);
}
int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) {
@@ -707,15 +723,16 @@ int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsEnabled();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsEnabled();
// Return type: bool
return _retval;
}
void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
int focusable) {
int focusable) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -723,9 +740,8 @@ void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetFocusable(
focusable?true:false);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetFocusable(focusable ? true : false);
}
int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) {
@@ -736,15 +752,16 @@ int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) {
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsFocusable();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsFocusable();
// Return type: bool
return _retval;
}
int CEF_CALLBACK scroll_view_is_accessibility_focusable(
struct _cef_view_t* self) {
int CEF_CALLBACK
scroll_view_is_accessibility_focusable(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -752,8 +769,9 @@ int CEF_CALLBACK scroll_view_is_accessibility_focusable(
return 0;
// Execute
bool _retval = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->IsAccessibilityFocusable();
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->IsAccessibilityFocusable();
// Return type: bool
return _retval;
@@ -767,12 +785,12 @@ void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) {
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->RequestFocus();
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->RequestFocus();
}
void CEF_CALLBACK scroll_view_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);
@@ -780,13 +798,12 @@ void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self,
return;
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->SetBackgroundColor(
color);
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetBackgroundColor(color);
}
cef_color_t CEF_CALLBACK scroll_view_get_background_color(
struct _cef_view_t* self) {
cef_color_t CEF_CALLBACK
scroll_view_get_background_color(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -794,15 +811,16 @@ cef_color_t CEF_CALLBACK scroll_view_get_background_color(
return 0;
// Execute
cef_color_t _retval = CefScrollViewCppToC::Get(
reinterpret_cast<cef_scroll_view_t*>(self))->GetBackgroundColor();
cef_color_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetBackgroundColor();
// Return type: simple
return _retval;
}
int CEF_CALLBACK scroll_view_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);
@@ -814,12 +832,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointToScreen(
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -830,7 +848,7 @@ int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK scroll_view_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);
@@ -842,12 +860,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointFromScreen(
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -858,7 +876,7 @@ int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK scroll_view_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);
@@ -870,12 +888,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointToWindow(
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -886,7 +904,7 @@ int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self,
}
int CEF_CALLBACK scroll_view_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);
@@ -898,12 +916,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointFromWindow(
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -914,7 +932,8 @@ int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self,
}
int CEF_CALLBACK scroll_view_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);
@@ -930,13 +949,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointToView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -947,7 +965,8 @@ int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self,
}
int CEF_CALLBACK scroll_view_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);
@@ -963,13 +982,12 @@ int CEF_CALLBACK scroll_view_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 = CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(
self))->ConvertPointFromView(
CefViewCppToC::Unwrap(view),
pointVal);
bool _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -981,7 +999,6 @@ int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self,
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefScrollViewCppToC::CefScrollViewCppToC() {
@@ -1050,17 +1067,23 @@ CefScrollViewCppToC::CefScrollViewCppToC() {
scroll_view_convert_point_from_view;
}
template<> CefRefPtr<CefScrollView> CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView, cef_scroll_view_t>::UnwrapDerived(CefWrapperType type,
cef_scroll_view_t* s) {
template <>
CefRefPtr<CefScrollView>
CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView, cef_scroll_view_t>::
UnwrapDerived(CefWrapperType type, cef_scroll_view_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView, cef_scroll_view_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView,
cef_scroll_view_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView, cef_scroll_view_t>::kWrapperType = WT_SCROLL_VIEW;
template <>
CefWrapperType CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView,
cef_scroll_view_t>::kWrapperType =
WT_SCROLL_VIEW;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f5dc83615127caab80e5406ef6b38b042b2e4ae8$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_SCROLL_VIEW_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_SCROLL_VIEW_CPPTOC_H_
@@ -18,15 +20,15 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_scroll_view.h"
#include "include/capi/views/cef_scroll_view_capi.h"
#include "include/views/cef_scroll_view.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefScrollViewCppToC
: public CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView,
cef_scroll_view_t> {
class CefScrollViewCppToC : public CefCppToCRefCounted<CefScrollViewCppToC,
CefScrollView,
cef_scroll_view_t> {
public:
CefScrollViewCppToC();
};

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=0f231714ec7d08370d93b5b88d08cdcd7ef929f6$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_CPPTOC_H_
@@ -18,15 +20,15 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_textfield.h"
#include "include/capi/views/cef_textfield_capi.h"
#include "include/views/cef_textfield.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefTextfieldCppToC
: public CefCppToCRefCounted<CefTextfieldCppToC, CefTextfield,
cef_textfield_t> {
class CefTextfieldCppToC : public CefCppToCRefCounted<CefTextfieldCppToC,
CefTextfield,
cef_textfield_t> {
public:
CefTextfieldCppToC();
};

View File

@@ -9,19 +9,21 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c4a791057449122f888535d07ccd6ac32757de8b$
//
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK textfield_delegate_on_key_event(
struct _cef_textfield_delegate_t* self, cef_textfield_t* textfield,
const struct _cef_key_event_t* event) {
int CEF_CALLBACK
textfield_delegate_on_key_event(struct _cef_textfield_delegate_t* self,
cef_textfield_t* textfield,
const struct _cef_key_event_t* event) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -43,15 +45,15 @@ int CEF_CALLBACK textfield_delegate_on_key_event(
// Execute
bool _retval = CefTextfieldDelegateCppToC::Get(self)->OnKeyEvent(
CefTextfieldCToCpp::Wrap(textfield),
eventObj);
CefTextfieldCToCpp::Wrap(textfield), eventObj);
// Return type: bool
return _retval;
}
void CEF_CALLBACK textfield_delegate_on_after_user_action(
struct _cef_textfield_delegate_t* self, cef_textfield_t* textfield) {
void CEF_CALLBACK
textfield_delegate_on_after_user_action(struct _cef_textfield_delegate_t* self,
cef_textfield_t* textfield) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -67,8 +69,9 @@ void CEF_CALLBACK textfield_delegate_on_after_user_action(
CefTextfieldCToCpp::Wrap(textfield));
}
cef_size_t CEF_CALLBACK textfield_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
textfield_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -81,15 +84,16 @@ cef_size_t CEF_CALLBACK textfield_delegate_get_preferred_size(
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))->GetPreferredSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_textfield_delegate_t*>(self))
->GetPreferredSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK textfield_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
textfield_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -102,15 +106,16 @@ cef_size_t CEF_CALLBACK textfield_delegate_get_minimum_size(
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))->GetMinimumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_textfield_delegate_t*>(self))
->GetMinimumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK textfield_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
textfield_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -123,15 +128,17 @@ cef_size_t CEF_CALLBACK textfield_delegate_get_maximum_size(
// Execute
cef_size_t _retval = CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))->GetMaximumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_textfield_delegate_t*>(self))
->GetMaximumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
int CEF_CALLBACK textfield_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
textfield_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);
@@ -144,17 +151,18 @@ int CEF_CALLBACK textfield_delegate_get_height_for_width(
// Execute
int _retval = CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
reinterpret_cast<cef_textfield_delegate_t*>(self))
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK textfield_delegate_on_parent_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* parent) {
void CEF_CALLBACK
textfield_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);
@@ -170,16 +178,17 @@ void CEF_CALLBACK textfield_delegate_on_parent_view_changed(
return;
// Execute
CefTextfieldDelegateCppToC::Get(reinterpret_cast<cef_textfield_delegate_t*>(
self))->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(parent));
CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK textfield_delegate_on_child_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* child) {
void CEF_CALLBACK
textfield_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);
@@ -195,15 +204,14 @@ void CEF_CALLBACK textfield_delegate_on_child_view_changed(
return;
// Execute
CefTextfieldDelegateCppToC::Get(reinterpret_cast<cef_textfield_delegate_t*>(
self))->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(child));
CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK textfield_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);
@@ -215,13 +223,13 @@ void CEF_CALLBACK textfield_delegate_on_focus(struct _cef_view_delegate_t* self,
return;
// Execute
CefTextfieldDelegateCppToC::Get(reinterpret_cast<cef_textfield_delegate_t*>(
self))->OnFocus(
CefViewCToCpp::Wrap(view));
CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))
->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK textfield_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);
@@ -233,14 +241,13 @@ void CEF_CALLBACK textfield_delegate_on_blur(struct _cef_view_delegate_t* self,
return;
// Execute
CefTextfieldDelegateCppToC::Get(reinterpret_cast<cef_textfield_delegate_t*>(
self))->OnBlur(
CefViewCToCpp::Wrap(view));
CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))
->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefTextfieldDelegateCppToC::CefTextfieldDelegateCppToC() {
@@ -259,18 +266,26 @@ CefTextfieldDelegateCppToC::CefTextfieldDelegateCppToC() {
GetStruct()->base.on_blur = textfield_delegate_on_blur;
}
template<> CefRefPtr<CefTextfieldDelegate> CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate, cef_textfield_delegate_t>::UnwrapDerived(
CefWrapperType type, cef_textfield_delegate_t* s) {
template <>
CefRefPtr<CefTextfieldDelegate> CefCppToCRefCounted<
CefTextfieldDelegateCppToC,
CefTextfieldDelegate,
cef_textfield_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_textfield_delegate_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate, cef_textfield_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate,
cef_textfield_delegate_t>::DebugObjCt =
0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate, cef_textfield_delegate_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate,
cef_textfield_delegate_t>::kWrapperType =
WT_TEXTFIELD_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=aa068445cd816a13b8f6dcc92814f1e4a784ec6a$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_DELEGATE_CPPTOC_H_
@@ -18,17 +20,18 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_textfield_delegate.h"
#include "include/capi/views/cef_textfield_capi.h"
#include "include/capi/views/cef_textfield_delegate_capi.h"
#include "include/views/cef_textfield.h"
#include "include/capi/views/cef_textfield_capi.h"
#include "include/views/cef_textfield_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefTextfieldDelegateCppToC
: public CefCppToCRefCounted<CefTextfieldDelegateCppToC,
CefTextfieldDelegate, cef_textfield_delegate_t> {
CefTextfieldDelegate,
cef_textfield_delegate_t> {
public:
CefTextfieldDelegateCppToC();
};

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=84ab086050d93dfdca7f82f454f833a7e73ab7e0$
//
#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_browser_view_t* CEF_CALLBACK view_as_browser_view(
struct _cef_view_t* self) {
cef_browser_view_t* CEF_CALLBACK
view_as_browser_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -97,8 +98,8 @@ cef_textfield_t* CEF_CALLBACK view_as_textfield(struct _cef_view_t* self) {
return CefTextfieldCppToC::Wrap(_retval);
}
cef_string_userfree_t CEF_CALLBACK view_get_type_string(
struct _cef_view_t* self) {
cef_string_userfree_t CEF_CALLBACK
view_get_type_string(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -113,7 +114,7 @@ cef_string_userfree_t CEF_CALLBACK view_get_type_string(
}
cef_string_userfree_t CEF_CALLBACK view_to_string(struct _cef_view_t* self,
int include_children) {
int include_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -121,8 +122,8 @@ cef_string_userfree_t CEF_CALLBACK view_to_string(struct _cef_view_t* self,
return NULL;
// Execute
CefString _retval = CefViewCppToC::Get(self)->ToString(
include_children?true:false);
CefString _retval =
CefViewCppToC::Get(self)->ToString(include_children ? true : false);
// Return type: string
return _retval.DetachToUserFree();
@@ -157,7 +158,7 @@ int CEF_CALLBACK view_is_attached(struct _cef_view_t* self) {
}
int CEF_CALLBACK view_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);
@@ -169,15 +170,14 @@ int CEF_CALLBACK view_is_same(struct _cef_view_t* self,
return 0;
// Execute
bool _retval = CefViewCppToC::Get(self)->IsSame(
CefViewCppToC::Unwrap(that));
bool _retval = CefViewCppToC::Get(self)->IsSame(CefViewCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_view_delegate_t* CEF_CALLBACK view_get_delegate(
struct _cef_view_t* self) {
struct _cef_view_delegate_t* CEF_CALLBACK
view_get_delegate(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -227,8 +227,7 @@ void CEF_CALLBACK view_set_id(struct _cef_view_t* self, int id) {
return;
// Execute
CefViewCppToC::Get(self)->SetID(
id);
CefViewCppToC::Get(self)->SetID(id);
}
int CEF_CALLBACK view_get_group_id(struct _cef_view_t* self) {
@@ -253,12 +252,11 @@ void CEF_CALLBACK view_set_group_id(struct _cef_view_t* self, int group_id) {
return;
// Execute
CefViewCppToC::Get(self)->SetGroupID(
group_id);
CefViewCppToC::Get(self)->SetGroupID(group_id);
}
struct _cef_view_t* CEF_CALLBACK view_get_parent_view(
struct _cef_view_t* self) {
struct _cef_view_t* CEF_CALLBACK
view_get_parent_view(struct _cef_view_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -273,7 +271,7 @@ struct _cef_view_t* CEF_CALLBACK view_get_parent_view(
}
struct _cef_view_t* CEF_CALLBACK view_get_view_for_id(struct _cef_view_t* self,
int id) {
int id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -281,15 +279,14 @@ struct _cef_view_t* CEF_CALLBACK view_get_view_for_id(struct _cef_view_t* self,
return NULL;
// Execute
CefRefPtr<CefView> _retval = CefViewCppToC::Get(self)->GetViewForID(
id);
CefRefPtr<CefView> _retval = CefViewCppToC::Get(self)->GetViewForID(id);
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
void CEF_CALLBACK view_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);
@@ -301,11 +298,10 @@ void CEF_CALLBACK view_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
CefViewCppToC::Get(self)->SetBounds(
boundsVal);
CefViewCppToC::Get(self)->SetBounds(boundsVal);
}
cef_rect_t CEF_CALLBACK view_get_bounds(struct _cef_view_t* self) {
@@ -337,7 +333,7 @@ cef_rect_t CEF_CALLBACK view_get_bounds_in_screen(struct _cef_view_t* self) {
}
void CEF_CALLBACK view_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);
@@ -349,11 +345,10 @@ void CEF_CALLBACK view_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
CefViewCppToC::Get(self)->SetSize(
sizeVal);
CefViewCppToC::Get(self)->SetSize(sizeVal);
}
cef_size_t CEF_CALLBACK view_get_size(struct _cef_view_t* self) {
@@ -371,7 +366,7 @@ cef_size_t CEF_CALLBACK view_get_size(struct _cef_view_t* self) {
}
void CEF_CALLBACK view_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);
@@ -383,11 +378,10 @@ void CEF_CALLBACK view_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
CefViewCppToC::Get(self)->SetPosition(
positionVal);
CefViewCppToC::Get(self)->SetPosition(positionVal);
}
cef_point_t CEF_CALLBACK view_get_position(struct _cef_view_t* self) {
@@ -458,7 +452,7 @@ cef_size_t CEF_CALLBACK view_get_maximum_size(struct _cef_view_t* self) {
}
int CEF_CALLBACK view_get_height_for_width(struct _cef_view_t* self,
int width) {
int width) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -466,8 +460,7 @@ int CEF_CALLBACK view_get_height_for_width(struct _cef_view_t* self,
return 0;
// Execute
int _retval = CefViewCppToC::Get(self)->GetHeightForWidth(
width);
int _retval = CefViewCppToC::Get(self)->GetHeightForWidth(width);
// Return type: simple
return _retval;
@@ -492,8 +485,7 @@ void CEF_CALLBACK view_set_visible(struct _cef_view_t* self, int visible) {
return;
// Execute
CefViewCppToC::Get(self)->SetVisible(
visible?true:false);
CefViewCppToC::Get(self)->SetVisible(visible ? true : false);
}
int CEF_CALLBACK view_is_visible(struct _cef_view_t* self) {
@@ -532,8 +524,7 @@ void CEF_CALLBACK view_set_enabled(struct _cef_view_t* self, int enabled) {
return;
// Execute
CefViewCppToC::Get(self)->SetEnabled(
enabled?true:false);
CefViewCppToC::Get(self)->SetEnabled(enabled ? true : false);
}
int CEF_CALLBACK view_is_enabled(struct _cef_view_t* self) {
@@ -558,8 +549,7 @@ void CEF_CALLBACK view_set_focusable(struct _cef_view_t* self, int focusable) {
return;
// Execute
CefViewCppToC::Get(self)->SetFocusable(
focusable?true:false);
CefViewCppToC::Get(self)->SetFocusable(focusable ? true : false);
}
int CEF_CALLBACK view_is_focusable(struct _cef_view_t* self) {
@@ -602,7 +592,7 @@ void CEF_CALLBACK view_request_focus(struct _cef_view_t* self) {
}
void CEF_CALLBACK view_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);
@@ -610,8 +600,7 @@ void CEF_CALLBACK view_set_background_color(struct _cef_view_t* self,
return;
// Execute
CefViewCppToC::Get(self)->SetBackgroundColor(
color);
CefViewCppToC::Get(self)->SetBackgroundColor(color);
}
cef_color_t CEF_CALLBACK view_get_background_color(struct _cef_view_t* self) {
@@ -629,7 +618,7 @@ cef_color_t CEF_CALLBACK view_get_background_color(struct _cef_view_t* self) {
}
int CEF_CALLBACK view_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);
@@ -641,11 +630,10 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointToScreen(
pointVal);
bool _retval = CefViewCppToC::Get(self)->ConvertPointToScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -656,7 +644,7 @@ int CEF_CALLBACK view_convert_point_to_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK view_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);
@@ -668,11 +656,10 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointFromScreen(
pointVal);
bool _retval = CefViewCppToC::Get(self)->ConvertPointFromScreen(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -683,7 +670,7 @@ int CEF_CALLBACK view_convert_point_from_screen(struct _cef_view_t* self,
}
int CEF_CALLBACK view_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);
@@ -695,11 +682,10 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointToWindow(
pointVal);
bool _retval = CefViewCppToC::Get(self)->ConvertPointToWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -710,7 +696,7 @@ int CEF_CALLBACK view_convert_point_to_window(struct _cef_view_t* self,
}
int CEF_CALLBACK view_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);
@@ -722,11 +708,10 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointFromWindow(
pointVal);
bool _retval = CefViewCppToC::Get(self)->ConvertPointFromWindow(pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -737,7 +722,8 @@ int CEF_CALLBACK view_convert_point_from_window(struct _cef_view_t* self,
}
int CEF_CALLBACK view_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);
@@ -753,12 +739,11 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointToView(
CefViewCppToC::Unwrap(view),
pointVal);
CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -769,7 +754,8 @@ int CEF_CALLBACK view_convert_point_to_view(struct _cef_view_t* self,
}
int CEF_CALLBACK view_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);
@@ -785,12 +771,11 @@ int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->ConvertPointFromView(
CefViewCppToC::Unwrap(view),
pointVal);
CefViewCppToC::Unwrap(view), pointVal);
// Restore param: point; type: simple_byref
if (point)
@@ -802,7 +787,6 @@ int CEF_CALLBACK view_convert_point_from_view(struct _cef_view_t* self,
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefViewCppToC::CefViewCppToC() {
@@ -856,18 +840,21 @@ CefViewCppToC::CefViewCppToC() {
GetStruct()->convert_point_from_view = view_convert_point_from_view;
}
template<> CefRefPtr<CefView> CefCppToCRefCounted<CefViewCppToC, CefView,
cef_view_t>::UnwrapDerived(CefWrapperType type, cef_view_t* s) {
template <>
CefRefPtr<CefView>
CefCppToCRefCounted<CefViewCppToC, CefView, cef_view_t>::UnwrapDerived(
CefWrapperType type,
cef_view_t* s) {
if (type == WT_BROWSER_VIEW) {
return CefBrowserViewCppToC::Unwrap(reinterpret_cast<cef_browser_view_t*>(
s));
return CefBrowserViewCppToC::Unwrap(
reinterpret_cast<cef_browser_view_t*>(s));
}
if (type == WT_BUTTON) {
return CefButtonCppToC::Unwrap(reinterpret_cast<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));
@@ -889,9 +876,12 @@ template<> CefRefPtr<CefView> CefCppToCRefCounted<CefViewCppToC, CefView,
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefViewCppToC, CefView,
cef_view_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefViewCppToC, CefView, cef_view_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefViewCppToC, CefView,
cef_view_t>::kWrapperType = WT_VIEW;
template <>
CefWrapperType
CefCppToCRefCounted<CefViewCppToC, CefView, cef_view_t>::kWrapperType =
WT_VIEW;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=216d5a271bd5a8df2c5d8db3f44c4b66c98c5c4e$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_CPPTOC_H_
@@ -18,20 +20,20 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_view.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/views/cef_browser_view.h"
#include "include/capi/views/cef_browser_view_capi.h"
#include "include/views/cef_button.h"
#include "include/capi/views/cef_button_capi.h"
#include "include/views/cef_panel.h"
#include "include/capi/views/cef_panel_capi.h"
#include "include/views/cef_scroll_view.h"
#include "include/capi/views/cef_scroll_view_capi.h"
#include "include/views/cef_textfield.h"
#include "include/capi/views/cef_textfield_capi.h"
#include "include/views/cef_window.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_browser_view.h"
#include "include/views/cef_button.h"
#include "include/views/cef_panel.h"
#include "include/views/cef_scroll_view.h"
#include "include/views/cef_textfield.h"
#include "include/views/cef_view.h"
#include "include/views/cef_window.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=e678eaa0ebf2a590701353fd8bc75f55002ca4b2$
//
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
#include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h"
@@ -19,13 +21,13 @@
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
cef_size_t CEF_CALLBACK view_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
view_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -44,8 +46,9 @@ cef_size_t CEF_CALLBACK view_delegate_get_preferred_size(
return _retval;
}
cef_size_t CEF_CALLBACK view_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
view_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -64,8 +67,9 @@ cef_size_t CEF_CALLBACK view_delegate_get_minimum_size(
return _retval;
}
cef_size_t CEF_CALLBACK view_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
view_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -84,8 +88,10 @@ cef_size_t CEF_CALLBACK view_delegate_get_maximum_size(
return _retval;
}
int CEF_CALLBACK view_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
view_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);
@@ -98,16 +104,17 @@ int CEF_CALLBACK view_delegate_get_height_for_width(
// Execute
int _retval = CefViewDelegateCppToC::Get(self)->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK view_delegate_on_parent_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* parent) {
void CEF_CALLBACK
view_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);
@@ -124,14 +131,15 @@ void CEF_CALLBACK view_delegate_on_parent_view_changed(
// Execute
CefViewDelegateCppToC::Get(self)->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK view_delegate_on_child_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* child) {
void CEF_CALLBACK
view_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);
@@ -148,13 +156,12 @@ void CEF_CALLBACK view_delegate_on_child_view_changed(
// Execute
CefViewDelegateCppToC::Get(self)->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK view_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);
@@ -166,12 +173,11 @@ void CEF_CALLBACK view_delegate_on_focus(struct _cef_view_delegate_t* self,
return;
// Execute
CefViewDelegateCppToC::Get(self)->OnFocus(
CefViewCToCpp::Wrap(view));
CefViewDelegateCppToC::Get(self)->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK view_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);
@@ -183,13 +189,11 @@ void CEF_CALLBACK view_delegate_on_blur(struct _cef_view_delegate_t* self,
return;
// Execute
CefViewDelegateCppToC::Get(self)->OnBlur(
CefViewCToCpp::Wrap(view));
CefViewDelegateCppToC::Get(self)->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefViewDelegateCppToC::CefViewDelegateCppToC() {
@@ -203,9 +207,12 @@ CefViewDelegateCppToC::CefViewDelegateCppToC() {
GetStruct()->on_blur = view_delegate_on_blur;
}
template<> CefRefPtr<CefViewDelegate> CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate, cef_view_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_view_delegate_t* s) {
template <>
CefRefPtr<CefViewDelegate> CefCppToCRefCounted<
CefViewDelegateCppToC,
CefViewDelegate,
cef_view_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_view_delegate_t* s) {
if (type == WT_BROWSER_VIEW_DELEGATE) {
return CefBrowserViewDelegateCppToC::Unwrap(
reinterpret_cast<cef_browser_view_delegate_t*>(s));
@@ -235,9 +242,14 @@ template<> CefRefPtr<CefViewDelegate> CefCppToCRefCounted<CefViewDelegateCppToC,
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate, cef_view_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate,
cef_view_delegate_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate, cef_view_delegate_t>::kWrapperType = WT_VIEW_DELEGATE;
template <>
CefWrapperType CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate,
cef_view_delegate_t>::kWrapperType =
WT_VIEW_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=52ff851dd3f66acdab5a61d7eb87be29ba59e1ca$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_DELEGATE_CPPTOC_H_
@@ -18,17 +20,17 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_view_delegate.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/capi/views/cef_view_delegate_capi.h"
#include "include/views/cef_view.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/views/cef_view_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefViewDelegateCppToC
: public CefCppToCRefCounted<CefViewDelegateCppToC, CefViewDelegate,
cef_view_delegate_t> {
class CefViewDelegateCppToC : public CefCppToCRefCounted<CefViewDelegateCppToC,
CefViewDelegate,
cef_view_delegate_t> {
public:
CefViewDelegateCppToC();
};

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c71caf1cf4f00cced60efec26cb58fb60ed8bf86$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_CPPTOC_H_
@@ -18,8 +20,8 @@
#error This file can be included DLL-side only
#endif
#include "include/views/cef_window.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_window.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.

View File

@@ -9,18 +9,20 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=fad9939546ba7289df656386ae77e4d8b60f58de$
//
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK window_delegate_on_window_created(
struct _cef_window_delegate_t* self, cef_window_t* window) {
void CEF_CALLBACK
window_delegate_on_window_created(struct _cef_window_delegate_t* self,
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -36,8 +38,9 @@ void CEF_CALLBACK window_delegate_on_window_created(
CefWindowCToCpp::Wrap(window));
}
void CEF_CALLBACK window_delegate_on_window_destroyed(
struct _cef_window_delegate_t* self, cef_window_t* window) {
void CEF_CALLBACK
window_delegate_on_window_destroyed(struct _cef_window_delegate_t* self,
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -53,8 +56,9 @@ void CEF_CALLBACK window_delegate_on_window_destroyed(
CefWindowCToCpp::Wrap(window));
}
int CEF_CALLBACK window_delegate_is_frameless(
struct _cef_window_delegate_t* self, cef_window_t* window) {
int CEF_CALLBACK
window_delegate_is_frameless(struct _cef_window_delegate_t* self,
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -74,7 +78,7 @@ int CEF_CALLBACK window_delegate_is_frameless(
}
int CEF_CALLBACK window_delegate_can_resize(struct _cef_window_delegate_t* self,
cef_window_t* window) {
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -93,8 +97,9 @@ int CEF_CALLBACK window_delegate_can_resize(struct _cef_window_delegate_t* self,
return _retval;
}
int CEF_CALLBACK window_delegate_can_maximize(
struct _cef_window_delegate_t* self, cef_window_t* window) {
int CEF_CALLBACK
window_delegate_can_maximize(struct _cef_window_delegate_t* self,
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -113,8 +118,9 @@ int CEF_CALLBACK window_delegate_can_maximize(
return _retval;
}
int CEF_CALLBACK window_delegate_can_minimize(
struct _cef_window_delegate_t* self, cef_window_t* window) {
int CEF_CALLBACK
window_delegate_can_minimize(struct _cef_window_delegate_t* self,
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -134,7 +140,7 @@ int CEF_CALLBACK window_delegate_can_minimize(
}
int CEF_CALLBACK window_delegate_can_close(struct _cef_window_delegate_t* self,
cef_window_t* window) {
cef_window_t* window) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -153,9 +159,10 @@ int CEF_CALLBACK window_delegate_can_close(struct _cef_window_delegate_t* self,
return _retval;
}
int CEF_CALLBACK window_delegate_on_accelerator(
struct _cef_window_delegate_t* self, cef_window_t* window,
int command_id) {
int CEF_CALLBACK
window_delegate_on_accelerator(struct _cef_window_delegate_t* self,
cef_window_t* window,
int command_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -168,16 +175,16 @@ int CEF_CALLBACK window_delegate_on_accelerator(
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->OnAccelerator(
CefWindowCToCpp::Wrap(window),
command_id);
CefWindowCToCpp::Wrap(window), command_id);
// Return type: bool
return _retval;
}
int CEF_CALLBACK window_delegate_on_key_event(
struct _cef_window_delegate_t* self, cef_window_t* window,
const struct _cef_key_event_t* event) {
int CEF_CALLBACK
window_delegate_on_key_event(struct _cef_window_delegate_t* self,
cef_window_t* window,
const struct _cef_key_event_t* event) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -199,15 +206,15 @@ int CEF_CALLBACK window_delegate_on_key_event(
// Execute
bool _retval = CefWindowDelegateCppToC::Get(self)->OnKeyEvent(
CefWindowCToCpp::Wrap(window),
eventObj);
CefWindowCToCpp::Wrap(window), eventObj);
// Return type: bool
return _retval;
}
cef_size_t CEF_CALLBACK window_delegate_get_preferred_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
window_delegate_get_preferred_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -220,15 +227,16 @@ cef_size_t CEF_CALLBACK window_delegate_get_preferred_size(
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
reinterpret_cast<cef_window_delegate_t*>(self))->GetPreferredSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_window_delegate_t*>(self))
->GetPreferredSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK window_delegate_get_minimum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
window_delegate_get_minimum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -241,15 +249,16 @@ cef_size_t CEF_CALLBACK window_delegate_get_minimum_size(
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
reinterpret_cast<cef_window_delegate_t*>(self))->GetMinimumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_window_delegate_t*>(self))
->GetMinimumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK window_delegate_get_maximum_size(
struct _cef_view_delegate_t* self, cef_view_t* view) {
cef_size_t CEF_CALLBACK
window_delegate_get_maximum_size(struct _cef_view_delegate_t* self,
cef_view_t* view) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@@ -262,15 +271,17 @@ cef_size_t CEF_CALLBACK window_delegate_get_maximum_size(
// Execute
cef_size_t _retval = CefWindowDelegateCppToC::Get(
reinterpret_cast<cef_window_delegate_t*>(self))->GetMaximumSize(
CefViewCToCpp::Wrap(view));
reinterpret_cast<cef_window_delegate_t*>(self))
->GetMaximumSize(CefViewCToCpp::Wrap(view));
// Return type: simple
return _retval;
}
int CEF_CALLBACK window_delegate_get_height_for_width(
struct _cef_view_delegate_t* self, cef_view_t* view, int width) {
int CEF_CALLBACK
window_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);
@@ -283,17 +294,18 @@ int CEF_CALLBACK window_delegate_get_height_for_width(
// Execute
int _retval = CefWindowDelegateCppToC::Get(
reinterpret_cast<cef_window_delegate_t*>(self))->GetHeightForWidth(
CefViewCToCpp::Wrap(view),
width);
reinterpret_cast<cef_window_delegate_t*>(self))
->GetHeightForWidth(CefViewCToCpp::Wrap(view), width);
// Return type: simple
return _retval;
}
void CEF_CALLBACK window_delegate_on_parent_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* parent) {
void CEF_CALLBACK
window_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);
@@ -309,16 +321,16 @@ void CEF_CALLBACK window_delegate_on_parent_view_changed(
return;
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(
self))->OnParentViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(parent));
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
->OnParentViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(parent));
}
void CEF_CALLBACK window_delegate_on_child_view_changed(
struct _cef_view_delegate_t* self, cef_view_t* view, int added,
cef_view_t* child) {
void CEF_CALLBACK
window_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);
@@ -334,15 +346,13 @@ void CEF_CALLBACK window_delegate_on_child_view_changed(
return;
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(
self))->OnChildViewChanged(
CefViewCToCpp::Wrap(view),
added?true:false,
CefViewCToCpp::Wrap(child));
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
->OnChildViewChanged(CefViewCToCpp::Wrap(view), added ? true : false,
CefViewCToCpp::Wrap(child));
}
void CEF_CALLBACK window_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);
@@ -354,13 +364,12 @@ void CEF_CALLBACK window_delegate_on_focus(struct _cef_view_delegate_t* self,
return;
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(
self))->OnFocus(
CefViewCToCpp::Wrap(view));
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
->OnFocus(CefViewCToCpp::Wrap(view));
}
void CEF_CALLBACK window_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);
@@ -372,14 +381,12 @@ void CEF_CALLBACK window_delegate_on_blur(struct _cef_view_delegate_t* self,
return;
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(
self))->OnBlur(
CefViewCToCpp::Wrap(view));
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
->OnBlur(CefViewCToCpp::Wrap(view));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefWindowDelegateCppToC::CefWindowDelegateCppToC() {
@@ -406,18 +413,25 @@ CefWindowDelegateCppToC::CefWindowDelegateCppToC() {
GetStruct()->base.base.on_blur = window_delegate_on_blur;
}
template<> CefRefPtr<CefWindowDelegate> CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate, cef_window_delegate_t>::UnwrapDerived(
CefWrapperType type, cef_window_delegate_t* s) {
template <>
CefRefPtr<CefWindowDelegate> CefCppToCRefCounted<
CefWindowDelegateCppToC,
CefWindowDelegate,
cef_window_delegate_t>::UnwrapDerived(CefWrapperType type,
cef_window_delegate_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate, cef_window_delegate_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate,
cef_window_delegate_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate, cef_window_delegate_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate,
cef_window_delegate_t>::kWrapperType =
WT_WINDOW_DELEGATE;

View File

@@ -9,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a14838405e10fae96702de855491a18dc1958bc6$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_DELEGATE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_DELEGATE_CPPTOC_H_
@@ -18,17 +20,18 @@
#error This file can be included wrapper-side only
#endif
#include "include/views/cef_window_delegate.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/capi/views/cef_window_delegate_capi.h"
#include "include/views/cef_window.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_window_delegate.h"
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefWindowDelegateCppToC
: public CefCppToCRefCounted<CefWindowDelegateCppToC, CefWindowDelegate,
cef_window_delegate_t> {
: public CefCppToCRefCounted<CefWindowDelegateCppToC,
CefWindowDelegate,
cef_window_delegate_t> {
public:
CefWindowDelegateCppToC();
};