2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 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.
|
|
|
|
//
|
2024-01-26 03:12:43 +01:00
|
|
|
// $hash=1edf2a7d9f2dc18f4422c9651554577735b83b66$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/frame_cpptoc.h"
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
2019-05-24 22:23:43 +02:00
|
|
|
#include "libcef_dll/cpptoc/process_message_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/request_cpptoc.h"
|
2019-05-11 00:14:48 +02:00
|
|
|
#include "libcef_dll/cpptoc/urlrequest_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8context_cpptoc.h"
|
2012-04-27 23:19:06 +02:00
|
|
|
#include "libcef_dll/ctocpp/domvisitor_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/string_visitor_ctocpp.h"
|
2019-05-11 00:14:48 +02:00
|
|
|
#include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
int CEF_CALLBACK frame_is_valid(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefFrameCppToC::Get(self)->IsValid();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_undo(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Undo();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_redo(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Redo();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_cut(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Cut();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_copy(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Copy();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_paste(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Paste();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_del(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->Delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->SelectAll();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->ViewSource();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_get_source(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_string_visitor_t* visitor) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!visitor) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefFrameCppToC::Get(self)->GetSource(CefStringVisitorCToCpp::Wrap(visitor));
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_string_visitor_t* visitor) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!visitor) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefFrameCppToC::Get(self)->GetText(CefStringVisitorCToCpp::Wrap(visitor));
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_request_t* request) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: request; type: refptr_same
|
|
|
|
DCHECK(request);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!request) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefFrameCppToC::Get(self)->LoadRequest(CefRequestCppToC::Unwrap(request));
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* url) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(url);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!url) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefFrameCppToC::Get(self)->LoadURL(CefString(url));
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* code,
|
|
|
|
const cef_string_t* script_url,
|
|
|
|
int start_line) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-24 20:01:48 +02:00
|
|
|
// Verify param: code; type: string_byref_const
|
|
|
|
DCHECK(code);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!code) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-24 20:01:48 +02:00
|
|
|
// Unverified params: script_url
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->ExecuteJavaScript(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString(code), CefString(script_url), start_line);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefFrameCppToC::Get(self)->IsMain();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefFrameCppToC::Get(self)->IsFocused();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefFrameCppToC::Get(self)->GetName();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
frame_get_identifier(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2024-01-26 03:12:43 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2024-01-26 03:12:43 +01:00
|
|
|
CefString _retval = CefFrameCppToC::Get(self)->GetIdentifier();
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefFrame> _retval = CefFrameCppToC::Get(self)->GetParent();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFrameCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefFrameCppToC::Get(self)->GetURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBrowser> _retval = CefFrameCppToC::Get(self)->GetBrowser();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_v8context_t* CEF_CALLBACK
|
|
|
|
frame_get_v8context(struct _cef_frame_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefV8Context> _retval = CefFrameCppToC::Get(self)->GetV8Context();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefV8ContextCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_domvisitor_t* visitor) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-27 23:19:06 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
// Verify param: visitor; type: refptr_diff
|
|
|
|
DCHECK(visitor);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!visitor) {
|
2012-04-27 23:19:06 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-27 23:19:06 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefFrameCppToC::Get(self)->VisitDOM(CefDOMVisitorCToCpp::Wrap(visitor));
|
2012-04-27 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
2019-05-11 00:14:48 +02:00
|
|
|
struct _cef_urlrequest_t* CEF_CALLBACK
|
|
|
|
frame_create_urlrequest(struct _cef_frame_t* self,
|
|
|
|
struct _cef_request_t* request,
|
|
|
|
struct _cef_urlrequest_client_t* client) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2019-05-11 00:14:48 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-05-11 00:14:48 +02:00
|
|
|
// Verify param: request; type: refptr_same
|
|
|
|
DCHECK(request);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!request) {
|
2019-05-11 00:14:48 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-05-11 00:14:48 +02:00
|
|
|
// Verify param: client; type: refptr_diff
|
|
|
|
DCHECK(client);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!client) {
|
2019-05-11 00:14:48 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-05-11 00:14:48 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefURLRequest> _retval =
|
|
|
|
CefFrameCppToC::Get(self)->CreateURLRequest(
|
|
|
|
CefRequestCppToC::Unwrap(request),
|
|
|
|
CefURLRequestClientCToCpp::Wrap(client));
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefURLRequestCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2019-05-24 22:23:43 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
frame_send_process_message(struct _cef_frame_t* self,
|
|
|
|
cef_process_id_t target_process,
|
|
|
|
struct _cef_process_message_t* message) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2019-05-24 22:23:43 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-05-24 22:23:43 +02:00
|
|
|
// Verify param: message; type: refptr_same
|
|
|
|
DCHECK(message);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!message) {
|
2019-05-24 22:23:43 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2019-05-24 22:23:43 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefFrameCppToC::Get(self)->SendProcessMessage(
|
|
|
|
target_process, CefProcessMessageCppToC::Unwrap(message));
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefFrameCppToC::CefFrameCppToC() {
|
|
|
|
GetStruct()->is_valid = frame_is_valid;
|
|
|
|
GetStruct()->undo = frame_undo;
|
|
|
|
GetStruct()->redo = frame_redo;
|
|
|
|
GetStruct()->cut = frame_cut;
|
|
|
|
GetStruct()->copy = frame_copy;
|
|
|
|
GetStruct()->paste = frame_paste;
|
|
|
|
GetStruct()->del = frame_del;
|
|
|
|
GetStruct()->select_all = frame_select_all;
|
|
|
|
GetStruct()->view_source = frame_view_source;
|
|
|
|
GetStruct()->get_source = frame_get_source;
|
|
|
|
GetStruct()->get_text = frame_get_text;
|
|
|
|
GetStruct()->load_request = frame_load_request;
|
|
|
|
GetStruct()->load_url = frame_load_url;
|
|
|
|
GetStruct()->execute_java_script = frame_execute_java_script;
|
|
|
|
GetStruct()->is_main = frame_is_main;
|
|
|
|
GetStruct()->is_focused = frame_is_focused;
|
|
|
|
GetStruct()->get_name = frame_get_name;
|
|
|
|
GetStruct()->get_identifier = frame_get_identifier;
|
|
|
|
GetStruct()->get_parent = frame_get_parent;
|
|
|
|
GetStruct()->get_url = frame_get_url;
|
|
|
|
GetStruct()->get_browser = frame_get_browser;
|
|
|
|
GetStruct()->get_v8context = frame_get_v8context;
|
|
|
|
GetStruct()->visit_dom = frame_visit_dom;
|
2019-05-11 00:14:48 +02:00
|
|
|
GetStruct()->create_urlrequest = frame_create_urlrequest;
|
2019-05-24 22:23:43 +02:00
|
|
|
GetStruct()->send_process_message = frame_send_process_message;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefFrameCppToC::~CefFrameCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefFrame>
|
|
|
|
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
|
|
|
cef_frame_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType
|
|
|
|
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::kWrapperType =
|
|
|
|
WT_FRAME;
|