views: Add support for absolute positioned overlay views.

To test:
Run `cefclient.exe --use-views --hide-frame --hide-controls`
Add `--enable-chrome-runtime` for the same behavior using the Chrome location
bar instead of a text field.
This commit is contained in:
Marshall Greenblatt
2021-08-27 21:55:15 -04:00
parent 6f6072b857
commit 4a44e16a09
96 changed files with 3875 additions and 230 deletions

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=312985bb5cc971d1fe9d77af1f985f6a544e9db5$
// $hash=7cbe7d4732eae535d759b62e718f5ab2de570f0a$
//
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
@@ -606,6 +606,46 @@ cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK browser_view_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK browser_view_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefBrowserViewCppToC::Get(reinterpret_cast<cef_browser_view_t*>(self))
->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK
browser_view_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1120,6 +1160,8 @@ CefBrowserViewCppToC::CefBrowserViewCppToC() {
GetStruct()->base.get_size = browser_view_get_size;
GetStruct()->base.set_position = browser_view_set_position;
GetStruct()->base.get_position = browser_view_get_position;
GetStruct()->base.set_insets = browser_view_set_insets;
GetStruct()->base.get_insets = browser_view_get_insets;
GetStruct()->base.get_preferred_size = browser_view_get_preferred_size;
GetStruct()->base.size_to_preferred_size =
browser_view_size_to_preferred_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8e8daae6a8ed718582045ea42e16906813b77337$
// $hash=3067f33d10bbd2f7555a6a809bad7ea8e97dbece$
//
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
@@ -343,6 +343,35 @@ browser_view_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
browser_view_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefBrowserViewDelegateCppToC::Get(
reinterpret_cast<cef_browser_view_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK
browser_view_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
@@ -410,6 +439,7 @@ CefBrowserViewDelegateCppToC::CefBrowserViewDelegateCppToC() {
GetStruct()->base.on_child_view_changed =
browser_view_delegate_on_child_view_changed;
GetStruct()->base.on_window_changed = browser_view_delegate_on_window_changed;
GetStruct()->base.on_layout_changed = browser_view_delegate_on_layout_changed;
GetStruct()->base.on_focus = browser_view_delegate_on_focus;
GetStruct()->base.on_blur = browser_view_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a0060b09d6eb4bbeeb69e4b80dccccee394d600e$
// $hash=328f5caabb9eb92f668961216f9812b2a9bc3ee7$
//
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
@@ -580,6 +580,45 @@ cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK button_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK button_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefButtonCppToC::Get(reinterpret_cast<cef_button_t*>(self))->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK button_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1076,6 +1115,8 @@ CefButtonCppToC::CefButtonCppToC() {
GetStruct()->base.get_size = button_get_size;
GetStruct()->base.set_position = button_set_position;
GetStruct()->base.get_position = button_get_position;
GetStruct()->base.set_insets = button_set_insets;
GetStruct()->base.get_insets = button_get_insets;
GetStruct()->base.get_preferred_size = button_get_preferred_size;
GetStruct()->base.size_to_preferred_size = button_size_to_preferred_size;
GetStruct()->base.get_minimum_size = button_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=52a0deb8b7ae62e474acb1474cf922c3e9a04f14$
// $hash=ae5b6dce4c1840faa597c2dcb2b92772fa4f8de4$
//
#include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h"
@@ -234,6 +234,34 @@ button_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
button_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefButtonDelegateCppToC::Get(reinterpret_cast<cef_button_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
shutdown_checker::AssertNotShutdown();
@@ -289,6 +317,7 @@ CefButtonDelegateCppToC::CefButtonDelegateCppToC() {
GetStruct()->base.on_child_view_changed =
button_delegate_on_child_view_changed;
GetStruct()->base.on_window_changed = button_delegate_on_window_changed;
GetStruct()->base.on_layout_changed = button_delegate_on_layout_changed;
GetStruct()->base.on_focus = button_delegate_on_focus;
GetStruct()->base.on_blur = button_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f723bc389e8df80f926a3e1952d9ba0241fcb494$
// $hash=4831a878243309dc259eea8ac107a2654b0da9fd$
//
#include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
@@ -826,6 +826,46 @@ cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK label_button_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK label_button_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK
label_button_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1355,6 +1395,8 @@ CefLabelButtonCppToC::CefLabelButtonCppToC() {
GetStruct()->base.base.get_size = label_button_get_size;
GetStruct()->base.base.set_position = label_button_set_position;
GetStruct()->base.base.get_position = label_button_get_position;
GetStruct()->base.base.set_insets = label_button_set_insets;
GetStruct()->base.base.get_insets = label_button_get_insets;
GetStruct()->base.base.get_preferred_size = label_button_get_preferred_size;
GetStruct()->base.base.size_to_preferred_size =
label_button_size_to_preferred_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=97c8a26550af49abfe4a1fcf1d8d54193c5fb3b1$
// $hash=17a2490a2076439fca2ee7e6c2984f9307b880fc$
//
#include "libcef_dll/cpptoc/views/menu_button_cpptoc.h"
@@ -878,6 +878,46 @@ cef_point_t CEF_CALLBACK menu_button_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK menu_button_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK menu_button_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK
menu_button_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1407,6 +1447,8 @@ CefMenuButtonCppToC::CefMenuButtonCppToC() {
GetStruct()->base.base.base.get_size = menu_button_get_size;
GetStruct()->base.base.base.set_position = menu_button_set_position;
GetStruct()->base.base.base.get_position = menu_button_get_position;
GetStruct()->base.base.base.set_insets = menu_button_set_insets;
GetStruct()->base.base.base.get_insets = menu_button_get_insets;
GetStruct()->base.base.base.get_preferred_size =
menu_button_get_preferred_size;
GetStruct()->base.base.base.size_to_preferred_size =

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=2fcd1d4d2126285209e1fa782beccbb363693bf3$
// $hash=36a7761d47db5574fc6504b42a988e9f12ef234c$
//
#include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h"
@@ -274,6 +274,35 @@ menu_button_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
menu_button_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefMenuButtonDelegateCppToC::Get(
reinterpret_cast<cef_menu_button_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK
menu_button_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
@@ -340,6 +369,8 @@ CefMenuButtonDelegateCppToC::CefMenuButtonDelegateCppToC() {
menu_button_delegate_on_child_view_changed;
GetStruct()->base.base.on_window_changed =
menu_button_delegate_on_window_changed;
GetStruct()->base.base.on_layout_changed =
menu_button_delegate_on_layout_changed;
GetStruct()->base.base.on_focus = menu_button_delegate_on_focus;
GetStruct()->base.base.on_blur = menu_button_delegate_on_blur;
}

View File

@@ -0,0 +1,416 @@
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5f6f27874fc4e0ee698920fa734254eac9d14efa$
//
#include "libcef_dll/cpptoc/views/overlay_controller_cpptoc.h"
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK
overlay_controller_is_valid(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsValid();
// Return type: bool
return _retval;
}
int CEF_CALLBACK
overlay_controller_is_same(struct _cef_overlay_controller_t* self,
struct _cef_overlay_controller_t* that) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsSame(
CefOverlayControllerCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_view_t* CEF_CALLBACK
overlay_controller_get_contents_view(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefView> _retval =
CefOverlayControllerCppToC::Get(self)->GetContentsView();
// Return type: refptr_same
return CefViewCppToC::Wrap(_retval);
}
struct _cef_window_t* CEF_CALLBACK
overlay_controller_get_window(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefWindow> _retval =
CefOverlayControllerCppToC::Get(self)->GetWindow();
// Return type: refptr_same
return CefWindowCppToC::Wrap(_retval);
}
cef_docking_mode_t CEF_CALLBACK
overlay_controller_get_docking_mode(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CEF_DOCKING_MODE_TOP_LEFT;
// Execute
cef_docking_mode_t _retval =
CefOverlayControllerCppToC::Get(self)->GetDockingMode();
// Return type: simple
return _retval;
}
void CEF_CALLBACK
overlay_controller_destroy(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Execute
CefOverlayControllerCppToC::Get(self)->Destroy();
}
void CEF_CALLBACK
overlay_controller_set_bounds(struct _cef_overlay_controller_t* self,
const cef_rect_t* bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: bounds; type: simple_byref_const
DCHECK(bounds);
if (!bounds)
return;
// Translate param: bounds; type: simple_byref_const
CefRect boundsVal = bounds ? *bounds : CefRect();
// Execute
CefOverlayControllerCppToC::Get(self)->SetBounds(boundsVal);
}
cef_rect_t CEF_CALLBACK
overlay_controller_get_bounds(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefRect();
// Execute
cef_rect_t _retval = CefOverlayControllerCppToC::Get(self)->GetBounds();
// Return type: simple
return _retval;
}
cef_rect_t CEF_CALLBACK overlay_controller_get_bounds_in_screen(
struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefRect();
// Execute
cef_rect_t _retval =
CefOverlayControllerCppToC::Get(self)->GetBoundsInScreen();
// Return type: simple
return _retval;
}
void CEF_CALLBACK
overlay_controller_set_size(struct _cef_overlay_controller_t* self,
const cef_size_t* size) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: size; type: simple_byref_const
DCHECK(size);
if (!size)
return;
// Translate param: size; type: simple_byref_const
CefSize sizeVal = size ? *size : CefSize();
// Execute
CefOverlayControllerCppToC::Get(self)->SetSize(sizeVal);
}
cef_size_t CEF_CALLBACK
overlay_controller_get_size(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefSize();
// Execute
cef_size_t _retval = CefOverlayControllerCppToC::Get(self)->GetSize();
// Return type: simple
return _retval;
}
void CEF_CALLBACK
overlay_controller_set_position(struct _cef_overlay_controller_t* self,
const cef_point_t* position) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: position; type: simple_byref_const
DCHECK(position);
if (!position)
return;
// Translate param: position; type: simple_byref_const
CefPoint positionVal = position ? *position : CefPoint();
// Execute
CefOverlayControllerCppToC::Get(self)->SetPosition(positionVal);
}
cef_point_t CEF_CALLBACK
overlay_controller_get_position(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefPoint();
// Execute
cef_point_t _retval = CefOverlayControllerCppToC::Get(self)->GetPosition();
// Return type: simple
return _retval;
}
void CEF_CALLBACK
overlay_controller_set_insets(struct _cef_overlay_controller_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefOverlayControllerCppToC::Get(self)->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK
overlay_controller_get_insets(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval = CefOverlayControllerCppToC::Get(self)->GetInsets();
// Return type: simple
return _retval;
}
void CEF_CALLBACK overlay_controller_size_to_preferred_size(
struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Execute
CefOverlayControllerCppToC::Get(self)->SizeToPreferredSize();
}
void CEF_CALLBACK
overlay_controller_set_visible(struct _cef_overlay_controller_t* self,
int visible) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Execute
CefOverlayControllerCppToC::Get(self)->SetVisible(visible ? true : false);
}
int CEF_CALLBACK
overlay_controller_is_visible(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsVisible();
// Return type: bool
return _retval;
}
int CEF_CALLBACK
overlay_controller_is_drawn(struct _cef_overlay_controller_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefOverlayControllerCppToC::Get(self)->IsDrawn();
// Return type: bool
return _retval;
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefOverlayControllerCppToC::CefOverlayControllerCppToC() {
GetStruct()->is_valid = overlay_controller_is_valid;
GetStruct()->is_same = overlay_controller_is_same;
GetStruct()->get_contents_view = overlay_controller_get_contents_view;
GetStruct()->get_window = overlay_controller_get_window;
GetStruct()->get_docking_mode = overlay_controller_get_docking_mode;
GetStruct()->destroy = overlay_controller_destroy;
GetStruct()->set_bounds = overlay_controller_set_bounds;
GetStruct()->get_bounds = overlay_controller_get_bounds;
GetStruct()->get_bounds_in_screen = overlay_controller_get_bounds_in_screen;
GetStruct()->set_size = overlay_controller_set_size;
GetStruct()->get_size = overlay_controller_get_size;
GetStruct()->set_position = overlay_controller_set_position;
GetStruct()->get_position = overlay_controller_get_position;
GetStruct()->set_insets = overlay_controller_set_insets;
GetStruct()->get_insets = overlay_controller_get_insets;
GetStruct()->size_to_preferred_size =
overlay_controller_size_to_preferred_size;
GetStruct()->set_visible = overlay_controller_set_visible;
GetStruct()->is_visible = overlay_controller_is_visible;
GetStruct()->is_drawn = overlay_controller_is_drawn;
}
// DESTRUCTOR - Do not edit by hand.
CefOverlayControllerCppToC::~CefOverlayControllerCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefOverlayController> CefCppToCRefCounted<
CefOverlayControllerCppToC,
CefOverlayController,
cef_overlay_controller_t>::UnwrapDerived(CefWrapperType type,
cef_overlay_controller_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return nullptr;
}
template <>
CefWrapperType CefCppToCRefCounted<CefOverlayControllerCppToC,
CefOverlayController,
cef_overlay_controller_t>::kWrapperType =
WT_OVERLAY_CONTROLLER;

View File

@@ -0,0 +1,42 @@
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a35c34c93f38c7db53ddd261a1631ef52d0f5ab5$
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_OVERLAY_CONTROLLER_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VIEWS_OVERLAY_CONTROLLER_CPPTOC_H_
#pragma once
#if !defined(BUILDING_CEF_SHARED)
#error This file can be included DLL-side only
#endif
#include "include/capi/views/cef_overlay_controller_capi.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_overlay_controller.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.
// This class may be instantiated and accessed DLL-side only.
class CefOverlayControllerCppToC
: public CefCppToCRefCounted<CefOverlayControllerCppToC,
CefOverlayController,
cef_overlay_controller_t> {
public:
CefOverlayControllerCppToC();
virtual ~CefOverlayControllerCppToC();
};
#endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_OVERLAY_CONTROLLER_CPPTOC_H_

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=46ba2afdb3ede88d0eb37df2726ab5ff33fb6983$
// $hash=6a2e3823506ccfeeff53ac719edf6e912056e3a3$
//
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
@@ -713,6 +713,45 @@ cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK panel_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK panel_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1210,6 +1249,8 @@ CefPanelCppToC::CefPanelCppToC() {
GetStruct()->base.get_size = panel_get_size;
GetStruct()->base.set_position = panel_set_position;
GetStruct()->base.get_position = panel_get_position;
GetStruct()->base.set_insets = panel_set_insets;
GetStruct()->base.get_insets = panel_get_insets;
GetStruct()->base.get_preferred_size = panel_get_preferred_size;
GetStruct()->base.size_to_preferred_size = panel_size_to_preferred_size;
GetStruct()->base.get_minimum_size = panel_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=dd29f2990766a766a27dece7e39501eb11a296fd$
// $hash=d212d26c4fdb8c0b24a9f1ea12d0a402b8466995$
//
#include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h"
@@ -193,6 +193,34 @@ panel_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
panel_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefPanelDelegateCppToC::Get(reinterpret_cast<cef_panel_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK panel_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
shutdown_checker::AssertNotShutdown();
@@ -245,6 +273,7 @@ CefPanelDelegateCppToC::CefPanelDelegateCppToC() {
GetStruct()->base.on_child_view_changed =
panel_delegate_on_child_view_changed;
GetStruct()->base.on_window_changed = panel_delegate_on_window_changed;
GetStruct()->base.on_layout_changed = panel_delegate_on_layout_changed;
GetStruct()->base.on_focus = panel_delegate_on_focus;
GetStruct()->base.on_blur = panel_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=88d6df521d18ef28e9e2e7cbe31ecf6c96351430$
// $hash=1b422791d4b286e5113f4867aa8da38e21e2a2ed$
//
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
@@ -634,6 +634,46 @@ cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK scroll_view_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK scroll_view_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK
scroll_view_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1149,6 +1189,8 @@ CefScrollViewCppToC::CefScrollViewCppToC() {
GetStruct()->base.get_size = scroll_view_get_size;
GetStruct()->base.set_position = scroll_view_set_position;
GetStruct()->base.get_position = scroll_view_get_position;
GetStruct()->base.set_insets = scroll_view_set_insets;
GetStruct()->base.get_insets = scroll_view_get_insets;
GetStruct()->base.get_preferred_size = scroll_view_get_preferred_size;
GetStruct()->base.size_to_preferred_size = scroll_view_size_to_preferred_size;
GetStruct()->base.get_minimum_size = scroll_view_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=fd6b1cf787b563525dac101a765b7c399356e00c$
// $hash=41aa4a08d59759dd53429976da36299374a554d7$
//
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
@@ -1035,6 +1035,46 @@ cef_point_t CEF_CALLBACK textfield_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK textfield_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK textfield_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK textfield_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1572,6 +1612,8 @@ CefTextfieldCppToC::CefTextfieldCppToC() {
GetStruct()->base.get_size = textfield_get_size;
GetStruct()->base.set_position = textfield_set_position;
GetStruct()->base.get_position = textfield_get_position;
GetStruct()->base.set_insets = textfield_set_insets;
GetStruct()->base.get_insets = textfield_get_insets;
GetStruct()->base.get_preferred_size = textfield_get_preferred_size;
GetStruct()->base.size_to_preferred_size = textfield_size_to_preferred_size;
GetStruct()->base.get_minimum_size = textfield_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=e35b635ec442c8910b02aca64d48760b1360c868$
// $hash=9c22ccd70661c2c23bc5bbb6f80f4b04d42c90fe$
//
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
@@ -249,6 +249,35 @@ textfield_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
textfield_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefTextfieldDelegateCppToC::Get(
reinterpret_cast<cef_textfield_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK textfield_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
shutdown_checker::AssertNotShutdown();
@@ -306,6 +335,7 @@ CefTextfieldDelegateCppToC::CefTextfieldDelegateCppToC() {
GetStruct()->base.on_child_view_changed =
textfield_delegate_on_child_view_changed;
GetStruct()->base.on_window_changed = textfield_delegate_on_window_changed;
GetStruct()->base.on_layout_changed = textfield_delegate_on_layout_changed;
GetStruct()->base.on_focus = textfield_delegate_on_focus;
GetStruct()->base.on_blur = textfield_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=0884539e94e09316a9e516d93d77743c6287fe9a$
// $hash=df095c7377045f70561ee276a15fd0c13769851c$
//
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
@@ -449,6 +449,43 @@ cef_point_t CEF_CALLBACK view_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK view_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefViewCppToC::Get(self)->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK view_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval = CefViewCppToC::Get(self)->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK view_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -912,6 +949,8 @@ CefViewCppToC::CefViewCppToC() {
GetStruct()->get_size = view_get_size;
GetStruct()->set_position = view_set_position;
GetStruct()->get_position = view_get_position;
GetStruct()->set_insets = view_set_insets;
GetStruct()->get_insets = view_get_insets;
GetStruct()->get_preferred_size = view_get_preferred_size;
GetStruct()->size_to_preferred_size = view_size_to_preferred_size;
GetStruct()->get_minimum_size = view_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7c6283658d49420281d02b4793f65f478f261461$
// $hash=fd17603645550a551edbab0248dbe75afa074c19$
//
#include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
@@ -194,6 +194,34 @@ view_delegate_on_window_changed(struct _cef_view_delegate_t* self,
added ? true : false);
}
void CEF_CALLBACK
view_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefViewDelegateCppToC::Get(self)->OnLayoutChanged(CefViewCToCpp::Wrap(view),
new_boundsVal);
}
void CEF_CALLBACK view_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
shutdown_checker::AssertNotShutdown();
@@ -242,6 +270,7 @@ CefViewDelegateCppToC::CefViewDelegateCppToC() {
GetStruct()->on_parent_view_changed = view_delegate_on_parent_view_changed;
GetStruct()->on_child_view_changed = view_delegate_on_child_view_changed;
GetStruct()->on_window_changed = view_delegate_on_window_changed;
GetStruct()->on_layout_changed = view_delegate_on_layout_changed;
GetStruct()->on_focus = view_delegate_on_focus;
GetStruct()->on_blur = view_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=1d17ae751431af3baf83b3386f1cab410964a17f$
// $hash=180f352b0c01effd2e61c3879b81dcd3b0989d0a$
//
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
@@ -21,6 +21,7 @@
#include "libcef_dll/cpptoc/views/display_cpptoc.h"
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/overlay_controller_cpptoc.h"
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
@@ -414,6 +415,31 @@ window_get_window_app_icon(struct _cef_window_t* self) {
return CefImageCppToC::Wrap(_retval);
}
cef_overlay_controller_t* CEF_CALLBACK
window_add_overlay_view(struct _cef_window_t* self,
cef_view_t* view,
cef_docking_mode_t docking_mode) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Verify param: view; type: refptr_same
DCHECK(view);
if (!view)
return NULL;
// Execute
CefRefPtr<CefOverlayController> _retval =
CefWindowCppToC::Get(self)->AddOverlayView(CefViewCppToC::Unwrap(view),
docking_mode);
// Return type: refptr_same
return CefOverlayControllerCppToC::Wrap(_retval);
}
void CEF_CALLBACK window_show_menu(struct _cef_window_t* self,
cef_menu_model_t* menu_model,
const cef_point_t* screen_point,
@@ -1309,6 +1335,45 @@ cef_point_t CEF_CALLBACK window_get_position(struct _cef_view_t* self) {
return _retval;
}
void CEF_CALLBACK window_set_insets(struct _cef_view_t* self,
const cef_insets_t* insets) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: insets; type: simple_byref_const
DCHECK(insets);
if (!insets)
return;
// Translate param: insets; type: simple_byref_const
CefInsets insetsVal = insets ? *insets : CefInsets();
// Execute
CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
->SetInsets(insetsVal);
}
cef_insets_t CEF_CALLBACK window_get_insets(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return CefInsets();
// Execute
cef_insets_t _retval =
CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetInsets();
// Return type: simple
return _retval;
}
cef_size_t CEF_CALLBACK window_get_preferred_size(struct _cef_view_t* self) {
shutdown_checker::AssertNotShutdown();
@@ -1798,6 +1863,7 @@ CefWindowCppToC::CefWindowCppToC() {
GetStruct()->get_window_icon = window_get_window_icon;
GetStruct()->set_window_app_icon = window_set_window_app_icon;
GetStruct()->get_window_app_icon = window_get_window_app_icon;
GetStruct()->add_overlay_view = window_add_overlay_view;
GetStruct()->show_menu = window_show_menu;
GetStruct()->cancel_menu = window_cancel_menu;
GetStruct()->get_display = window_get_display;
@@ -1848,6 +1914,8 @@ CefWindowCppToC::CefWindowCppToC() {
GetStruct()->base.base.get_size = window_get_size;
GetStruct()->base.base.set_position = window_set_position;
GetStruct()->base.base.get_position = window_get_position;
GetStruct()->base.base.set_insets = window_set_insets;
GetStruct()->base.base.get_insets = window_get_insets;
GetStruct()->base.base.get_preferred_size = window_get_preferred_size;
GetStruct()->base.base.size_to_preferred_size = window_size_to_preferred_size;
GetStruct()->base.base.get_minimum_size = window_get_minimum_size;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a201b988556a825fffe39f58e378664b93795c72$
// $hash=d6a40fcd6be6297224b573ac1600701ff6818680$
//
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
@@ -473,6 +473,34 @@ window_delegate_on_window_changed(struct _cef_view_delegate_t* self,
->OnWindowChanged(CefViewCToCpp::Wrap(view), added ? true : false);
}
void CEF_CALLBACK
window_delegate_on_layout_changed(struct _cef_view_delegate_t* self,
cef_view_t* view,
const cef_rect_t* new_bounds) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: view; type: refptr_diff
DCHECK(view);
if (!view)
return;
// Verify param: new_bounds; type: simple_byref_const
DCHECK(new_bounds);
if (!new_bounds)
return;
// Translate param: new_bounds; type: simple_byref_const
CefRect new_boundsVal = new_bounds ? *new_bounds : CefRect();
// Execute
CefWindowDelegateCppToC::Get(reinterpret_cast<cef_window_delegate_t*>(self))
->OnLayoutChanged(CefViewCToCpp::Wrap(view), new_boundsVal);
}
void CEF_CALLBACK window_delegate_on_focus(struct _cef_view_delegate_t* self,
cef_view_t* view) {
shutdown_checker::AssertNotShutdown();
@@ -538,6 +566,7 @@ CefWindowDelegateCppToC::CefWindowDelegateCppToC() {
GetStruct()->base.base.on_child_view_changed =
window_delegate_on_child_view_changed;
GetStruct()->base.base.on_window_changed = window_delegate_on_window_changed;
GetStruct()->base.base.on_layout_changed = window_delegate_on_layout_changed;
GetStruct()->base.base.on_focus = window_delegate_on_focus;
GetStruct()->base.base.on_blur = window_delegate_on_blur;
}

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=912a0807db8bc1405188d61961545cc8e540aacf$
// $hash=fc8a176aa84aa99ad132a5d3853c8ea16ce6660f$
//
#include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
@@ -530,6 +530,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefBrowserViewCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefBrowserViewCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefBrowserViewCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=1c713db1e73d434b6bce3aea8e3a6dddbc547b61$
// $hash=93f91329a1d2db5d20805cb10ee30e1fcd6c3185$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_CTOCPP_H_
@@ -64,6 +64,8 @@ class CefBrowserViewCToCpp : public CefCToCppRefCounted<CefBrowserViewCToCpp,
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9aed01b6014f1c22815e7847eba321d75dbfa45d$
// $hash=8116871f028f4c3426e87298fcd20480f8094726$
//
#include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h"
@@ -332,6 +332,27 @@ void CefBrowserViewDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefBrowserViewDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefBrowserViewDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=20b067cabc4baa4c9edecaffb38a2ebb28524ccc$
// $hash=13f61ebbe80de396a56f2dd894c8137031133c83$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_DELEGATE_CTOCPP_H_
@@ -65,6 +65,8 @@ class CefBrowserViewDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b359b8f9e2c70946ed9831869100e82774a5ea2d$
// $hash=d7b21b37439e1b87e9b9c61fbd86b6cfdb4d3c8d$
//
#include "libcef_dll/ctocpp/views/button_ctocpp.h"
@@ -526,6 +526,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefButtonCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefButtonCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefButtonCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b543831782043e1651b8adfa907a60b553267ca7$
// $hash=bc6f35f85cc77030a7e36e1ebbb97cb9091cf976$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BUTTON_CTOCPP_H_
@@ -68,6 +68,8 @@ class CefButtonCToCpp
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=fc962d2832eeb3dee99e9a201f234d4a4b4d6f0f$
// $hash=10978e1021326cd0f21f84c0b35350e846b47fe9$
//
#include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h"
@@ -231,6 +231,27 @@ void CefButtonDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefButtonDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefButtonDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=6a72a71a9becd6103d44719ed88b000d576d95eb$
// $hash=1120cbc3b78c41223e94493bf4416899f1b936ed$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BUTTON_DELEGATE_CTOCPP_H_
@@ -52,6 +52,8 @@ class CefButtonDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7e8ef08cc7510dc0ca0b580ae4d8031cb7acc268$
// $hash=21aa8991b400583b47f7cc29fb55334ff07b1eb4$
//
#include "libcef_dll/ctocpp/views/label_button_ctocpp.h"
@@ -737,6 +737,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefLabelButtonCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefLabelButtonCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefLabelButtonCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=ef0338428bd0261ccfc0235718d8d1bd81e30315$
// $hash=bb881cc52836308013fb9737d645077b623d55df$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_LABEL_BUTTON_CTOCPP_H_
@@ -83,6 +83,8 @@ class CefLabelButtonCToCpp : public CefCToCppRefCounted<CefLabelButtonCToCpp,
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8f766b8f5a014054dcc79f504d34d0df27f75f9d$
// $hash=7bdcfa2babc3a05789f73a5105aed80e11efe592$
//
#include "libcef_dll/ctocpp/views/menu_button_ctocpp.h"
@@ -783,6 +783,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefMenuButtonCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefMenuButtonCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefMenuButtonCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=90b4b0b803eaeef6873d455a2686dfd9f56a9fc3$
// $hash=3b4a2266f93b3c3623b0f29831a7a7d57c52a628$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_CTOCPP_H_
@@ -87,6 +87,8 @@ class CefMenuButtonCToCpp : public CefCToCppRefCounted<CefMenuButtonCToCpp,
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9ecd07954f90dc14ddf36072285c942f2ee8082f$
// $hash=db120a17dcd7382617f6a6245a8c719c6159d615$
//
#include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h"
@@ -263,6 +263,27 @@ void CefMenuButtonDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefMenuButtonDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefMenuButtonDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7836ec7b53349057b1d1d75c6ba8506620bed53d$
// $hash=34037ec75b18dacfafd978da854131cfa0560d7d$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_DELEGATE_CTOCPP_H_
@@ -58,6 +58,8 @@ class CefMenuButtonDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -0,0 +1,346 @@
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=275cb37282252c06bd4fe5ad21291924d37937c0$
//
#include "libcef_dll/ctocpp/views/overlay_controller_ctocpp.h"
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
// VIRTUAL METHODS - Body may be edited by hand.
NO_SANITIZE("cfi-icall") bool CefOverlayControllerCToCpp::IsValid() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_valid))
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
int _retval = _struct->is_valid(_struct);
// Return type: bool
return _retval ? true : false;
}
NO_SANITIZE("cfi-icall")
bool CefOverlayControllerCToCpp::IsSame(CefRefPtr<CefOverlayController> that) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_same))
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: that; type: refptr_same
DCHECK(that.get());
if (!that.get())
return false;
// Execute
int _retval =
_struct->is_same(_struct, CefOverlayControllerCToCpp::Unwrap(that));
// Return type: bool
return _retval ? true : false;
}
NO_SANITIZE("cfi-icall")
CefRefPtr<CefView> CefOverlayControllerCToCpp::GetContentsView() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_contents_view))
return nullptr;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_view_t* _retval = _struct->get_contents_view(_struct);
// Return type: refptr_same
return CefViewCToCpp::Wrap(_retval);
}
NO_SANITIZE("cfi-icall")
CefRefPtr<CefWindow> CefOverlayControllerCToCpp::GetWindow() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_window))
return nullptr;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_window_t* _retval = _struct->get_window(_struct);
// Return type: refptr_same
return CefWindowCToCpp::Wrap(_retval);
}
NO_SANITIZE("cfi-icall")
cef_docking_mode_t CefOverlayControllerCToCpp::GetDockingMode() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_docking_mode))
return CEF_DOCKING_MODE_TOP_LEFT;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_docking_mode_t _retval = _struct->get_docking_mode(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") void CefOverlayControllerCToCpp::Destroy() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, destroy))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->destroy(_struct);
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SetBounds(const CefRect& bounds) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_bounds))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_bounds(_struct, &bounds);
}
NO_SANITIZE("cfi-icall") CefRect CefOverlayControllerCToCpp::GetBounds() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_bounds))
return CefRect();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_rect_t _retval = _struct->get_bounds(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall")
CefRect CefOverlayControllerCToCpp::GetBoundsInScreen() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen))
return CefRect();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SetSize(const CefSize& size) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_size))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_size(_struct, &size);
}
NO_SANITIZE("cfi-icall") CefSize CefOverlayControllerCToCpp::GetSize() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_size))
return CefSize();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_size_t _retval = _struct->get_size(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SetPosition(const CefPoint& position) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_position))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_position(_struct, &position);
}
NO_SANITIZE("cfi-icall") CefPoint CefOverlayControllerCToCpp::GetPosition() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_position))
return CefPoint();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_point_t _retval = _struct->get_position(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefOverlayControllerCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SizeToPreferredSize() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->size_to_preferred_size(_struct);
}
NO_SANITIZE("cfi-icall")
void CefOverlayControllerCToCpp::SetVisible(bool visible) {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_visible))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_visible(_struct, visible);
}
NO_SANITIZE("cfi-icall") bool CefOverlayControllerCToCpp::IsVisible() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_visible))
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
int _retval = _struct->is_visible(_struct);
// Return type: bool
return _retval ? true : false;
}
NO_SANITIZE("cfi-icall") bool CefOverlayControllerCToCpp::IsDrawn() {
shutdown_checker::AssertNotShutdown();
cef_overlay_controller_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_drawn))
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
int _retval = _struct->is_drawn(_struct);
// Return type: bool
return _retval ? true : false;
}
// CONSTRUCTOR - Do not edit by hand.
CefOverlayControllerCToCpp::CefOverlayControllerCToCpp() {}
// DESTRUCTOR - Do not edit by hand.
CefOverlayControllerCToCpp::~CefOverlayControllerCToCpp() {
shutdown_checker::AssertNotShutdown();
}
template <>
cef_overlay_controller_t* CefCToCppRefCounted<
CefOverlayControllerCToCpp,
CefOverlayController,
cef_overlay_controller_t>::UnwrapDerived(CefWrapperType type,
CefOverlayController* c) {
NOTREACHED() << "Unexpected class type: " << type;
return nullptr;
}
template <>
CefWrapperType CefCToCppRefCounted<CefOverlayControllerCToCpp,
CefOverlayController,
cef_overlay_controller_t>::kWrapperType =
WT_OVERLAY_CONTROLLER;

