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.
|
|
|
|
//
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/string_visitor_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
bool CefFrameCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2012-04-03 03:34:16 +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_valid(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Undo() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, undo))
|
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->undo(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Redo() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, redo))
|
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->redo(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Cut() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, cut))
|
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->cut(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Copy() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, copy))
|
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->copy(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Paste() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, paste))
|
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->paste(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::Delete() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, del))
|
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->del(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::SelectAll() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, select_all))
|
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->select_all(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::ViewSource() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, view_source))
|
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->view_source(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::GetSource(CefRefPtr<CefStringVisitor> visitor) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_source))
|
2012-04-03 03:34:16 +02: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_source(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefStringVisitorCppToC::Wrap(visitor));
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::GetText(CefRefPtr<CefStringVisitor> visitor) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_text))
|
2012-04-03 03:34:16 +02: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_text(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefStringVisitorCppToC::Wrap(visitor));
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::LoadRequest(CefRefPtr<CefRequest> request) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, load_request))
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: request; type: refptr_same
|
|
|
|
DCHECK(request.get());
|
|
|
|
if (!request.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->load_request(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
CefRequestCToCpp::Unwrap(request));
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::LoadURL(const CefString& url) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, load_url))
|
2012-04-03 03:34:16 +02: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->load_url(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
url.GetStruct());
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::LoadString(const CefString& string_val,
|
|
|
|
const CefString& url) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, load_string))
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: string_val; type: string_byref_const
|
|
|
|
DCHECK(!string_val.empty());
|
|
|
|
if (string_val.empty())
|
|
|
|
return;
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->load_string(_struct,
|
2012-04-03 03:34:16 +02:00
|
|
|
string_val.GetStruct(),
|
|
|
|
url.GetStruct());
|
|
|
|
}
|
|
|
|
|
2012-04-24 20:01:48 +02:00
|
|
|
void CefFrameCToCpp::ExecuteJavaScript(const CefString& code,
|
|
|
|
const CefString& script_url, int start_line) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, execute_java_script))
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-04-24 20:01:48 +02:00
|
|
|
// Verify param: code; type: string_byref_const
|
|
|
|
DCHECK(!code.empty());
|
|
|
|
if (code.empty())
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2012-04-24 20:01:48 +02:00
|
|
|
// Unverified params: script_url
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
_struct->execute_java_script(_struct,
|
2012-04-24 20:01:48 +02:00
|
|
|
code.GetStruct(),
|
|
|
|
script_url.GetStruct(),
|
|
|
|
start_line);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefFrameCToCpp::IsMain() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_main))
|
2012-04-03 03:34:16 +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_main(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefFrameCToCpp::IsFocused() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_focused))
|
2012-04-03 03:34:16 +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_focused(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefFrameCToCpp::GetName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_name))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_name(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
int64 CefFrameCToCpp::GetIdentifier() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_identifier))
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int64 _retval = _struct->get_identifier(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefFrame> CefFrameCToCpp::GetParent() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_parent))
|
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_frame_t* _retval = _struct->get_parent(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefFrameCToCpp::GetURL() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_url))
|
2012-04-03 03:34:16 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_url(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefV8Context> CefFrameCToCpp::GetV8Context() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_v8context))
|
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_v8context_t* _retval = _struct->get_v8context(_struct);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ContextCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
void CefFrameCToCpp::VisitDOM(CefRefPtr<CefDOMVisitor> visitor) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, visit_dom))
|
2012-04-27 23:19:06 +02: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->visit_dom(_struct,
|
2012-04-27 23:19:06 +02:00
|
|
|
CefDOMVisitorCppToC::Wrap(visitor));
|
|
|
|
}
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefFrameCToCpp::CefFrameCToCpp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_frame_t* CefCToCpp<CefFrameCToCpp, CefFrame,
|
|
|
|
cef_frame_t>::UnwrapDerived(CefWrapperType type, CefFrame* 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<CefFrameCToCpp, CefFrame,
|
|
|
|
cef_frame_t>::DebugObjCt = 0;
|
2012-04-03 03:34:16 +02:00
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefFrameCToCpp, CefFrame,
|
|
|
|
cef_frame_t>::kWrapperType = WT_FRAME;
|