2012-01-10 00:46:23 +01:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 23:04:50 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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.
|
2010-10-03 23:04:50 +02:00
|
|
|
//
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#include "libcef_dll/cpptoc/client_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
2010-11-22 18:49:46 +01:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
bool CefBrowser::CreateBrowser(CefWindowInfo& windowInfo,
|
|
|
|
CefRefPtr<CefClient> client, const CefString& url,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefBrowserSettings& settings) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: client; type: refptr_diff
|
|
|
|
DCHECK(client.get());
|
|
|
|
if (!client.get())
|
|
|
|
return false;
|
|
|
|
// Unverified params: url
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_browser_create(
|
|
|
|
&windowInfo,
|
|
|
|
CefClientCppToC::Wrap(client),
|
|
|
|
url.GetStruct(),
|
|
|
|
&settings);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowser> CefBrowser::CreateBrowserSync(CefWindowInfo& windowInfo,
|
2011-05-20 16:42:25 +02:00
|
|
|
CefRefPtr<CefClient> client, const CefString& url,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefBrowserSettings& settings) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: client; type: refptr_diff
|
|
|
|
DCHECK(client.get());
|
|
|
|
if (!client.get())
|
|
|
|
return NULL;
|
|
|
|
// Unverified params: url
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_browser_t* _retval = cef_browser_create_sync(
|
|
|
|
&windowInfo,
|
|
|
|
CefClientCppToC::Wrap(client),
|
|
|
|
url.GetStruct(),
|
|
|
|
&settings);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::ParentWindowWillClose() {
|
2011-08-03 17:35:51 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, parent_window_will_close))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-08-03 17:35:51 +02:00
|
|
|
struct_->parent_window_will_close(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::CloseBrowser() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, close_browser))
|
2011-03-08 02:07:47 +01:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-03-08 02:07:47 +01:00
|
|
|
struct_->close_browser(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::CanGoBack() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, can_go_back))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->can_go_back(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::GoBack() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, go_back))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
struct_->go_back(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::CanGoForward() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, can_go_forward))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->can_go_forward(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::GoForward() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, go_forward))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
struct_->go_forward(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::Reload() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, reload))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
struct_->reload(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::ReloadIgnoreCache() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, reload_ignore_cache))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
struct_->reload_ignore_cache(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::StopLoad() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, stop_load))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
struct_->stop_load(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SetFocus(bool enable) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_focus))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->set_focus(struct_,
|
|
|
|
enable);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefWindowHandle CefBrowserCToCpp::GetWindowHandle() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_window_handle))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_window_handle_t _retval = struct_->get_window_handle(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefWindowHandle CefBrowserCToCpp::GetOpenerWindowHandle() {
|
2011-06-14 17:09:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_opener_window_handle))
|
2011-12-08 02:38:30 +01:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_window_handle_t _retval = struct_->get_opener_window_handle(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-06-14 17:09:55 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 17:47:38 +01:00
|
|
|
int CefBrowserCToCpp::GetIdentifier() {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_identifier))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_identifier(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::IsPopup() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_popup))
|
2010-10-03 23:04:50 +02:00
|
|
|
return false;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_popup(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::HasDocument() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, has_document))
|
2011-08-30 18:20:27 +02:00
|
|
|
return false;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->has_document(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-08-30 18:20:27 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefClient> CefBrowserCToCpp::GetClient() {
|
2011-05-20 16:42:25 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_client))
|
2010-10-03 23:04:50 +02:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_client_t* _retval = struct_->get_client(struct_);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefClientCppToC::Unwrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefFrame> CefBrowserCToCpp::GetMainFrame() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_main_frame))
|
2010-10-03 23:04:50 +02:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_frame_t* _retval = struct_->get_main_frame(struct_);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFocusedFrame() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_focused_frame))
|
2010-10-03 23:04:50 +02:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_frame_t* _retval = struct_->get_focused_frame(struct_);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFrame(const CefString& name) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_frame))
|
2010-10-03 23:04:50 +02:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Verify param: name; type: string_byref_const
|
|
|
|
DCHECK(!name.empty());
|
|
|
|
if (name.empty())
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_frame_t* _retval = struct_->get_frame(struct_,
|
|
|
|
name.GetStruct());
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCToCpp::Wrap(_retval);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::GetFrameNames(std::vector<CefString>& names) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_frame_names))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
cef_string_list_t namesList = cef_string_list_alloc();
|
|
|
|
DCHECK(namesList);
|
|
|
|
if (namesList)
|
|
|
|
transfer_string_list_contents(names, namesList);
|
2011-11-15 00:43:52 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
struct_->get_frame_names(struct_,
|
|
|
|
namesList);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Restore param:names; type: string_vec_byref
|
|
|
|
if (namesList) {
|
|
|
|
names.clear();
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
cef_string_list_free(namesList);
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
void CefBrowserCToCpp::Find(int identifier, const CefString& searchText,
|
2012-01-10 00:46:23 +01:00
|
|
|
bool forward, bool matchCase, bool findNext) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, find))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: searchText; type: string_byref_const
|
|
|
|
DCHECK(!searchText.empty());
|
|
|
|
if (searchText.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->find(struct_,
|
|
|
|
identifier,
|
|
|
|
searchText.GetStruct(),
|
|
|
|
forward,
|
|
|
|
matchCase,
|
|
|
|
findNext);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::StopFinding(bool clearSelection) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, stop_finding))
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->stop_finding(struct_,
|
|
|
|
clearSelection);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
double CefBrowserCToCpp::GetZoomLevel() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_zoom_level))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-01-25 16:34:50 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
double _retval = struct_->get_zoom_level(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-01-25 16:34:50 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SetZoomLevel(double zoomLevel) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_zoom_level))
|
2011-01-25 16:34:50 +01:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->set_zoom_level(struct_,
|
|
|
|
zoomLevel);
|
2011-01-25 16:34:50 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::ClearHistory() {
|
2011-10-04 13:49:36 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, clear_history))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-10-04 13:49:36 +02:00
|
|
|
struct_->clear_history(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::ShowDevTools() {
|
2011-01-25 19:37:27 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, show_dev_tools))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-01-25 19:37:27 +01:00
|
|
|
struct_->show_dev_tools(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::CloseDevTools() {
|
2011-01-25 19:37:27 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, close_dev_tools))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-01-25 19:37:27 +01:00
|
|
|
struct_->close_dev_tools(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::IsWindowRenderingDisabled() {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_window_rendering_disabled))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_window_rendering_disabled(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::GetSize(PaintElementType type, int& width, int& height) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_size))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_size(struct_,
|
|
|
|
type,
|
|
|
|
&width,
|
|
|
|
&height);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SetSize(PaintElementType type, int width, int height) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_size))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->set_size(struct_,
|
|
|
|
type,
|
|
|
|
width,
|
|
|
|
height);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefBrowserCToCpp::IsPopupVisible() {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_popup_visible))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_popup_visible(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::HidePopup() {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, hide_popup))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-03-24 21:36:47 +01:00
|
|
|
struct_->hide_popup(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::Invalidate(const CefRect& dirtyRect) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, invalidate))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->invalidate(struct_,
|
|
|
|
&dirtyRect);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefBrowserCToCpp::GetImage(PaintElementType type, int width, int height,
|
2012-01-10 00:46:23 +01:00
|
|
|
void* buffer) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_image))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: buffer; type: simple_byaddr
|
|
|
|
DCHECK(buffer);
|
|
|
|
if (!buffer)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_image(struct_,
|
|
|
|
type,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
buffer);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-05-16 18:56:38 +02:00
|
|
|
void CefBrowserCToCpp::SendKeyEvent(KeyType type, const CefKeyInfo& keyInfo,
|
|
|
|
int modifiers) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_key_event))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->send_key_event(struct_,
|
|
|
|
type,
|
2012-05-16 18:56:38 +02:00
|
|
|
&keyInfo,
|
|
|
|
modifiers);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefBrowserCToCpp::SendMouseClickEvent(int x, int y, MouseButtonType type,
|
2012-01-10 00:46:23 +01:00
|
|
|
bool mouseUp, int clickCount) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_mouse_click_event))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->send_mouse_click_event(struct_,
|
|
|
|
x,
|
|
|
|
y,
|
|
|
|
type,
|
|
|
|
mouseUp,
|
|
|
|
clickCount);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SendMouseMoveEvent(int x, int y, bool mouseLeave) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_mouse_move_event))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->send_mouse_move_event(struct_,
|
|
|
|
x,
|
|
|
|
y,
|
|
|
|
mouseLeave);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-05-16 18:56:38 +02:00
|
|
|
void CefBrowserCToCpp::SendMouseWheelEvent(int x, int y, int deltaX,
|
|
|
|
int deltaY) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_mouse_wheel_event))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->send_mouse_wheel_event(struct_,
|
|
|
|
x,
|
|
|
|
y,
|
2012-05-16 18:56:38 +02:00
|
|
|
deltaX,
|
|
|
|
deltaY);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SendFocusEvent(bool setFocus) {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_focus_event))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->send_focus_event(struct_,
|
|
|
|
setFocus);
|
2011-03-24 21:36:47 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefBrowserCToCpp::SendCaptureLostEvent() {
|
2011-03-24 21:36:47 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, send_capture_lost_event))
|
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-03-24 21:36:47 +01:00
|
|
|
struct_->send_capture_lost_event(struct_);
|
|
|
|
}
|
|
|
|
|
2012-12-19 17:23:51 +01:00
|
|
|
void CefBrowserCToCpp::SetOSModalLoop(bool osModalLoop) {
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, set_osmodal_loop))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->set_osmodal_loop(struct_,
|
|
|
|
osModalLoop);
|
|
|
|
}
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#ifndef NDEBUG
|
2010-12-07 02:30:26 +01:00
|
|
|
template<> long CefCToCpp<CefBrowserCToCpp, CefBrowser,
|
|
|
|
cef_browser_t>::DebugObjCt = 0;
|
2010-10-03 23:04:50 +02:00
|
|
|
#endif
|
|
|
|
|