2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2012-04-03 03:34:16 +02: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-06-26 02:12:37 +02:00
|
|
|
// $hash=dac19ba091b3acf3e1587b176e28bc9f9c8c8dd0$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/ctocpp/browser_host_ctocpp.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/client_cpptoc.h"
|
2020-06-13 02:54:08 +02:00
|
|
|
#include "libcef_dll/cpptoc/dev_tools_message_observer_cpptoc.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/cpptoc/download_image_callback_cpptoc.h"
|
2014-11-24 20:23:26 +01:00
|
|
|
#include "libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.h"
|
2015-03-24 16:40:08 +01:00
|
|
|
#include "libcef_dll/cpptoc/pdf_print_callback_cpptoc.h"
|
2012-10-16 21:28:07 +02:00
|
|
|
#include "libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
2019-03-19 10:42:54 +01:00
|
|
|
#include "libcef_dll/ctocpp/dictionary_value_ctocpp.h"
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/ctocpp/navigation_entry_ctocpp.h"
|
2020-06-13 02:54:08 +02:00
|
|
|
#include "libcef_dll/ctocpp/registration_ctocpp.h"
|
2013-09-03 18:43:31 +02:00
|
|
|
#include "libcef_dll/ctocpp/request_context_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2012-10-16 21:28:07 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
bool CefBrowserHost::CreateBrowser(
|
|
|
|
const CefWindowInfo& windowInfo,
|
|
|
|
CefRefPtr<CefClient> client,
|
|
|
|
const CefString& url,
|
2013-09-03 18:43:31 +02:00
|
|
|
const CefBrowserSettings& settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefRefPtr<CefDictionaryValue> extra_info,
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRefPtr<CefRequestContext> request_context) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2019-03-19 10:42:54 +01:00
|
|
|
// Unverified params: client, url, extra_info, request_context
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_browser_host_create_browser(
|
2017-05-17 11:29:28 +02:00
|
|
|
&windowInfo, CefClientCppToC::Wrap(client), url.GetStruct(), &settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefDictionaryValueCToCpp::Unwrap(extra_info),
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRequestContextCToCpp::Unwrap(request_context));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefWindowInfo& windowInfo,
|
|
|
|
CefRefPtr<CefClient> client,
|
|
|
|
const CefString& url,
|
|
|
|
const CefBrowserSettings& settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefRefPtr<CefDictionaryValue> extra_info,
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRefPtr<CefRequestContext> request_context) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2019-03-19 10:42:54 +01:00
|
|
|
// Unverified params: client, url, extra_info, request_context
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_browser_t* _retval = cef_browser_host_create_browser_sync(
|
2017-05-17 11:29:28 +02:00
|
|
|
&windowInfo, CefClientCppToC::Wrap(client), url.GetStruct(), &settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefDictionaryValueCToCpp::Unwrap(extra_info),
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRequestContextCToCpp::Unwrap(request_context));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefBrowser> CefBrowserHostCToCpp::GetBrowser() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_browser)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_t* _retval = _struct->get_browser(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-03-19 23:59:33 +01:00
|
|
|
void CefBrowserHostCToCpp::CloseBrowser(bool force_close) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, close_browser)) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->close_browser(_struct, force_close);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::TryCloseBrowser() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, try_close_browser)) {
|
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
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->try_close_browser(_struct);
|
|
|
|
|
|
|
|
// 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") void CefBrowserHostCToCpp::SetFocus(bool focus) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_focus)) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_focus(_struct, focus);
|
2014-06-06 21:04:21 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CefWindowHandle CefBrowserHostCToCpp::GetWindowHandle() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_window_handle)) {
|
2014-05-22 23:01:22 +02:00
|
|
|
return kNullWindowHandle;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_window_handle_t _retval = _struct->get_window_handle(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_opener_window_handle)) {
|
2014-05-22 23:01:22 +02:00
|
|
|
return kNullWindowHandle;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_window_handle_t _retval = _struct->get_opener_window_handle(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasView() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_view)) {
|
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
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->has_view(_struct);
|
|
|
|
|
|
|
|
// 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")
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefClient> CefBrowserHostCToCpp::GetClient() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_client)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_client_t* _retval = _struct->get_client(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefClientCppToC::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRefPtr<CefRequestContext> CefBrowserHostCToCpp::GetRequestContext() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_request_context)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-09-03 18:43:31 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_request_context_t* _retval = _struct->get_request_context(_struct);
|
2013-09-03 18:43:31 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefRequestContextCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2023-10-05 01:46:45 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
bool CefBrowserHostCToCpp::CanZoom(cef_zoom_command_t command) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, can_zoom)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->can_zoom(_struct, command);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserHostCToCpp::Zoom(cef_zoom_command_t command) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, zoom)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->zoom(_struct, command);
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall") double CefBrowserHostCToCpp::GetDefaultZoomLevel() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_default_zoom_level)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = _struct->get_default_zoom_level(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") double CefBrowserHostCToCpp::GetZoomLevel() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_zoom_level)) {
|
2012-06-12 21:50:24 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-12 21:50:24 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
double _retval = _struct->get_zoom_level(_struct);
|
2012-06-12 21:50:24 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-06-12 21:50:24 +02:00
|
|
|
void CefBrowserHostCToCpp::SetZoomLevel(double zoomLevel) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_zoom_level)) {
|
2012-06-12 21:50:24 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-12 21:50:24 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_zoom_level(_struct, zoomLevel);
|
2012-06-12 21:50:24 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserHostCToCpp::RunFileDialog(
|
|
|
|
FileDialogMode mode,
|
|
|
|
const CefString& title,
|
|
|
|
const CefString& default_file_path,
|
|
|
|
const std::vector<CefString>& accept_filters,
|
2012-10-16 21:28:07 +02:00
|
|
|
CefRefPtr<CefRunFileDialogCallback> callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, run_file_dialog)) {
|
2012-10-16 21:28:07 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-10-16 21:28:07 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: callback; type: refptr_diff
|
|
|
|
DCHECK(callback.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!callback.get()) {
|
2012-10-16 21:28:07 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-01-20 19:24:54 +01:00
|
|
|
// Unverified params: title, default_file_path, accept_filters
|
2012-10-16 21:28:07 +02:00
|
|
|
|
2015-01-20 19:24:54 +01:00
|
|
|
// Translate param: accept_filters; type: string_vec_byref_const
|
|
|
|
cef_string_list_t accept_filtersList = cef_string_list_alloc();
|
|
|
|
DCHECK(accept_filtersList);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (accept_filtersList) {
|
2015-01-20 19:24:54 +01:00
|
|
|
transfer_string_list_contents(accept_filters, accept_filtersList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-10-16 21:28:07 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->run_file_dialog(_struct, mode, title.GetStruct(),
|
|
|
|
default_file_path.GetStruct(), accept_filtersList,
|
|
|
|
CefRunFileDialogCallbackCppToC::Wrap(callback));
|
2012-10-16 21:28:07 +02:00
|
|
|
|
2015-01-20 19:24:54 +01:00
|
|
|
// Restore param:accept_filters; type: string_vec_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (accept_filtersList) {
|
2015-01-20 19:24:54 +01:00
|
|
|
cef_string_list_free(accept_filtersList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-10-16 21:28:07 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-02-13 23:47:04 +01:00
|
|
|
void CefBrowserHostCToCpp::StartDownload(const CefString& url) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, start_download)) {
|
2013-02-13 23:47:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-02-13 23:47:04 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (url.empty()) {
|
2013-02-13 23:47:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-02-13 23:47:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->start_download(_struct, url.GetStruct());
|
2013-02-13 23:47:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserHostCToCpp::DownloadImage(
|
|
|
|
const CefString& image_url,
|
|
|
|
bool is_favicon,
|
2023-06-01 16:07:20 +02:00
|
|
|
uint32_t max_image_size,
|
2017-05-17 11:29:28 +02:00
|
|
|
bool bypass_cache,
|
2016-01-19 21:09:01 +01:00
|
|
|
CefRefPtr<CefDownloadImageCallback> callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, download_image)) {
|
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: image_url; type: string_byref_const
|
|
|
|
DCHECK(!image_url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (image_url.empty()) {
|
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: callback; type: refptr_diff
|
|
|
|
DCHECK(callback.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!callback.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->download_image(_struct, image_url.GetStruct(), is_favicon,
|
|
|
|
max_image_size, bypass_cache,
|
|
|
|
CefDownloadImageCallbackCppToC::Wrap(callback));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Print() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, print)) {
|
2013-10-23 21:30:47 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-10-23 21:30:47 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->print(_struct);
|
2013-10-23 21:30:47 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-03-24 16:40:08 +01:00
|
|
|
void CefBrowserHostCToCpp::PrintToPDF(const CefString& path,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefPdfPrintSettings& settings,
|
|
|
|
CefRefPtr<CefPdfPrintCallback> callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-03-24 16:40:08 +01:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, print_to_pdf)) {
|
2015-03-24 16:40:08 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(!path.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (path.empty()) {
|
2015-03-24 16:40:08 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-03-24 16:40:08 +01:00
|
|
|
// Unverified params: callback
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->print_to_pdf(_struct, path.GetStruct(), &settings,
|
|
|
|
CefPdfPrintCallbackCppToC::Wrap(callback));
|
2015-03-24 16:40:08 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-02-17 19:17:29 +01:00
|
|
|
void CefBrowserHostCToCpp::Find(const CefString& searchText,
|
2017-05-17 11:29:28 +02:00
|
|
|
bool forward,
|
|
|
|
bool matchCase,
|
|
|
|
bool findNext) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, find)) {
|
2013-10-24 00:44:12 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-10-24 00:44:12 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: searchText; type: string_byref_const
|
|
|
|
DCHECK(!searchText.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (searchText.empty()) {
|
2013-10-24 00:44:12 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-10-24 00:44:12 +02:00
|
|
|
|
|
|
|
// Execute
|
2022-02-17 19:17:29 +01:00
|
|
|
_struct->find(_struct, searchText.GetStruct(), forward, matchCase, findNext);
|
2013-10-24 00:44:12 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-10-24 00:44:12 +02:00
|
|
|
void CefBrowserHostCToCpp::StopFinding(bool clearSelection) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, stop_finding)) {
|
2013-10-24 00:44:12 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-10-24 00:44:12 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->stop_finding(_struct, clearSelection);
|
2013-10-24 00:44:12 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-11-08 17:06:06 +01:00
|
|
|
void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefClient> client,
|
|
|
|
const CefBrowserSettings& settings,
|
|
|
|
const CefPoint& inspect_element_at) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, show_dev_tools)) {
|
2013-11-08 17:06:06 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-11-08 17:06:06 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2016-06-10 20:33:07 +02:00
|
|
|
// Unverified params: windowInfo, client, settings, inspect_element_at
|
2013-11-08 17:06:06 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->show_dev_tools(_struct, &windowInfo, CefClientCppToC::Wrap(client),
|
|
|
|
&settings, &inspect_element_at);
|
2013-11-08 17:06:06 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseDevTools() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, close_dev_tools)) {
|
2013-11-08 17:06:06 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-11-08 17:06:06 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->close_dev_tools(_struct);
|
2013-11-08 17:06:06 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasDevTools() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-06-10 20:33:07 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_dev_tools)) {
|
2016-06-10 20:33:07 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-06-10 20:33:07 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->has_dev_tools(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-06-10 20:33:07 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2020-06-13 02:54:08 +02:00
|
|
|
bool CefBrowserHostCToCpp::SendDevToolsMessage(const void* message,
|
|
|
|
size_t message_size) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_dev_tools_message)) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: message; type: simple_byaddr
|
|
|
|
DCHECK(message);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!message) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->send_dev_tools_message(_struct, message, message_size);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
int CefBrowserHostCToCpp::ExecuteDevToolsMethod(
|
|
|
|
int message_id,
|
|
|
|
const CefString& method,
|
|
|
|
CefRefPtr<CefDictionaryValue> params) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, execute_dev_tools_method)) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: method; type: string_byref_const
|
|
|
|
DCHECK(!method.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (method.empty()) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
// Unverified params: params
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->execute_dev_tools_method(
|
|
|
|
_struct, message_id, method.GetStruct(),
|
|
|
|
CefDictionaryValueCToCpp::Unwrap(params));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CefRefPtr<CefRegistration> CefBrowserHostCToCpp::AddDevToolsMessageObserver(
|
|
|
|
CefRefPtr<CefDevToolsMessageObserver> observer) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, add_dev_tools_message_observer)) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: observer; type: refptr_diff
|
|
|
|
DCHECK(observer.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!observer.get()) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_registration_t* _retval = _struct->add_dev_tools_message_observer(
|
|
|
|
_struct, CefDevToolsMessageObserverCppToC::Wrap(observer));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefRegistrationCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-11-24 20:23:26 +01:00
|
|
|
void CefBrowserHostCToCpp::GetNavigationEntries(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefNavigationEntryVisitor> visitor,
|
|
|
|
bool current_only) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_navigation_entries)) {
|
2014-11-24 20:23:26 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!visitor.get()) {
|
2014-11-24 20:23:26 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_navigation_entries(
|
|
|
|
_struct, CefNavigationEntryVisitorCppToC::Wrap(visitor), current_only);
|
2014-11-24 20:23:26 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-10-07 22:44:33 +02:00
|
|
|
void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, replace_misspelling)) {
|
2014-10-07 22:44:33 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-07 22:44:33 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(!word.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (word.empty()) {
|
2014-10-07 22:44:33 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-07 22:44:33 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->replace_misspelling(_struct, word.GetStruct());
|
2014-10-07 22:44:33 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-10-19 03:47:27 +02:00
|
|
|
void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, add_word_to_dictionary)) {
|
2014-10-19 03:47:27 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-19 03:47:27 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(!word.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (word.empty()) {
|
2014-10-19 03:47:27 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-19 03:47:27 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->add_word_to_dictionary(_struct, word.GetStruct());
|
2014-10-19 03:47:27 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_window_rendering_disabled)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_window_rendering_disabled(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasResized() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, was_resized)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->was_resized(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasHidden(bool hidden) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, was_hidden)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->was_hidden(_struct, hidden);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyScreenInfoChanged() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, notify_screen_info_changed)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->notify_screen_info_changed(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
void CefBrowserHostCToCpp::Invalidate(PaintElementType type) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, invalidate)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->invalidate(_struct, type);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-03 02:46:03 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendExternalBeginFrame() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2018-07-03 02:46:03 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_external_begin_frame)) {
|
2018-07-03 02:46:03 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-07-03 02:46:03 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->send_external_begin_frame(_struct);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-11-21 01:40:15 +01:00
|
|
|
void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent& event) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_key_event)) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->send_key_event(_struct, &event);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event,
|
2017-05-17 11:29:28 +02:00
|
|
|
MouseButtonType type,
|
|
|
|
bool mouseUp,
|
|
|
|
int clickCount) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_click_event)) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->send_mouse_click_event(_struct, &event, type, mouseUp, clickCount);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent& event,
|
2017-05-17 11:29:28 +02:00
|
|
|
bool mouseLeave) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_move_event)) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->send_mouse_move_event(_struct, &event, mouseLeave);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event,
|
2017-05-17 11:29:28 +02:00
|
|
|
int deltaX,
|
|
|
|
int deltaY) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_wheel_event)) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->send_mouse_wheel_event(_struct, &event, deltaX, deltaY);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2019-02-25 22:17:28 +01:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserHostCToCpp::SendTouchEvent(const CefTouchEvent& event) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_touch_event)) {
|
2019-02-25 22:17:28 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-02-25 22:17:28 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->send_touch_event(_struct, &event);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendCaptureLostEvent() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_capture_lost_event)) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_capture_lost_event(_struct);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-10-29 19:14:47 +01:00
|
|
|
void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, notify_move_or_resize_started)) {
|
2014-10-29 19:14:47 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-29 19:14:47 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->notify_move_or_resize_started(_struct);
|
2014-10-29 19:14:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::GetWindowlessFrameRate() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-05-13 17:43:50 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_windowless_frame_rate)) {
|
2015-05-13 17:43:50 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-05-13 17:43:50 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->get_windowless_frame_rate(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-05-13 17:43:50 +02:00
|
|
|
void CefBrowserHostCToCpp::SetWindowlessFrameRate(int frame_rate) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-05-13 17:43:50 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_windowless_frame_rate)) {
|
2015-05-13 17:43:50 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-05-13 17:43:50 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_windowless_frame_rate(_struct, frame_rate);
|
2015-05-13 17:43:50 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeSetComposition(
|
|
|
|
const CefString& text,
|
2016-10-28 18:11:24 +02:00
|
|
|
const std::vector<CefCompositionUnderline>& underlines,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefRange& replacement_range,
|
|
|
|
const CefRange& selection_range) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_set_composition)) {
|
2016-10-28 18:11:24 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
// Unverified params: text, underlines
|
|
|
|
|
|
|
|
// Translate param: underlines; type: simple_vec_byref_const
|
|
|
|
const size_t underlinesCount = underlines.size();
|
|
|
|
cef_composition_underline_t* underlinesList = NULL;
|
|
|
|
if (underlinesCount > 0) {
|
|
|
|
underlinesList = new cef_composition_underline_t[underlinesCount];
|
|
|
|
DCHECK(underlinesList);
|
|
|
|
if (underlinesList) {
|
|
|
|
for (size_t i = 0; i < underlinesCount; ++i) {
|
|
|
|
underlinesList[i] = underlines[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->ime_set_composition(_struct, text.GetStruct(), underlinesCount,
|
|
|
|
underlinesList, &replacement_range,
|
|
|
|
&selection_range);
|
2014-07-01 00:30:29 +02:00
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
// Restore param:underlines; type: simple_vec_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (underlinesList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] underlinesList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-10-28 18:11:24 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-10-28 18:11:24 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeCommitText(const CefString& text,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefRange& replacement_range,
|
|
|
|
int relative_cursor_pos) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_commit_text)) {
|
2016-10-28 18:11:24 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-10-28 18:11:24 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: text
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->ime_commit_text(_struct, text.GetStruct(), &replacement_range,
|
|
|
|
relative_cursor_pos);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-10-28 18:11:24 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_finish_composing_text)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->ime_finish_composing_text(_struct, keep_selection);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeCancelComposition() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_cancel_composition)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2016-10-28 18:11:24 +02:00
|
|
|
_struct->ime_cancel_composition(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr<CefDragData> drag_data,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefMouseEvent& event,
|
|
|
|
DragOperationsMask allowed_ops) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_enter)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: drag_data; type: refptr_same
|
|
|
|
DCHECK(drag_data.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!drag_data.get()) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->drag_target_drag_enter(_struct, CefDragDataCToCpp::Unwrap(drag_data),
|
|
|
|
&event, allowed_ops);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event,
|
2017-05-17 11:29:28 +02:00
|
|
|
DragOperationsMask allowed_ops) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_over)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->drag_target_drag_over(_struct, &event, allowed_ops);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragLeave() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_leave)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_target_drag_leave(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent& event) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drop)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->drag_target_drop(_struct, &event);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserHostCToCpp::DragSourceEndedAt(int x,
|
|
|
|
int y,
|
|
|
|
DragOperationsMask op) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_source_ended_at)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->drag_source_ended_at(_struct, x, y, op);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-07-01 00:30:29 +02:00
|
|
|
void CefBrowserHostCToCpp::DragSourceSystemDragEnded() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_source_system_drag_ended)) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_source_system_drag_ended(_struct);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2024-06-26 02:12:37 +02:00
|
|
|
CefRefPtr<
|
|
|
|
CefNavigationEntry> CefBrowserHostCToCpp::GetVisibleNavigationEntry() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_visible_navigation_entry)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_navigation_entry_t* _retval =
|
|
|
|
_struct->get_visible_navigation_entry(_struct);
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefNavigationEntryCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-12 20:28:25 +02:00
|
|
|
void CefBrowserHostCToCpp::SetAccessibilityState(
|
|
|
|
cef_state_t accessibility_state) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-12 20:28:25 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_accessibility_state)) {
|
2017-05-12 20:28:25 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-12 20:28:25 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_accessibility_state(_struct, accessibility_state);
|
2017-05-12 20:28:25 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-08-04 00:55:19 +02:00
|
|
|
void CefBrowserHostCToCpp::SetAutoResizeEnabled(bool enabled,
|
|
|
|
const CefSize& min_size,
|
|
|
|
const CefSize& max_size) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_auto_resize_enabled)) {
|
2017-08-04 00:55:19 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-08-04 00:55:19 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->set_auto_resize_enabled(_struct, enabled, &min_size, &max_size);
|
|
|
|
}
|
|
|
|
|
2019-02-26 17:44:17 +01:00
|
|
|
NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAudioMuted(bool mute) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_audio_muted)) {
|
2019-02-26 17:44:17 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-02-26 17:44:17 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->set_audio_muted(_struct, mute);
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsAudioMuted() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_audio_muted)) {
|
2019-02-26 17:44:17 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-02-26 17:44:17 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_audio_muted(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2023-11-07 22:40:29 +01:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsFullscreen() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_fullscreen)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_fullscreen(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserHostCToCpp::ExitFullscreen(bool will_cause_resize) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, exit_fullscreen)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->exit_fullscreen(_struct, will_cause_resize);
|
|
|
|
}
|
|
|
|
|
2023-11-14 18:16:43 +01:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
bool CefBrowserHostCToCpp::CanExecuteChromeCommand(int command_id) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, can_execute_chrome_command)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->can_execute_chrome_command(_struct, command_id);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
void CefBrowserHostCToCpp::ExecuteChromeCommand(
|
|
|
|
int command_id,
|
|
|
|
cef_window_open_disposition_t disposition) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, execute_chrome_command)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->execute_chrome_command(_struct, command_id, disposition);
|
|
|
|
}
|
|
|
|
|
2024-03-12 20:47:10 +01:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
bool CefBrowserHostCToCpp::IsRenderProcessUnresponsive() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_render_process_unresponsive)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_render_process_unresponsive(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
cef_runtime_style_t CefBrowserHostCToCpp::GetRuntimeStyle() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
cef_browser_host_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_runtime_style)) {
|
|
|
|
return CEF_RUNTIME_STYLE_DEFAULT;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_runtime_style_t _retval = _struct->get_runtime_style(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCToCpp::CefBrowserHostCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefBrowserHostCToCpp::~CefBrowserHostCToCpp() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_browser_host_t*
|
|
|
|
CefCToCppRefCounted<CefBrowserHostCToCpp, CefBrowserHost, cef_browser_host_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, CefBrowserHost* 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;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefBrowserHostCToCpp,
|
|
|
|
CefBrowserHost,
|
|
|
|
cef_browser_host_t>::kWrapperType =
|
|
|
|
WT_BROWSER_HOST;
|