2019-01-10 15:22:19 +01:00
|
|
|
// Copyright (c) 2019 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.
|
|
|
|
//
|
2019-02-25 22:17:28 +01:00
|
|
|
// $hash=1357aad2c8a79a3917ca38d93f3ed84712c2d9cd$
|
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"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/client_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"
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
2017-08-04 00:55:19 +02:00
|
|
|
#include "libcef_dll/ctocpp/extension_ctocpp.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/ctocpp/navigation_entry_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,
|
|
|
|
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
|
|
|
|
|
2013-09-03 18:43:31 +02:00
|
|
|
// Unverified params: client, url, 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,
|
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,
|
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
|
|
|
|
|
2013-09-03 18:43:31 +02:00
|
|
|
// Unverified params: client, url, 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,
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_browser))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, close_browser))
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, try_close_browser))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_focus))
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_window_handle))
|
2014-05-22 23:01:22 +02:00
|
|
|
return kNullWindowHandle;
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_opener_window_handle))
|
2014-05-22 23:01:22 +02:00
|
|
|
return kNullWindowHandle;
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_view))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_client))
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_request_context))
|
2013-09-03 18:43:31 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_zoom_level))
|
2012-06-12 21:50:24 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_zoom_level))
|
2012-06-12 21:50:24 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
int selected_accept_filter,
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, run_file_dialog))
|
2012-10-16 21:28:07 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2015-01-20 19:24:54 +01:00
|
|
|
// Verify param: selected_accept_filter; type: simple_byval
|
|
|
|
DCHECK_GE(selected_accept_filter, 0);
|
|
|
|
if (selected_accept_filter < 0)
|
|
|
|
return;
|
2012-10-16 21:28:07 +02:00
|
|
|
// Verify param: callback; type: refptr_diff
|
|
|
|
DCHECK(callback.get());
|
|
|
|
if (!callback.get())
|
|
|
|
return;
|
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);
|
|
|
|
if (accept_filtersList)
|
|
|
|
transfer_string_list_contents(accept_filters, accept_filtersList);
|
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,
|
|
|
|
selected_accept_filter,
|
|
|
|
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
|
|
|
|
if (accept_filtersList)
|
|
|
|
cef_string_list_free(accept_filtersList);
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, start_download))
|
2013-02-13 23:47:04 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
uint32 max_image_size,
|
|
|
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, download_image))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: image_url; type: string_byref_const
|
|
|
|
DCHECK(!image_url.empty());
|
|
|
|
if (image_url.empty())
|
|
|
|
return;
|
|
|
|
// Verify param: callback; type: refptr_diff
|
|
|
|
DCHECK(callback.get());
|
|
|
|
if (!callback.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, print))
|
2013-10-23 21:30:47 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, print_to_pdf))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(!path.empty());
|
|
|
|
if (path.empty())
|
|
|
|
return;
|
|
|
|
// 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")
|
2017-05-17 11:29:28 +02:00
|
|
|
void CefBrowserHostCToCpp::Find(int identifier,
|
|
|
|
const CefString& searchText,
|
|
|
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, find))
|
2013-10-24 00:44:12 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: searchText; type: string_byref_const
|
|
|
|
DCHECK(!searchText.empty());
|
|
|
|
if (searchText.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->find(_struct, identifier, 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, stop_finding))
|
2013-10-24 00:44:12 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, show_dev_tools))
|
2013-11-08 17:06:06 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, close_dev_tools))
|
2013-11-08 17:06:06 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_dev_tools))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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")
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_navigation_entries))
|
2014-11-24 20:23:26 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor.get());
|
|
|
|
if (!visitor.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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")
|
2013-04-05 19:05:37 +02:00
|
|
|
void CefBrowserHostCToCpp::SetMouseCursorChangeDisabled(bool disabled) {
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_mouse_cursor_change_disabled))
|
2013-04-05 19:05:37 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_mouse_cursor_change_disabled(_struct, disabled);
|
2013-04-05 19:05:37 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2013-04-05 19:05:37 +02:00
|
|
|
bool CefBrowserHostCToCpp::IsMouseCursorChangeDisabled() {
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_mouse_cursor_change_disabled))
|
2013-04-05 19:05:37 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_mouse_cursor_change_disabled(_struct);
|
2013-04-05 19:05:37 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2013-04-05 19:05:37 +02: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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, replace_misspelling))
|
2014-10-07 22:44:33 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(!word.empty());
|
|
|
|
if (word.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, add_word_to_dictionary))
|
2014-10-19 03:47:27 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: word; type: string_byref_const
|
|
|
|
DCHECK(!word.empty());
|
|
|
|
if (word.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_window_rendering_disabled))
|
2014-07-01 00:30:29 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, was_resized))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, was_hidden))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, notify_screen_info_changed))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, invalidate))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_external_begin_frame))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_key_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_click_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_move_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_mouse_wheel_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_touch_event))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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")
|
2012-11-21 01:40:15 +01:00
|
|
|
void CefBrowserHostCToCpp::SendFocusEvent(bool setFocus) {
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_focus_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->send_focus_event(_struct, setFocus);
|
2012-11-21 01:40:15 +01:00
|
|
|
}
|
|
|
|
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, send_capture_lost_event))
|
2012-11-21 01:40:15 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, notify_move_or_resize_started))
|
2014-10-29 19:14:47 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_windowless_frame_rate))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_windowless_frame_rate))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
2016-10-28 18:11:24 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_set_composition))
|
|
|
|
return;
|
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
|
|
|
|
if (underlinesList)
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] underlinesList;
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_commit_text))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
2016-10-28 18:11:24 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_finish_composing_text))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
2016-10-28 18:11:24 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, ime_cancel_composition))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_enter))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: drag_data; type: refptr_same
|
|
|
|
DCHECK(drag_data.get());
|
|
|
|
if (!drag_data.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_over))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drag_leave))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_target_drop))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_source_ended_at))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, drag_source_system_drag_ended))
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// 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")
|
2019-02-26 17:44:17 +01: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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_visible_navigation_entry))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_accessibility_state))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_auto_resize_enabled))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->set_auto_resize_enabled(_struct, enabled, &min_size, &max_size);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-08-04 00:55:19 +02:00
|
|
|
CefRefPtr<CefExtension> CefBrowserHostCToCpp::GetExtension() {
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_extension))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_extension_t* _retval = _struct->get_extension(_struct);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefExtensionCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsBackgroundHost() {
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_background_host))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_background_host(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_audio_muted))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_audio_muted))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_audio_muted(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
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) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefBrowserHostCToCpp,
|
|
|
|
CefBrowserHost,
|
|
|
|
cef_browser_host_t>::kWrapperType =
|
|
|
|
WT_BROWSER_HOST;
|