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=434a753c90262b051077f7a79f3106ac52ffbf75$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
2019-03-19 10:42:54 +01:00
|
|
|
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "libcef_dll/cpptoc/drag_data_cpptoc.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
2020-06-13 02:54:08 +02:00
|
|
|
#include "libcef_dll/cpptoc/registration_cpptoc.h"
|
2013-09-03 18:43:31 +02:00
|
|
|
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/client_ctocpp.h"
|
2020-06-13 02:54:08 +02:00
|
|
|
#include "libcef_dll/ctocpp/dev_tools_message_observer_ctocpp.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/ctocpp/download_image_callback_ctocpp.h"
|
2014-11-24 20:23:26 +01:00
|
|
|
#include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h"
|
2015-03-24 16:40:08 +01:00
|
|
|
#include "libcef_dll/ctocpp/pdf_print_callback_ctocpp.h"
|
2012-10-16 21:28:07 +02:00
|
|
|
#include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2022-01-27 18:10:29 +01:00
|
|
|
#include "libcef_dll/template_util.h"
|
2012-10-16 21:28:07 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT int cef_browser_host_create_browser(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_window_info_t* windowInfo,
|
|
|
|
struct _cef_client_t* client,
|
|
|
|
const cef_string_t* url,
|
|
|
|
const struct _cef_browser_settings_t* settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
struct _cef_dictionary_value_t* extra_info,
|
2013-09-03 18:43:31 +02:00
|
|
|
struct _cef_request_context_t* 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
|
|
|
|
|
|
|
|
// Verify param: windowInfo; type: struct_byref_const
|
|
|
|
DCHECK(windowInfo);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!windowInfo) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(windowInfo)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid windowInfo->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: settings; type: struct_byref_const
|
|
|
|
DCHECK(settings);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(settings)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid settings->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2019-03-19 10:42:54 +01:00
|
|
|
// Unverified params: client, url, extra_info, request_context
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Translate param: windowInfo; type: struct_byref_const
|
|
|
|
CefWindowInfo windowInfoObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (windowInfo) {
|
2012-04-03 03:34:16 +02:00
|
|
|
windowInfoObj.Set(*windowInfo, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Translate param: settings; type: struct_byref_const
|
|
|
|
CefBrowserSettings settingsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
settingsObj.Set(*settings, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHost::CreateBrowser(
|
2017-05-17 11:29:28 +02:00
|
|
|
windowInfoObj, CefClientCToCpp::Wrap(client), CefString(url), settingsObj,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefDictionaryValueCppToC::Unwrap(extra_info),
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRequestContextCppToC::Unwrap(request_context));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync(
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_window_info_t* windowInfo,
|
|
|
|
struct _cef_client_t* client,
|
|
|
|
const cef_string_t* url,
|
|
|
|
const struct _cef_browser_settings_t* settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
struct _cef_dictionary_value_t* extra_info,
|
2013-09-03 18:43:31 +02:00
|
|
|
struct _cef_request_context_t* 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
|
|
|
|
|
|
|
|
// Verify param: windowInfo; type: struct_byref_const
|
|
|
|
DCHECK(windowInfo);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!windowInfo) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(windowInfo)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid windowInfo->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return NULL;
|
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: settings; type: struct_byref_const
|
|
|
|
DCHECK(settings);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(settings)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid settings->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return NULL;
|
|
|
|
}
|
2019-03-19 10:42:54 +01:00
|
|
|
// Unverified params: client, url, extra_info, request_context
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Translate param: windowInfo; type: struct_byref_const
|
|
|
|
CefWindowInfo windowInfoObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (windowInfo) {
|
2012-04-03 03:34:16 +02:00
|
|
|
windowInfoObj.Set(*windowInfo, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Translate param: settings; type: struct_byref_const
|
|
|
|
CefBrowserSettings settingsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (settings) {
|
2012-04-03 03:34:16 +02:00
|
|
|
settingsObj.Set(*settings, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBrowser> _retval = CefBrowserHost::CreateBrowserSync(
|
2017-05-17 11:29:28 +02:00
|
|
|
windowInfoObj, CefClientCToCpp::Wrap(client), CefString(url), settingsObj,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefDictionaryValueCppToC::Unwrap(extra_info),
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRequestContextCppToC::Unwrap(request_context));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_browser_t* CEF_CALLBACK
|
|
|
|
browser_host_get_browser(struct _cef_browser_host_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBrowser> _retval = CefBrowserHostCppToC::Get(self)->GetBrowser();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2013-03-19 23:59:33 +01:00
|
|
|
void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int force_close) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->CloseBrowser(force_close ? true : false);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_try_close_browser(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->TryCloseBrowser();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int focus) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SetFocus(focus ? true : false);
|
2014-06-06 21:04:21 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_window_handle_t CEF_CALLBACK
|
|
|
|
browser_host_get_window_handle(struct _cef_browser_host_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_window_handle_t _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetWindowHandle();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_window_handle_t CEF_CALLBACK
|
|
|
|
browser_host_get_opener_window_handle(struct _cef_browser_host_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_window_handle_t _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetOpenerWindowHandle();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->HasView();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_client_t* CEF_CALLBACK
|
|
|
|
browser_host_get_client(struct _cef_browser_host_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefClient> _retval = CefBrowserHostCppToC::Get(self)->GetClient();
|
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefClientCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_request_context_t* CEF_CALLBACK
|
|
|
|
browser_host_get_request_context(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-09-03 18:43:31 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2013-09-03 18:43:31 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-09-03 18:43:31 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefRequestContext> _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetRequestContext();
|
2013-09-03 18:43:31 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefRequestContextCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2023-10-05 01:46:45 +02:00
|
|
|
int CEF_CALLBACK browser_host_can_zoom(struct _cef_browser_host_t* self,
|
|
|
|
cef_zoom_command_t command) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->CanZoom(command);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_zoom(struct _cef_browser_host_t* self,
|
|
|
|
cef_zoom_command_t command) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->Zoom(command);
|
|
|
|
}
|
|
|
|
|
|
|
|
double CEF_CALLBACK
|
|
|
|
browser_host_get_default_zoom_level(struct _cef_browser_host_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = CefBrowserHostCppToC::Get(self)->GetDefaultZoomLevel();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
double CEF_CALLBACK
|
|
|
|
browser_host_get_zoom_level(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-06-12 21:50:24 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = CefBrowserHostCppToC::Get(self)->GetZoomLevel();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
double zoomLevel) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-06-12 21:50:24 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SetZoomLevel(zoomLevel);
|
2012-06-12 21:50:24 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_run_file_dialog(struct _cef_browser_host_t* self,
|
|
|
|
cef_file_dialog_mode_t mode,
|
|
|
|
const cef_string_t* title,
|
|
|
|
const cef_string_t* default_file_path,
|
|
|
|
cef_string_list_t accept_filters,
|
|
|
|
cef_run_file_dialog_callback_t* callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-10-16 21:28:07 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: callback; type: refptr_diff
|
|
|
|
DCHECK(callback);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!callback) {
|
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
|
|
|
|
std::vector<CefString> accept_filtersList;
|
|
|
|
transfer_string_list_contents(accept_filters, accept_filtersList);
|
2012-10-16 21:28:07 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->RunFileDialog(
|
2017-05-17 11:29:28 +02:00
|
|
|
mode, CefString(title), CefString(default_file_path), accept_filtersList,
|
2022-04-15 21:55:23 +02:00
|
|
|
CefRunFileDialogCallbackCToCpp::Wrap(callback));
|
2012-10-16 21:28:07 +02:00
|
|
|
}
|
|
|
|
|
2013-02-13 23:47:04 +01:00
|
|
|
void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* url) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-02-13 23:47:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!url) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->StartDownload(CefString(url));
|
2013-02-13 23:47:04 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_download_image(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* image_url,
|
|
|
|
int is_favicon,
|
2023-06-01 16:07:20 +02:00
|
|
|
uint32_t max_image_size,
|
2017-05-17 11:29:28 +02:00
|
|
|
int bypass_cache,
|
|
|
|
cef_download_image_callback_t* callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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: image_url; type: string_byref_const
|
|
|
|
DCHECK(image_url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!image_url) {
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!callback) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->DownloadImage(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(image_url), is_favicon ? true : false, max_image_size,
|
|
|
|
bypass_cache ? true : false,
|
2016-01-19 21:09:01 +01:00
|
|
|
CefDownloadImageCallbackCToCpp::Wrap(callback));
|
|
|
|
}
|
|
|
|
|
2013-10-23 21:30:47 +02:00
|
|
|
void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-10-23 21:30:47 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->Print();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_print_to_pdf(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* path,
|
|
|
|
const struct _cef_pdf_print_settings_t* settings,
|
|
|
|
cef_pdf_print_callback_t* callback) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-03-24 16:40:08 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
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
|
|
|
// Verify param: settings; type: struct_byref_const
|
|
|
|
DCHECK(settings);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!settings) {
|
2015-03-24 16:40:08 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-01-27 18:10:29 +01:00
|
|
|
if (!template_util::has_valid_size(settings)) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "invalid settings->[base.]size";
|
2022-01-27 18:10:29 +01:00
|
|
|
return;
|
|
|
|
}
|
2015-03-24 16:40:08 +01:00
|
|
|
// Unverified params: callback
|
|
|
|
|
|
|
|
// Translate param: settings; type: struct_byref_const
|
|
|
|
CefPdfPrintSettings settingsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (settings) {
|
2015-03-24 16:40:08 +01:00
|
|
|
settingsObj.Set(*settings, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-03-24 16:40:08 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->PrintToPDF(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(path), settingsObj, CefPdfPrintCallbackCToCpp::Wrap(callback));
|
2015-03-24 16:40:08 +01:00
|
|
|
}
|
|
|
|
|
2013-10-24 00:44:12 +02:00
|
|
|
void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* searchText,
|
|
|
|
int forward,
|
|
|
|
int matchCase,
|
|
|
|
int findNext) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-10-24 00:44:12 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: searchText; type: string_byref_const
|
|
|
|
DCHECK(searchText);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!searchText) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->Find(
|
2022-02-17 19:17:29 +01:00
|
|
|
CefString(searchText), forward ? true : false, matchCase ? true : false,
|
|
|
|
findNext ? true : false);
|
2013-10-24 00:44:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int clearSelection) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-10-24 00:44:12 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->StopFinding(clearSelection ? true : false);
|
2013-10-24 00:44:12 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_show_dev_tools(struct _cef_browser_host_t* self,
|
|
|
|
const cef_window_info_t* windowInfo,
|
|
|
|
struct _cef_client_t* client,
|
|
|
|
const struct _cef_browser_settings_t* settings,
|
|
|
|
const cef_point_t* inspect_element_at) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-11-08 17:06:06 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2013-11-08 17:06:06 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-06-10 20:33:07 +02:00
|
|
|
// Unverified params: windowInfo, client, settings, inspect_element_at
|
2013-11-08 17:06:06 +01:00
|
|
|
|
|
|
|
// Translate param: windowInfo; type: struct_byref_const
|
|
|
|
CefWindowInfo windowInfoObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (windowInfo) {
|
2013-11-08 17:06:06 +01:00
|
|
|
windowInfoObj.Set(*windowInfo, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-11-08 17:06:06 +01:00
|
|
|
// Translate param: settings; type: struct_byref_const
|
|
|
|
CefBrowserSettings settingsObj;
|
2023-01-02 23:47:15 +01:00
|
|
|
if (settings) {
|
2013-11-08 17:06:06 +01:00
|
|
|
settingsObj.Set(*settings, false);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-10-11 02:12:01 +02:00
|
|
|
// Translate param: inspect_element_at; type: simple_byref_const
|
|
|
|
CefPoint inspect_element_atVal =
|
2017-05-17 11:29:28 +02:00
|
|
|
inspect_element_at ? *inspect_element_at : CefPoint();
|
2013-11-08 17:06:06 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->ShowDevTools(
|
2017-05-17 11:29:28 +02:00
|
|
|
windowInfoObj, CefClientCToCpp::Wrap(client), settingsObj,
|
2014-10-11 02:12:01 +02:00
|
|
|
inspect_element_atVal);
|
2013-11-08 17:06:06 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_close_dev_tools(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2013-11-08 17:06:06 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->CloseDevTools();
|
|
|
|
}
|
|
|
|
|
2016-06-10 20:33:07 +02:00
|
|
|
int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-06-10 20:33:07 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-06-10 20:33:07 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-06-10 20:33:07 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->HasDevTools();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2020-06-13 02:54:08 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_send_dev_tools_message(struct _cef_browser_host_t* self,
|
|
|
|
const void* message,
|
|
|
|
size_t message_size) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// 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 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->SendDevToolsMessage(
|
|
|
|
message, message_size);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_execute_dev_tools_method(struct _cef_browser_host_t* self,
|
|
|
|
int message_id,
|
|
|
|
const cef_string_t* method,
|
|
|
|
struct _cef_dictionary_value_t* params) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: method; type: string_byref_const
|
|
|
|
DCHECK(method);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!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
|
|
|
// Unverified params: params
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefBrowserHostCppToC::Get(self)->ExecuteDevToolsMethod(
|
|
|
|
message_id, CefString(method), CefDictionaryValueCppToC::Unwrap(params));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_registration_t* CEF_CALLBACK
|
|
|
|
browser_host_add_dev_tools_message_observer(
|
|
|
|
struct _cef_browser_host_t* self,
|
|
|
|
struct _cef_dev_tools_message_observer_t* observer) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
// Verify param: observer; type: refptr_diff
|
|
|
|
DCHECK(observer);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!observer) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefRegistration> _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->AddDevToolsMessageObserver(
|
|
|
|
CefDevToolsMessageObserverCToCpp::Wrap(observer));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefRegistrationCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_get_navigation_entries(struct _cef_browser_host_t* self,
|
|
|
|
cef_navigation_entry_visitor_t* visitor,
|
|
|
|
int current_only) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!visitor) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetNavigationEntries(
|
|
|
|
CefNavigationEntryVisitorCToCpp::Wrap(visitor),
|
2017-05-17 11:29:28 +02:00
|
|
|
current_only ? true : false);
|
2014-11-24 20:23:26 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_replace_misspelling(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* word) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-10-07 22:44:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(word);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!word) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->ReplaceMisspelling(CefString(word));
|
2014-10-07 22:44:33 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* word) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-10-19 03:47:27 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(word);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!word) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->AddWordToDictionary(CefString(word));
|
2014-10-19 03:47:27 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->IsWindowRenderingDisabled();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->WasResized();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int hidden) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->WasHidden(hidden ? true : false);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->NotifyScreenInfoChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_paint_element_type_t type) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->Invalidate(type);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2018-07-03 02:46:03 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_external_begin_frame(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2018-07-03 02:46:03 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SendExternalBeginFrame();
|
|
|
|
}
|
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
void CEF_CALLBACK browser_host_send_key_event(struct _cef_browser_host_t* self,
|
|
|
|
const cef_key_event_t* event) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2012-11-21 01:40:15 +01:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefKeyEvent eventVal = event ? *event : CefKeyEvent();
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SendKeyEvent(eventVal);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_mouse_click_event(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_mouse_button_type_t type,
|
|
|
|
int mouseUp,
|
|
|
|
int clickCount) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2013-01-12 00:00:39 +01:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
2013-01-12 00:00:39 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-01-12 00:00:39 +01:00
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SendMouseClickEvent(
|
2022-07-14 10:13:29 +02:00
|
|
|
eventVal, type, mouseUp ? true : false, clickCount);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_mouse_move_event(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event,
|
2017-05-17 11:29:28 +02:00
|
|
|
int mouseLeave) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2013-01-12 00:00:39 +01:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
2013-01-12 00:00:39 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-01-12 00:00:39 +01:00
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SendMouseMoveEvent(
|
2022-07-14 10:13:29 +02:00
|
|
|
eventVal, mouseLeave ? true : false);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event,
|
2017-05-17 11:29:28 +02:00
|
|
|
int deltaX,
|
|
|
|
int deltaY) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2013-01-12 00:00:39 +01:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
2013-01-12 00:00:39 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2013-01-12 00:00:39 +01:00
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2012-11-21 01:40:15 +01:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SendMouseWheelEvent(eventVal, deltaX,
|
2017-05-17 11:29:28 +02:00
|
|
|
deltaY);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
2019-02-25 22:17:28 +01:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_touch_event(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_touch_event_t* event) {
|
2019-02-25 22:17:28 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2019-02-25 22:17:28 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2019-02-25 22:17:28 +01:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefTouchEvent eventVal = event ? *event : CefTouchEvent();
|
2019-02-25 22:17:28 +01:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SendTouchEvent(eventVal);
|
2019-02-25 22:17:28 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SendCaptureLostEvent();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-10-29 19:14:47 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->NotifyMoveOrResizeStarted();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-05-13 17:43:50 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefBrowserHostCppToC::Get(self)->GetWindowlessFrameRate();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_set_windowless_frame_rate(struct _cef_browser_host_t* self,
|
|
|
|
int frame_rate) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-05-13 17:43:50 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SetWindowlessFrameRate(frame_rate);
|
2015-05-13 17:43:50 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_ime_set_composition(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* text,
|
|
|
|
size_t underlinesCount,
|
|
|
|
cef_composition_underline_t const* underlines,
|
|
|
|
const cef_range_t* replacement_range,
|
|
|
|
const cef_range_t* selection_range) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: replacement_range; type: simple_byref_const
|
|
|
|
DCHECK(replacement_range);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!replacement_range) {
|
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
|
|
|
// Verify param: selection_range; type: simple_byref_const
|
|
|
|
DCHECK(selection_range);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!selection_range) {
|
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
|
|
|
// Unverified params: text, underlines
|
|
|
|
|
|
|
|
// Translate param: underlines; type: simple_vec_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefCompositionUnderline> underlinesList;
|
2016-10-28 18:11:24 +02:00
|
|
|
if (underlinesCount > 0) {
|
|
|
|
for (size_t i = 0; i < underlinesCount; ++i) {
|
|
|
|
CefCompositionUnderline underlinesVal = underlines[i];
|
|
|
|
underlinesList.push_back(underlinesVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Translate param: replacement_range; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRange replacement_rangeVal =
|
|
|
|
replacement_range ? *replacement_range : CefRange();
|
2016-10-28 18:11:24 +02:00
|
|
|
// Translate param: selection_range; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRange selection_rangeVal = selection_range ? *selection_range : CefRange();
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
2016-10-28 18:11:24 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->ImeSetComposition(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(text), underlinesList, replacement_rangeVal,
|
2016-10-28 18:11:24 +02:00
|
|
|
selection_rangeVal);
|
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_ime_commit_text(struct _cef_browser_host_t* self,
|
|
|
|
const cef_string_t* text,
|
|
|
|
const cef_range_t* 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
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: replacement_range; type: simple_byref_const
|
|
|
|
DCHECK(replacement_range);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!replacement_range) {
|
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
|
|
|
// Unverified params: text
|
|
|
|
|
|
|
|
// Translate param: replacement_range; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRange replacement_rangeVal =
|
|
|
|
replacement_range ? *replacement_range : CefRange();
|
2016-10-28 18:11:24 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->ImeCommitText(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(text), replacement_rangeVal, relative_cursor_pos);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self,
|
|
|
|
int keep_selection) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
2016-10-28 18:11:24 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->ImeFinishComposingText(
|
2017-05-17 11:29:28 +02:00
|
|
|
keep_selection ? true : false);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_ime_cancel_composition(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
2016-10-28 18:11:24 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->ImeCancelComposition();
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_target_drag_enter(struct _cef_browser_host_t* self,
|
|
|
|
struct _cef_drag_data_t* drag_data,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_drag_operations_mask_t allowed_ops) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: drag_data; type: refptr_same
|
|
|
|
DCHECK(drag_data);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!drag_data) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2014-07-01 00:30:29 +02:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->DragTargetDragEnter(
|
2022-07-14 10:13:29 +02:00
|
|
|
CefDragDataCppToC::Unwrap(drag_data), eventVal, allowed_ops);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_target_drag_over(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_drag_operations_mask_t allowed_ops) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2014-07-01 00:30:29 +02:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->DragTargetDragOver(eventVal, allowed_ops);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->DragTargetDragLeave();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_target_drop(struct _cef_browser_host_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_mouse_event_t* event) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: event; type: simple_byref_const
|
2014-07-01 00:30:29 +02:00
|
|
|
DCHECK(event);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!event) {
|
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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: event; type: simple_byref_const
|
|
|
|
CefMouseEvent eventVal = event ? *event : CefMouseEvent();
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
2022-07-14 10:13:29 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->DragTargetDrop(eventVal);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_source_ended_at(struct _cef_browser_host_t* self,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
cef_drag_operations_mask_t op) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
CefBrowserHostCppToC::Get(self)->DragSourceEndedAt(x, y, op);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
CefBrowserHostCppToC::Get(self)->DragSourceSystemDragEnded();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_navigation_entry_t* CEF_CALLBACK
|
|
|
|
browser_host_get_visible_navigation_entry(struct _cef_browser_host_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefNavigationEntry> _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetVisibleNavigationEntry();
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefNavigationEntryCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_set_accessibility_state(struct _cef_browser_host_t* self,
|
|
|
|
cef_state_t accessibility_state) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-12 20:28:25 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefBrowserHostCppToC::Get(self)->SetAccessibilityState(accessibility_state);
|
2017-05-12 20:28:25 +02:00
|
|
|
}
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self,
|
|
|
|
int enabled,
|
|
|
|
const cef_size_t* min_size,
|
|
|
|
const cef_size_t* max_size) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: min_size; type: simple_byref_const
|
|
|
|
DCHECK(min_size);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!min_size) {
|
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
|
|
|
// Verify param: max_size; type: simple_byref_const
|
|
|
|
DCHECK(max_size);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!max_size) {
|
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
|
|
|
|
|
|
|
// Translate param: min_size; type: simple_byref_const
|
|
|
|
CefSize min_sizeVal = min_size ? *min_size : CefSize();
|
|
|
|
// Translate param: max_size; type: simple_byref_const
|
|
|
|
CefSize max_sizeVal = max_size ? *max_size : CefSize();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SetAutoResizeEnabled(
|
|
|
|
enabled ? true : false, min_sizeVal, max_sizeVal);
|
|
|
|
}
|
|
|
|
|
2019-02-26 17:44:17 +01:00
|
|
|
void CEF_CALLBACK browser_host_set_audio_muted(struct _cef_browser_host_t* self,
|
|
|
|
int mute) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->SetAudioMuted(mute ? true : false);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK browser_host_is_audio_muted(struct _cef_browser_host_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2019-02-26 17:44:17 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-02-26 17:44:17 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->IsAudioMuted();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2023-11-07 22:40:29 +01:00
|
|
|
int CEF_CALLBACK browser_host_is_fullscreen(struct _cef_browser_host_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->IsFullscreen();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK browser_host_exit_fullscreen(struct _cef_browser_host_t* self,
|
|
|
|
int will_cause_resize) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->ExitFullscreen(will_cause_resize ? true
|
|
|
|
: false);
|
|
|
|
}
|
|
|
|
|
2023-11-14 18:16:43 +01:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_can_execute_chrome_command(struct _cef_browser_host_t* self,
|
|
|
|
int command_id) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->CanExecuteChromeCommand(command_id);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK
|
|
|
|
browser_host_execute_chrome_command(struct _cef_browser_host_t* self,
|
|
|
|
int command_id,
|
|
|
|
cef_window_open_disposition_t disposition) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefBrowserHostCppToC::Get(self)->ExecuteChromeCommand(command_id,
|
|
|
|
disposition);
|
|
|
|
}
|
|
|
|
|
2024-03-12 20:47:10 +01:00
|
|
|
int CEF_CALLBACK
|
|
|
|
browser_host_is_render_process_unresponsive(struct _cef_browser_host_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefBrowserHostCppToC::Get(self)->IsRenderProcessUnresponsive();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
cef_runtime_style_t CEF_CALLBACK
|
|
|
|
browser_host_get_runtime_style(struct _cef_browser_host_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return CEF_RUNTIME_STYLE_DEFAULT;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_runtime_style_t _retval =
|
|
|
|
CefBrowserHostCppToC::Get(self)->GetRuntimeStyle();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefBrowserHostCppToC::CefBrowserHostCppToC() {
|
|
|
|
GetStruct()->get_browser = browser_host_get_browser;
|
|
|
|
GetStruct()->close_browser = browser_host_close_browser;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->try_close_browser = browser_host_try_close_browser;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->set_focus = browser_host_set_focus;
|
|
|
|
GetStruct()->get_window_handle = browser_host_get_window_handle;
|
|
|
|
GetStruct()->get_opener_window_handle = browser_host_get_opener_window_handle;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->has_view = browser_host_has_view;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_client = browser_host_get_client;
|
|
|
|
GetStruct()->get_request_context = browser_host_get_request_context;
|
2023-10-05 01:46:45 +02:00
|
|
|
GetStruct()->can_zoom = browser_host_can_zoom;
|
|
|
|
GetStruct()->zoom = browser_host_zoom;
|
|
|
|
GetStruct()->get_default_zoom_level = browser_host_get_default_zoom_level;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_zoom_level = browser_host_get_zoom_level;
|
|
|
|
GetStruct()->set_zoom_level = browser_host_set_zoom_level;
|
|
|
|
GetStruct()->run_file_dialog = browser_host_run_file_dialog;
|
|
|
|
GetStruct()->start_download = browser_host_start_download;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->download_image = browser_host_download_image;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->print = browser_host_print;
|
2015-03-24 16:40:08 +01:00
|
|
|
GetStruct()->print_to_pdf = browser_host_print_to_pdf;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->find = browser_host_find;
|
|
|
|
GetStruct()->stop_finding = browser_host_stop_finding;
|
|
|
|
GetStruct()->show_dev_tools = browser_host_show_dev_tools;
|
|
|
|
GetStruct()->close_dev_tools = browser_host_close_dev_tools;
|
2016-06-10 20:33:07 +02:00
|
|
|
GetStruct()->has_dev_tools = browser_host_has_dev_tools;
|
2020-06-13 02:54:08 +02:00
|
|
|
GetStruct()->send_dev_tools_message = browser_host_send_dev_tools_message;
|
|
|
|
GetStruct()->execute_dev_tools_method = browser_host_execute_dev_tools_method;
|
|
|
|
GetStruct()->add_dev_tools_message_observer =
|
|
|
|
browser_host_add_dev_tools_message_observer;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_navigation_entries = browser_host_get_navigation_entries;
|
|
|
|
GetStruct()->replace_misspelling = browser_host_replace_misspelling;
|
|
|
|
GetStruct()->add_word_to_dictionary = browser_host_add_word_to_dictionary;
|
|
|
|
GetStruct()->is_window_rendering_disabled =
|
2014-07-01 00:30:29 +02:00
|
|
|
browser_host_is_window_rendering_disabled;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->was_resized = browser_host_was_resized;
|
|
|
|
GetStruct()->was_hidden = browser_host_was_hidden;
|
|
|
|
GetStruct()->notify_screen_info_changed =
|
2014-07-01 00:30:29 +02:00
|
|
|
browser_host_notify_screen_info_changed;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->invalidate = browser_host_invalidate;
|
2018-07-03 02:46:03 +02:00
|
|
|
GetStruct()->send_external_begin_frame =
|
|
|
|
browser_host_send_external_begin_frame;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->send_key_event = browser_host_send_key_event;
|
|
|
|
GetStruct()->send_mouse_click_event = browser_host_send_mouse_click_event;
|
|
|
|
GetStruct()->send_mouse_move_event = browser_host_send_mouse_move_event;
|
|
|
|
GetStruct()->send_mouse_wheel_event = browser_host_send_mouse_wheel_event;
|
2019-02-25 22:17:28 +01:00
|
|
|
GetStruct()->send_touch_event = browser_host_send_touch_event;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->send_capture_lost_event = browser_host_send_capture_lost_event;
|
|
|
|
GetStruct()->notify_move_or_resize_started =
|
2014-10-29 19:14:47 +01:00
|
|
|
browser_host_notify_move_or_resize_started;
|
2015-05-13 17:43:50 +02:00
|
|
|
GetStruct()->get_windowless_frame_rate =
|
|
|
|
browser_host_get_windowless_frame_rate;
|
|
|
|
GetStruct()->set_windowless_frame_rate =
|
|
|
|
browser_host_set_windowless_frame_rate;
|
2016-10-28 18:11:24 +02:00
|
|
|
GetStruct()->ime_set_composition = browser_host_ime_set_composition;
|
|
|
|
GetStruct()->ime_commit_text = browser_host_ime_commit_text;
|
|
|
|
GetStruct()->ime_finish_composing_text =
|
|
|
|
browser_host_ime_finish_composing_text;
|
|
|
|
GetStruct()->ime_cancel_composition = browser_host_ime_cancel_composition;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->drag_target_drag_enter = browser_host_drag_target_drag_enter;
|
|
|
|
GetStruct()->drag_target_drag_over = browser_host_drag_target_drag_over;
|
|
|
|
GetStruct()->drag_target_drag_leave = browser_host_drag_target_drag_leave;
|
|
|
|
GetStruct()->drag_target_drop = browser_host_drag_target_drop;
|
|
|
|
GetStruct()->drag_source_ended_at = browser_host_drag_source_ended_at;
|
|
|
|
GetStruct()->drag_source_system_drag_ended =
|
2014-07-01 00:30:29 +02:00
|
|
|
browser_host_drag_source_system_drag_ended;
|
2016-09-02 12:01:33 +02:00
|
|
|
GetStruct()->get_visible_navigation_entry =
|
|
|
|
browser_host_get_visible_navigation_entry;
|
2017-05-12 20:28:25 +02:00
|
|
|
GetStruct()->set_accessibility_state = browser_host_set_accessibility_state;
|
2017-08-04 00:55:19 +02:00
|
|
|
GetStruct()->set_auto_resize_enabled = browser_host_set_auto_resize_enabled;
|
2019-02-26 17:44:17 +01:00
|
|
|
GetStruct()->set_audio_muted = browser_host_set_audio_muted;
|
|
|
|
GetStruct()->is_audio_muted = browser_host_is_audio_muted;
|
2023-11-07 22:40:29 +01:00
|
|
|
GetStruct()->is_fullscreen = browser_host_is_fullscreen;
|
|
|
|
GetStruct()->exit_fullscreen = browser_host_exit_fullscreen;
|
2023-11-14 18:16:43 +01:00
|
|
|
GetStruct()->can_execute_chrome_command =
|
|
|
|
browser_host_can_execute_chrome_command;
|
|
|
|
GetStruct()->execute_chrome_command = browser_host_execute_chrome_command;
|
2024-03-12 20:47:10 +01:00
|
|
|
GetStruct()->is_render_process_unresponsive =
|
|
|
|
browser_host_is_render_process_unresponsive;
|
2024-04-17 18:01:26 +02:00
|
|
|
GetStruct()->get_runtime_style = browser_host_get_runtime_style;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefBrowserHostCppToC::~CefBrowserHostCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefBrowserHost>
|
|
|
|
CefCppToCRefCounted<CefBrowserHostCppToC, CefBrowserHost, cef_browser_host_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_browser_host_t* s) {
|
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 CefCppToCRefCounted<CefBrowserHostCppToC,
|
|
|
|
CefBrowserHost,
|
|
|
|
cef_browser_host_t>::kWrapperType =
|
|
|
|
WT_BROWSER_HOST;
|