mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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 =
|
||||
|
@ -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;
|
||||
}
|
||||
|
416
libcef_dll/cpptoc/views/overlay_controller_cpptoc.cc
Normal file
416
libcef_dll/cpptoc/views/overlay_controller_cpptoc.cc
Normal 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;
|
42
libcef_dll/cpptoc/views/overlay_controller_cpptoc.h
Normal file
42
libcef_dll/cpptoc/views/overlay_controller_cpptoc.h
Normal 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_
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user