2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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.
|
|
|
|
//
|
2024-03-23 00:51:00 +01:00
|
|
|
// $hash=bf57f469c4dc266377346d8874406c437b682112$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/client_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnBrowserCreated(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBrowserView> browser_view,
|
|
|
|
CefRefPtr<CefBrowser> browser) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_browser_created)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser_view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: browser; type: refptr_diff
|
|
|
|
DCHECK(browser.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->on_browser_created(_struct, CefBrowserViewCppToC::Wrap(browser_view),
|
|
|
|
CefBrowserCppToC::Wrap(browser));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnBrowserDestroyed(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBrowserView> browser_view,
|
|
|
|
CefRefPtr<CefBrowser> browser) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_browser_destroyed)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser_view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: browser; type: refptr_diff
|
|
|
|
DCHECK(browser.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->on_browser_destroyed(_struct,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserViewCppToC::Wrap(browser_view),
|
|
|
|
CefBrowserCppToC::Wrap(browser));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2021-04-11 22:10:11 +02:00
|
|
|
CefRefPtr<CefBrowserViewDelegate>
|
|
|
|
CefBrowserViewDelegateCToCpp::GetDelegateForPopupBrowserView(
|
|
|
|
CefRefPtr<CefBrowserView> browser_view,
|
|
|
|
const CefBrowserSettings& settings,
|
|
|
|
CefRefPtr<CefClient> client,
|
|
|
|
bool is_devtools) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_delegate_for_popup_browser_view)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser_view.get()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2023-02-09 19:15:15 +01:00
|
|
|
// Unverified params: client
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_browser_view_delegate_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_delegate_for_popup_browser_view(
|
|
|
|
_struct, CefBrowserViewCppToC::Wrap(browser_view), &settings,
|
|
|
|
CefClientCToCpp::Unwrap(client), is_devtools);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserViewDelegateCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
bool CefBrowserViewDelegateCToCpp::OnPopupBrowserViewCreated(
|
|
|
|
CefRefPtr<CefBrowserView> browser_view,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBrowserView> popup_browser_view,
|
|
|
|
bool is_devtools) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_popup_browser_view_created)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!browser_view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: popup_browser_view; type: refptr_diff
|
|
|
|
DCHECK(popup_browser_view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!popup_browser_view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->on_popup_browser_view_created(
|
|
|
|
_struct, CefBrowserViewCppToC::Wrap(browser_view),
|
|
|
|
CefBrowserViewCppToC::Wrap(popup_browser_view), is_devtools);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2021-04-11 22:10:11 +02:00
|
|
|
CefBrowserViewDelegate::ChromeToolbarType
|
2023-09-07 19:28:27 +02:00
|
|
|
CefBrowserViewDelegateCToCpp::GetChromeToolbarType(
|
|
|
|
CefRefPtr<CefBrowserView> browser_view) {
|
2021-04-11 22:10:11 +02:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_chrome_toolbar_type)) {
|
2021-04-11 22:10:11 +02:00
|
|
|
return CEF_CTT_NONE;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-04-11 22:10:11 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2023-09-07 19:28:27 +02:00
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
|
|
|
if (!browser_view.get()) {
|
|
|
|
return CEF_CTT_NONE;
|
|
|
|
}
|
|
|
|
|
2021-04-11 22:10:11 +02:00
|
|
|
// Execute
|
2023-09-07 19:28:27 +02:00
|
|
|
cef_chrome_toolbar_type_t _retval = _struct->get_chrome_toolbar_type(
|
|
|
|
_struct, CefBrowserViewCppToC::Wrap(browser_view));
|
2021-04-11 22:10:11 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-09-07 19:28:27 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
bool CefBrowserViewDelegateCToCpp::UseFramelessWindowForPictureInPicture(
|
|
|
|
CefRefPtr<CefBrowserView> browser_view) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct,
|
|
|
|
use_frameless_window_for_picture_in_picture)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
|
|
|
if (!browser_view.get()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->use_frameless_window_for_picture_in_picture(
|
|
|
|
_struct, CefBrowserViewCppToC::Wrap(browser_view));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2023-05-26 11:05:33 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
bool CefBrowserViewDelegateCToCpp::OnGestureCommand(
|
|
|
|
CefRefPtr<CefBrowserView> browser_view,
|
|
|
|
cef_gesture_command_t gesture_command) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_view_delegate_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_gesture_command)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: browser_view; type: refptr_diff
|
|
|
|
DCHECK(browser_view.get());
|
|
|
|
if (!browser_view.get()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->on_gesture_command(
|
|
|
|
_struct, CefBrowserViewCppToC::Wrap(browser_view), gesture_command);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2021-04-11 22:10:11 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CefSize CefBrowserViewDelegateCToCpp::GetPreferredSize(
|
|
|
|
CefRefPtr<CefView> view) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
_struct->get_preferred_size(_struct, CefViewCppToC::Wrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
CefSize CefBrowserViewDelegateCToCpp::GetMinimumSize(CefRefPtr<CefView> view) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
_struct->get_minimum_size(_struct, CefViewCppToC::Wrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
CefSize CefBrowserViewDelegateCToCpp::GetMaximumSize(CefRefPtr<CefView> view) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
_struct->get_maximum_size(_struct, CefViewCppToC::Wrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-01-19 21:09:01 +01:00
|
|
|
int CefBrowserViewDelegateCToCpp::GetHeightForWidth(CefRefPtr<CefView> view,
|
2017-05-17 11:29:28 +02:00
|
|
|
int width) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
_struct->get_height_for_width(_struct, CefViewCppToC::Wrap(view), width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnParentViewChanged(
|
|
|
|
CefRefPtr<CefView> view,
|
|
|
|
bool added,
|
|
|
|
CefRefPtr<CefView> parent) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: parent; type: refptr_diff
|
|
|
|
DCHECK(parent.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!parent.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->on_parent_view_changed(_struct, CefViewCppToC::Wrap(view), added,
|
|
|
|
CefViewCppToC::Wrap(parent));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnChildViewChanged(
|
|
|
|
CefRefPtr<CefView> view,
|
|
|
|
bool added,
|
|
|
|
CefRefPtr<CefView> child) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: child; type: refptr_diff
|
|
|
|
DCHECK(child.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!child.get()) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->on_child_view_changed(_struct, CefViewCppToC::Wrap(view), added,
|
|
|
|
CefViewCppToC::Wrap(child));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2021-04-11 22:10:11 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserViewDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
|
|
|
|
bool added) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_window_changed)) {
|
2021-04-11 22:10:11 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-04-11 22:10:11 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2021-04-11 22:10:11 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-04-11 22:10:11 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
|
|
|
|
}
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
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());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_layout_changed)) {
|
2021-08-28 03:55:15 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-08-28 03:55:15 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2021-08-28 03:55:15 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-08-28 03:55:15 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-18 03:08:51 +01:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_focus)) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->on_focus(_struct, CefViewCppToC::Wrap(view));
|
2017-02-18 03:08:51 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-18 03:08:51 +01:00
|
|
|
void CefBrowserViewDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_blur)) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_diff
|
|
|
|
DCHECK(view.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view.get()) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->on_blur(_struct, CefViewCppToC::Wrap(view));
|
2017-02-18 03:08:51 +01:00
|
|
|
}
|
|
|
|
|
2024-03-23 00:51:00 +01:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserViewDelegateCToCpp::OnThemeChanged(CefRefPtr<CefView> view) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_view_delegate_t* _struct =
|
|
|
|
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, on_theme_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_theme_changed(_struct, CefViewCppToC::Wrap(view));
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserViewDelegateCToCpp::CefBrowserViewDelegateCToCpp() {}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefBrowserViewDelegateCToCpp::~CefBrowserViewDelegateCToCpp() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_browser_view_delegate_t* CefCToCppRefCounted<
|
|
|
|
CefBrowserViewDelegateCToCpp,
|
|
|
|
CefBrowserViewDelegate,
|
|
|
|
cef_browser_view_delegate_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefBrowserViewDelegate* c) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefBrowserViewDelegateCToCpp,
|
|
|
|
CefBrowserViewDelegate,
|
|
|
|
cef_browser_view_delegate_t>::kWrapperType =
|
2016-01-19 21:09:01 +01:00
|
|
|
WT_BROWSER_VIEW_DELEGATE;
|