2016-01-08 20:00:27 +01:00
|
|
|
// Copyright (c) 2016 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#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"
|
|
|
|
#include "libcef_dll/ctocpp/browser_host_ctocpp.h"
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/ctocpp/navigation_entry_ctocpp.h"
|
2013-09-03 18:43:31 +02:00
|
|
|
#include "libcef_dll/ctocpp/request_context_ctocpp.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.
|
|
|
|
|
|
|
|
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) {
|
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(
|
|
|
|
&windowInfo,
|
|
|
|
CefClientCppToC::Wrap(client),
|
|
|
|
url.GetStruct(),
|
2013-09-03 18:43:31 +02:00
|
|
|
&settings,
|
|
|
|
CefRequestContextCToCpp::Unwrap(request_context));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
|
|
|
|
const CefWindowInfo& windowInfo, CefRefPtr<CefClient> client,
|
2013-09-03 18:43:31 +02:00
|
|
|
const CefString& url, const CefBrowserSettings& settings,
|
|
|
|
CefRefPtr<CefRequestContext> request_context) {
|
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(
|
|
|
|
&windowInfo,
|
|
|
|
CefClientCppToC::Wrap(client),
|
|
|
|
url.GetStruct(),
|
2013-09-03 18:43:31 +02:00
|
|
|
&settings,
|
|
|
|
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.
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowser> CefBrowserHostCToCpp::GetBrowser() {
|
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);
|
|
|
|
}
|
|
|
|
|
2013-03-19 23:59:33 +01:00
|
|
|
void CefBrowserHostCToCpp::CloseBrowser(bool force_close) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->close_browser(_struct,
|
2013-03-19 23:59:33 +01:00
|
|
|
force_close);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
bool CefBrowserHostCToCpp::TryCloseBrowser() {
|
|
|
|
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
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2014-06-06 21:04:21 +02:00
|
|
|
void CefBrowserHostCToCpp::SetFocus(bool focus) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->set_focus(_struct,
|
2014-06-06 21:04:21 +02:00
|
|
|
focus);
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CefWindowHandle CefBrowserHostCToCpp::GetWindowHandle() {
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() {
|
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;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
bool CefBrowserHostCToCpp::HasView() {
|
|
|
|
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
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRefPtr<CefClient> CefBrowserHostCToCpp::GetClient() {
|
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);
|
|
|
|
}
|
|
|
|
|
2013-09-03 18:43:31 +02:00
|
|
|
CefRefPtr<CefRequestContext> CefBrowserHostCToCpp::GetRequestContext() {
|
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);
|
|
|
|
}
|
|
|
|
|
2012-06-12 21:50:24 +02:00
|
|
|
double CefBrowserHostCToCpp::GetZoomLevel() {
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::SetZoomLevel(double zoomLevel) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->set_zoom_level(_struct,
|
2012-06-12 21:50:24 +02:00
|
|
|
zoomLevel);
|
|
|
|
}
|
|
|
|
|
2012-10-16 21:28:07 +02:00
|
|
|
void CefBrowserHostCToCpp::RunFileDialog(FileDialogMode mode,
|
2015-01-20 19:24:54 +01:00
|
|
|
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) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->run_file_dialog(_struct,
|
2012-10-16 21:28:07 +02:00
|
|
|
mode,
|
|
|
|
title.GetStruct(),
|
2015-01-20 19:24:54 +01:00
|
|
|
default_file_path.GetStruct(),
|
|
|
|
accept_filtersList,
|
|
|
|
selected_accept_filter,
|
2012-10-16 21:28:07 +02:00
|
|
|
CefRunFileDialogCallbackCppToC::Wrap(callback));
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2013-02-13 23:47:04 +01:00
|
|
|
void CefBrowserHostCToCpp::StartDownload(const CefString& url) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->start_download(_struct,
|
2013-02-13 23:47:04 +01:00
|
|
|
url.GetStruct());
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
void CefBrowserHostCToCpp::DownloadImage(const CefString& image_url,
|
|
|
|
bool is_favicon, uint32 max_image_size, bool bypass_cache,
|
|
|
|
CefRefPtr<CefDownloadImageCallback> callback) {
|
|
|
|
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
|
|
|
|
_struct->download_image(_struct,
|
|
|
|
image_url.GetStruct(),
|
|
|
|
is_favicon,
|
|
|
|
max_image_size,
|
|
|
|
bypass_cache,
|
|
|
|
CefDownloadImageCallbackCppToC::Wrap(callback));
|
|
|
|
}
|
|
|
|
|
2013-10-23 21:30:47 +02:00
|
|
|
void CefBrowserHostCToCpp::Print() {
|
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
|
|
|
}
|
|
|
|
|
2015-03-24 16:40:08 +01:00
|
|
|
void CefBrowserHostCToCpp::PrintToPDF(const CefString& path,
|
|
|
|
const CefPdfPrintSettings& settings,
|
|
|
|
CefRefPtr<CefPdfPrintCallback> callback) {
|
|
|
|
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
|
|
|
|
_struct->print_to_pdf(_struct,
|
|
|
|
path.GetStruct(),
|
|
|
|
&settings,
|
|
|
|
CefPdfPrintCallbackCppToC::Wrap(callback));
|
|
|
|
}
|
|
|
|
|
2013-10-24 00:44:12 +02:00
|
|
|
void CefBrowserHostCToCpp::Find(int identifier, const CefString& searchText,
|
|
|
|
bool forward, bool matchCase, bool findNext) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->find(_struct,
|
2013-10-24 00:44:12 +02:00
|
|
|
identifier,
|
|
|
|
searchText.GetStruct(),
|
|
|
|
forward,
|
|
|
|
matchCase,
|
|
|
|
findNext);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::StopFinding(bool clearSelection) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->stop_finding(_struct,
|
2013-10-24 00:44:12 +02:00
|
|
|
clearSelection);
|
|
|
|
}
|
|
|
|
|
2013-11-08 17:06:06 +01:00
|
|
|
void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo,
|
2014-10-11 02:12:01 +02:00
|
|
|
CefRefPtr<CefClient> client, const CefBrowserSettings& settings,
|
|
|
|
const CefPoint& inspect_element_at) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->show_dev_tools(_struct,
|
2013-11-08 17:06:06 +01:00
|
|
|
&windowInfo,
|
|
|
|
CefClientCppToC::Wrap(client),
|
2014-10-11 02:12:01 +02:00
|
|
|
&settings,
|
|
|
|
&inspect_element_at);
|
2013-11-08 17:06:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::CloseDevTools() {
|
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
|
|
|
}
|
|
|
|
|
2016-06-10 20:33:07 +02:00
|
|
|
bool CefBrowserHostCToCpp::HasDevTools() {
|
|
|
|
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
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2014-11-24 20:23:26 +01:00
|
|
|
void CefBrowserHostCToCpp::GetNavigationEntries(
|
|
|
|
CefRefPtr<CefNavigationEntryVisitor> visitor, bool current_only) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->get_navigation_entries(_struct,
|
2014-11-24 20:23:26 +01:00
|
|
|
CefNavigationEntryVisitorCppToC::Wrap(visitor),
|
|
|
|
current_only);
|
|
|
|
}
|
|
|
|
|
2013-04-05 19:05:37 +02:00
|
|
|
void CefBrowserHostCToCpp::SetMouseCursorChangeDisabled(bool disabled) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->set_mouse_cursor_change_disabled(_struct,
|
2013-04-05 19:05:37 +02:00
|
|
|
disabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefBrowserHostCToCpp::IsMouseCursorChangeDisabled() {
|
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
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2014-10-07 22:44:33 +02:00
|
|
|
void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->replace_misspelling(_struct,
|
2014-10-07 22:44:33 +02:00
|
|
|
word.GetStruct());
|
|
|
|
}
|
|
|
|
|
2014-10-19 03:47:27 +02:00
|
|
|
void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->add_word_to_dictionary(_struct,
|
2014-10-19 03:47:27 +02:00
|
|
|
word.GetStruct());
|
|
|
|
}
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() {
|
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
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::WasResized() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::WasHidden(bool hidden) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->was_hidden(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
hidden);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::NotifyScreenInfoChanged() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::Invalidate(PaintElementType type) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->invalidate(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
type);
|
|
|
|
}
|
|
|
|
|
2012-11-21 01:40:15 +01:00
|
|
|
void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent& event) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_key_event(_struct,
|
2012-11-21 01:40:15 +01:00
|
|
|
&event);
|
|
|
|
}
|
|
|
|
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event,
|
2012-11-21 01:40:15 +01:00
|
|
|
MouseButtonType type, bool mouseUp, int clickCount) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_mouse_click_event(_struct,
|
2013-01-12 00:00:39 +01:00
|
|
|
&event,
|
2012-11-21 01:40:15 +01:00
|
|
|
type,
|
|
|
|
mouseUp,
|
|
|
|
clickCount);
|
|
|
|
}
|
|
|
|
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent& event,
|
|
|
|
bool mouseLeave) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_mouse_move_event(_struct,
|
2013-01-12 00:00:39 +01:00
|
|
|
&event,
|
2012-11-21 01:40:15 +01:00
|
|
|
mouseLeave);
|
|
|
|
}
|
|
|
|
|
2013-01-12 00:00:39 +01:00
|
|
|
void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event,
|
|
|
|
int deltaX, int deltaY) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_mouse_wheel_event(_struct,
|
2013-01-12 00:00:39 +01:00
|
|
|
&event,
|
2012-11-21 01:40:15 +01:00
|
|
|
deltaX,
|
|
|
|
deltaY);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::SendFocusEvent(bool setFocus) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->send_focus_event(_struct,
|
2012-11-21 01:40:15 +01:00
|
|
|
setFocus);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::SendCaptureLostEvent() {
|
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
|
|
|
}
|
|
|
|
|
2014-10-29 19:14:47 +01:00
|
|
|
void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() {
|
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
|
|
|
}
|
|
|
|
|
2015-05-13 17:43:50 +02:00
|
|
|
int CefBrowserHostCToCpp::GetWindowlessFrameRate() {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::SetWindowlessFrameRate(int frame_rate) {
|
|
|
|
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
|
|
|
|
_struct->set_windowless_frame_rate(_struct,
|
|
|
|
frame_rate);
|
|
|
|
}
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeSetComposition(const CefString& text,
|
|
|
|
const std::vector<CefCompositionUnderline>& underlines,
|
|
|
|
const CefRange& replacement_range, const CefRange& selection_range) {
|
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
|
2016-10-28 18:11:24 +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)
|
|
|
|
delete [] underlinesList;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::ImeCommitText(const CefString& text,
|
|
|
|
const CefRange& replacement_range, int relative_cursor_pos) {
|
|
|
|
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
|
|
|
|
_struct->ime_commit_text(_struct,
|
|
|
|
text.GetStruct(),
|
|
|
|
&replacement_range,
|
|
|
|
relative_cursor_pos);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) {
|
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
|
2016-10-28 18:11:24 +02:00
|
|
|
_struct->ime_finish_composing_text(_struct,
|
|
|
|
keep_selection);
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2016-10-28 18:11:24 +02:00
|
|
|
void CefBrowserHostCToCpp::ImeCancelComposition() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr<CefDragData> drag_data,
|
|
|
|
const CefMouseEvent& event, DragOperationsMask allowed_ops) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_target_drag_enter(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
CefDragDataCToCpp::Unwrap(drag_data),
|
|
|
|
&event,
|
|
|
|
allowed_ops);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event,
|
|
|
|
DragOperationsMask allowed_ops) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_target_drag_over(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
&event,
|
|
|
|
allowed_ops);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragTargetDragLeave() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent& event) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_target_drop(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
&event);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragSourceEndedAt(int x, int y,
|
|
|
|
DragOperationsMask op) {
|
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
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->drag_source_ended_at(_struct,
|
2014-07-01 00:30:29 +02:00
|
|
|
x,
|
|
|
|
y,
|
|
|
|
op);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserHostCToCpp::DragSourceSystemDragEnded() {
|
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
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
CefRefPtr<CefNavigationEntry> CefBrowserHostCToCpp::GetVisibleNavigationEntry(
|
|
|
|
) {
|
|
|
|
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
|
|
|
|
cef_navigation_entry_t* _retval = _struct->get_visible_navigation_entry(
|
|
|
|
_struct);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefNavigationEntryCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefBrowserHostCToCpp::CefBrowserHostCToCpp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_browser_host_t* CefCToCpp<CefBrowserHostCToCpp, CefBrowserHost,
|
|
|
|
cef_browser_host_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefBrowserHost* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2014-07-15 00:18:51 +02:00
|
|
|
template<> base::AtomicRefCount CefCToCpp<CefBrowserHostCToCpp, CefBrowserHost,
|
2012-04-03 03:34:16 +02:00
|
|
|
cef_browser_host_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefBrowserHostCToCpp, CefBrowserHost,
|
|
|
|
cef_browser_host_t>::kWrapperType = WT_BROWSER_HOST;
|