View File

@@ -0,0 +1,63 @@
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=3f0e14b544f91e4adfd0a3777242bc070025b927$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_
#define CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_
#pragma once
#if !defined(WRAPPING_CEF_SHARED)
#error This file can be included wrapper-side only
#endif
#include "include/capi/views/cef_overlay_controller_capi.h"
#include "include/capi/views/cef_view_capi.h"
#include "include/capi/views/cef_window_capi.h"
#include "include/views/cef_overlay_controller.h"
#include "include/views/cef_view.h"
#include "include/views/cef_window.h"
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
// Wrap a C structure with a C++ class.
// This class may be instantiated and accessed wrapper-side only.
class CefOverlayControllerCToCpp
: public CefCToCppRefCounted<CefOverlayControllerCToCpp,
CefOverlayController,
cef_overlay_controller_t> {
public:
CefOverlayControllerCToCpp();
virtual ~CefOverlayControllerCToCpp();
// CefOverlayController methods.
bool IsValid() override;
bool IsSame(CefRefPtr<CefOverlayController> that) override;
CefRefPtr<CefView> GetContentsView() override;
CefRefPtr<CefWindow> GetWindow() override;
cef_docking_mode_t GetDockingMode() override;
void Destroy() override;
void SetBounds(const CefRect& bounds) override;
CefRect GetBounds() override;
CefRect GetBoundsInScreen() override;
void SetSize(const CefSize& size) override;
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
void SizeToPreferredSize() override;
void SetVisible(bool visible) override;
bool IsVisible() override;
bool IsDrawn() override;
};
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=3e77ca44ea8a99a3fc8c335cca58b4cbc790e9cb$
// $hash=48fcc126726458e5391885e4513d74d56b0c5fdb$
//
#include "libcef_dll/ctocpp/views/panel_ctocpp.h"
@@ -658,6 +658,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefPanelCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefPanelCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefPanelCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=c2d630805de3dbcb47933c566b791c0e2fb7e6d7$
// $hash=a6e6ceefb7e403c46c00c59dd86104787ab77f7a$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_CTOCPP_H_
@@ -81,6 +81,8 @@ class CefPanelCToCpp
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4bffffc0fe09523839a08109aef1e3de90f6e25c$
// $hash=2606f866b3a2d6a4d582a5c2c1990d8f8a7ff65d$
//
#include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h"
@@ -191,6 +191,27 @@ void CefPanelDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefPanelDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefPanelDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d508126f22cba29931a4d53aecbdaaca7dd39b9d$
// $hash=c5368e0456a726a09fd5a76ec65cd3e9f6a04d0f$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_DELEGATE_CTOCPP_H_
@@ -48,6 +48,8 @@ class CefPanelDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8c2b3c821c18076ce40392ea339c177c66d53cc2$
// $hash=73f1e51eafb9ec8797e8f0753b33c2261c3b0e2f$
//
#include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
@@ -565,6 +565,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefScrollViewCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefScrollViewCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefScrollViewCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=20f4f752402507b4573596d6759c93cd1bc7a982$
// $hash=cc3bfb5c57f0b7b31997bfb5226dd3dd77f6d40c$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_SCROLL_VIEW_CTOCPP_H_
@@ -68,6 +68,8 @@ class CefScrollViewCToCpp : public CefCToCppRefCounted<CefScrollViewCToCpp,
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=132a40648e492f00f21d6762ff63d4491e8060c3$
// $hash=0b38c9a006a344082c20030912d9d6fc4923912e$
//
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
@@ -945,6 +945,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefTextfieldCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefTextfieldCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefTextfieldCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=e907d476bdd6717660c7e35f55ab9a1679f0f1fb$
// $hash=b5dc694168601801e87d3b92544f3eb9ea3cecc9$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_CTOCPP_H_
@@ -94,6 +94,8 @@ class CefTextfieldCToCpp : public CefCToCppRefCounted<CefTextfieldCToCpp,
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8582eda62f90bab166d04bb6a2f8783a98fabe15$
// $hash=b449c16a213a71b031e78963f32e0e1fd775c32f$
//
#include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h"
@@ -236,6 +236,27 @@ void CefTextfieldDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefTextfieldDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefTextfieldDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=3a83b906a29ba302874b73804e457680d2b7251e$
// $hash=7c27f6f641fa940331d727bacfa1ac527a98e441$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_DELEGATE_CTOCPP_H_
@@ -53,6 +53,8 @@ class CefTextfieldDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d791f23eeaa056cdc478743acd452c1d60a4fd00$
// $hash=de07e058ed3b4435bc0f57cbdfc2160fae143112$
//
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
@@ -426,6 +426,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefViewCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefViewCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefViewCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=a821d193174f4b6e06db1a003aece65eb1e0db02$
// $hash=a6a2a188d28fd07a4026ace975f42eef7853ba3c$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_VIEW_CTOCPP_H_
@@ -70,6 +70,8 @@ class CefViewCToCpp
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7a6d2ca91509c2e6c510d5c9585a74c2fe10499b$
// $hash=ddd89002a51c428cb66fb95990b935f214ab0090$
//
#include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
@@ -189,6 +189,26 @@ void CefViewDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefViewDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefViewDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f049a053042a00be15899439f324a376ee309dbb$
// $hash=a1888753d972c3f041c0ba24394ea032814a0d64$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_VIEW_DELEGATE_CTOCPP_H_
@@ -47,6 +47,8 @@ class CefViewDelegateCToCpp : public CefCToCppRefCounted<CefViewDelegateCToCpp,
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=6480777364c6c194652bf69ef2bb087c0805eddf$
// $hash=e4088be2354bf7a1151044c472b2a98e8130acb7$
//
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
@@ -23,6 +23,7 @@
#include "libcef_dll/ctocpp/views/display_ctocpp.h"
#include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h"
#include "libcef_dll/ctocpp/views/layout_ctocpp.h"
#include "libcef_dll/ctocpp/views/overlay_controller_ctocpp.h"
#include "libcef_dll/ctocpp/views/panel_ctocpp.h"
#include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
@@ -408,6 +409,31 @@ CefRefPtr<CefImage> CefWindowCToCpp::GetWindowAppIcon() {
return CefImageCToCpp::Wrap(_retval);
}
NO_SANITIZE("cfi-icall")
CefRefPtr<CefOverlayController> CefWindowCToCpp::AddOverlayView(
CefRefPtr<CefView> view,
cef_docking_mode_t docking_mode) {
shutdown_checker::AssertNotShutdown();
cef_window_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, add_overlay_view))
return nullptr;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_same
DCHECK(view.get());
if (!view.get())
return nullptr;
// Execute
cef_overlay_controller_t* _retval = _struct->add_overlay_view(
_struct, CefViewCToCpp::Unwrap(view), docking_mode);
// Return type: refptr_same
return CefOverlayControllerCToCpp::Wrap(_retval);
}
NO_SANITIZE("cfi-icall")
void CefWindowCToCpp::ShowMenu(CefRefPtr<CefMenuModel> menu_model,
const CefPoint& screen_point,
@@ -1229,6 +1255,36 @@ NO_SANITIZE("cfi-icall") CefPoint CefWindowCToCpp::GetPosition() {
return _retval;
}
NO_SANITIZE("cfi-icall")
void CefWindowCToCpp::SetInsets(const CefInsets& insets) {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, set_insets))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
_struct->set_insets(_struct, &insets);
}
NO_SANITIZE("cfi-icall") CefInsets CefWindowCToCpp::GetInsets() {
shutdown_checker::AssertNotShutdown();
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, get_insets))
return CefInsets();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_insets_t _retval = _struct->get_insets(_struct);
// Return type: simple
return _retval;
}
NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetPreferredSize() {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f2fbf4be1755ed8793c2d471d65eddbdf4ba148b$
// $hash=9f4b4ed83102b989f2f436e56d311b4dcb8abe54$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_CTOCPP_H_
@@ -58,6 +58,9 @@ class CefWindowCToCpp
CefRefPtr<CefImage> GetWindowIcon() override;
void SetWindowAppIcon(CefRefPtr<CefImage> image) override;
CefRefPtr<CefImage> GetWindowAppIcon() override;
CefRefPtr<CefOverlayController> AddOverlayView(
CefRefPtr<CefView> view,
cef_docking_mode_t docking_mode) override;
void ShowMenu(CefRefPtr<CefMenuModel> menu_model,
const CefPoint& screen_point,
cef_menu_anchor_position_t anchor_position) override;
@@ -121,6 +124,8 @@ class CefWindowCToCpp
CefSize GetSize() override;
void SetPosition(const CefPoint& position) override;
CefPoint GetPosition() override;
void SetInsets(const CefInsets& insets) override;
CefInsets GetInsets() override;
CefSize GetPreferredSize() override;
void SizeToPreferredSize() override;
CefSize GetMinimumSize() override;

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=dda345b957ac58c71770da1cf4813ce16ea568b8$
// $hash=1035cc694edfd110c5a64b042a6e7ca2e975003a$
//
#include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h"
@@ -457,6 +457,27 @@ void CefWindowDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
}
NO_SANITIZE("cfi-icall")
void CefWindowDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) {
shutdown_checker::AssertNotShutdown();
cef_view_delegate_t* _struct =
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: view; type: refptr_diff
DCHECK(view.get());
if (!view.get())
return;
// Execute
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
}
NO_SANITIZE("cfi-icall")
void CefWindowDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
shutdown_checker::AssertNotShutdown();

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4e5e470d6aa929b3b2d4286eb4bcdc90dba052dc$
// $hash=8a77494e63a8e06241f675c020532ac20fbaaab0$
//
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_DELEGATE_CTOCPP_H_
@@ -66,6 +66,8 @@ class CefWindowDelegateCToCpp
bool added,
CefRefPtr<CefView> child) override;
void OnWindowChanged(CefRefPtr<CefView> view, bool added) override;
void OnLayoutChanged(CefRefPtr<CefView> view,
const CefRect& new_bounds) override;
void OnFocus(CefRefPtr<CefView> view) override;
void OnBlur(CefRefPtr<CefView> view) override;
};

