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-02-23 04:45:13 +01:00
|
|
|
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
|
2011-02-21 23:44:06 +01:00
|
|
|
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
|
2011-10-28 22:30:19 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
|
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 CefFrameCToCpp::Undo() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, undo))
|
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_->undo(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Redo() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, redo))
|
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_->redo(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Cut() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, cut))
|
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_->cut(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Copy() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, copy))
|
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_->copy(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Paste() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, paste))
|
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_->paste(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Delete() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, del))
|
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_->del(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::SelectAll() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, select_all))
|
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_->select_all(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::Print() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, print))
|
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_->print(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::ViewSource() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, view_source))
|
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_->view_source(struct_);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefFrameCToCpp::GetSource() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_source))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_source(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefFrameCToCpp::GetText() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_text))
|
|
|
|
return CefString();
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_text(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::LoadRequest(CefRefPtr<CefRequest> request) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, load_request))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: request; type: refptr_same
|
|
|
|
DCHECK(request.get());
|
|
|
|
if (!request.get())
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
struct_->load_request(struct_,
|
|
|
|
CefRequestCToCpp::Unwrap(request));
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::LoadURL(const CefString& url) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, load_url))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
struct_->load_url(struct_,
|
|
|
|
url.GetStruct());
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::LoadString(const CefString& string_val,
|
|
|
|
const CefString& url) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, load_string))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
// Verify param: string_val; type: string_byref_const
|
|
|
|
DCHECK(!string_val.empty());
|
|
|
|
if (string_val.empty())
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
2011-12-08 02:38:30 +01:00
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->load_string(struct_,
|
2012-01-10 00:46:23 +01:00
|
|
|
string_val.GetStruct(),
|
2011-12-08 02:38:30 +01:00
|
|
|
url.GetStruct());
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefFrameCToCpp::LoadStream(CefRefPtr<CefStreamReader> stream,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefString& url) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, load_stream))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: stream; type: refptr_same
|
|
|
|
DCHECK(stream.get());
|
|
|
|
if (!stream.get())
|
|
|
|
return;
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
struct_->load_stream(struct_,
|
|
|
|
CefStreamReaderCToCpp::Unwrap(stream),
|
2010-11-22 18:49:46 +01:00
|
|
|
url.GetStruct());
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
void CefFrameCToCpp::ExecuteJavaScript(const CefString& jsCode,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefString& scriptUrl, int startLine) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, execute_java_script))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: jsCode; type: string_byref_const
|
|
|
|
DCHECK(!jsCode.empty());
|
|
|
|
if (jsCode.empty())
|
2010-10-03 23:04:50 +02:00
|
|
|
return;
|
2011-12-08 02:38:30 +01:00
|
|
|
// Unverified params: scriptUrl
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
struct_->execute_java_script(struct_,
|
|
|
|
jsCode.GetStruct(),
|
|
|
|
scriptUrl.GetStruct(),
|
|
|
|
startLine);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefFrameCToCpp::IsMain() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_main))
|
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_main(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 CefFrameCToCpp::IsFocused() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_focused))
|
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_focused(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefFrameCToCpp::GetName() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_name))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_name(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
int64 CefFrameCToCpp::GetIdentifier() {
|
2011-12-08 12:44:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_identifier))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2012-01-10 00:46:23 +01:00
|
|
|
int64 _retval = struct_->get_identifier(struct_);
|
2011-12-08 12:44:30 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefFrame> CefFrameCToCpp::GetParent() {
|
2011-12-08 12:44:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_parent))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_frame_t* _retval = struct_->get_parent(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefFrameCToCpp::GetURL() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_url))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_url(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_browser))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_browser_t* _retval = struct_->get_browser(struct_);
|
2011-02-21 23:44:06 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCToCpp::Wrap(_retval);
|
2011-02-21 23:44:06 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
void CefFrameCToCpp::VisitDOM(CefRefPtr<CefDOMVisitor> visitor) {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, visit_dom))
|
2011-02-23 04:45:13 +01:00
|
|
|
return;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor.get());
|
|
|
|
if (!visitor.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
struct_->visit_dom(struct_,
|
|
|
|
CefDOMVisitorCppToC::Wrap(visitor));
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefV8Context> CefFrameCToCpp::GetV8Context() {
|
2011-10-28 22:30:19 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_v8context))
|
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-10-28 22:30:19 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_v8context_t* _retval = struct_->get_v8context(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ContextCToCpp::Wrap(_retval);
|
2011-10-28 22:30:19 +02:00
|
|
|
}
|
|
|
|
|
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<CefFrameCToCpp, CefFrame, cef_frame_t>::DebugObjCt =
|
|
|
|
0;
|
2010-10-03 23:04:50 +02:00
|
|
|
#endif
|
|
|
|
|