View File

@@ -9,12 +9,13 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=232cd54c28334b9a3d98ebfb5a291643f0a7db62$
// $hash=e55370b133d3c3b7e7c903557cae0cd04173ebd1$
//
#include "include/capi/cef_app_capi.h"
#include "include/capi/cef_crash_util_capi.h"
#include "include/capi/cef_file_util_capi.h"
#include "include/capi/cef_i18n_util_capi.h"
#include "include/capi/cef_origin_whitelist_capi.h"
#include "include/capi/cef_parser_capi.h"
#include "include/capi/cef_path_util_capi.h"
@@ -29,6 +30,7 @@
#include "include/cef_app.h"
#include "include/cef_crash_util.h"
#include "include/cef_file_util.h"
#include "include/cef_i18n_util.h"
#include "include/cef_origin_whitelist.h"
#include "include/cef_parser.h"
#include "include/cef_path_util.h"
@@ -329,6 +331,16 @@ CEF_EXPORT void cef_load_crlsets_file(const cef_string_t* path) {
CefLoadCRLSetsFile(CefString(path));
}
CEF_EXPORT int cef_is_rtl() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
bool _retval = CefIsRTL();
// Return type: bool
return _retval;
}
CEF_EXPORT int cef_add_cross_origin_whitelist_entry(
const cef_string_t* source_origin,
const cef_string_t* target_protocol,

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=01fb8dd98e44b937595c1e1f987f5e4850bff64d$
// $hash=e3347463db785cc5e6c0aa840dedcef116a11043$
//
#include <dlfcn.h>
@@ -23,6 +23,7 @@
#include "include/capi/cef_crash_util_capi.h"
#include "include/capi/cef_drag_data_capi.h"
#include "include/capi/cef_file_util_capi.h"
#include "include/capi/cef_i18n_util_capi.h"
#include "include/capi/cef_image_capi.h"
#include "include/capi/cef_media_router_capi.h"
#include "include/capi/cef_menu_model_capi.h"
@@ -115,6 +116,7 @@ typedef int (*cef_zip_directory_ptr)(const cef_string_t*,
const cef_string_t*,
int);
typedef void (*cef_load_crlsets_file_ptr)(const cef_string_t*);
typedef int (*cef_is_rtl_ptr)();
typedef int (*cef_add_cross_origin_whitelist_entry_ptr)(const cef_string_t*,
const cef_string_t*,
const cef_string_t*,
@@ -533,6 +535,7 @@ struct libcef_pointers {
cef_delete_file_ptr cef_delete_file;
cef_zip_directory_ptr cef_zip_directory;
cef_load_crlsets_file_ptr cef_load_crlsets_file;
cef_is_rtl_ptr cef_is_rtl;
cef_add_cross_origin_whitelist_entry_ptr cef_add_cross_origin_whitelist_entry;
cef_remove_cross_origin_whitelist_entry_ptr
cef_remove_cross_origin_whitelist_entry;
@@ -750,6 +753,7 @@ int libcef_init_pointers(const char* path) {
INIT_ENTRY(cef_delete_file);
INIT_ENTRY(cef_zip_directory);
INIT_ENTRY(cef_load_crlsets_file);
INIT_ENTRY(cef_is_rtl);
INIT_ENTRY(cef_add_cross_origin_whitelist_entry);
INIT_ENTRY(cef_remove_cross_origin_whitelist_entry);
INIT_ENTRY(cef_clear_cross_origin_whitelist);
@@ -1057,6 +1061,10 @@ NO_SANITIZE("cfi-icall") void cef_load_crlsets_file(const cef_string_t* path) {
g_libcef_pointers.cef_load_crlsets_file(path);
}
NO_SANITIZE("cfi-icall") int cef_is_rtl() {
return g_libcef_pointers.cef_is_rtl();
}
NO_SANITIZE("cfi-icall")
int cef_add_cross_origin_whitelist_entry(const cef_string_t* source_origin,
const cef_string_t* target_protocol,

View File

@@ -9,12 +9,13 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7fef7aaa85b96ed7c7fc82542cd393210e1d89ee$
// $hash=e71ff10558002c5a09d9348d2b128facd881b869$
//
#include "include/capi/cef_app_capi.h"
#include "include/capi/cef_crash_util_capi.h"
#include "include/capi/cef_file_util_capi.h"
#include "include/capi/cef_i18n_util_capi.h"
#include "include/capi/cef_origin_whitelist_capi.h"
#include "include/capi/cef_parser_capi.h"
#include "include/capi/cef_path_util_capi.h"
@@ -30,6 +31,7 @@
#include "include/cef_app.h"
#include "include/cef_crash_util.h"
#include "include/cef_file_util.h"
#include "include/cef_i18n_util.h"
#include "include/cef_origin_whitelist.h"
#include "include/cef_parser.h"
#include "include/cef_path_util.h"
@@ -309,6 +311,16 @@ CEF_GLOBAL void CefLoadCRLSetsFile(const CefString& path) {
cef_load_crlsets_file(path.GetStruct());
}
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefIsRTL() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
int _retval = cef_is_rtl();
// Return type: bool
return _retval ? true : false;
}
NO_SANITIZE("cfi-icall")
CEF_GLOBAL
bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin,

View File

@@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=abd4c6d471c9ff3d7113b6125a6cfb2a26d58304$
// $hash=e09286ac977f5f06cf356eb8a5e04b48b0836523$
//
#ifndef CEF_LIBCEF_DLL_WRAPPER_TYPES_H_
@@ -90,6 +90,7 @@ enum CefWrapperType {
WT_MENU_MODEL_DELEGATE,
WT_NAVIGATION_ENTRY,
WT_NAVIGATION_ENTRY_VISITOR,
WT_OVERLAY_CONTROLLER,
WT_PANEL,
WT_PANEL_DELEGATE,
WT_PDF_PRINT_CALLBACK,