mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Delete Alloy bootstrap (fixes #3685)
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c6611682e7524936295e32a429dd92a22646a95a$
|
||||
// $hash=434a753c90262b051077f7a79f3106ac52ffbf75$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
|
||||
@ -17,7 +17,6 @@
|
||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/drag_data_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/extension_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/registration_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
||||
@ -1367,43 +1366,6 @@ browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self,
|
||||
enabled ? true : false, min_sizeVal, max_sizeVal);
|
||||
}
|
||||
|
||||
struct _cef_extension_t* CEF_CALLBACK
|
||||
browser_host_get_extension(struct _cef_browser_host_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefExtension> _retval =
|
||||
CefBrowserHostCppToC::Get(self)->GetExtension();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefExtensionCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
browser_host_is_background_host(struct _cef_browser_host_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefBrowserHostCppToC::Get(self)->IsBackgroundHost();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_audio_muted(struct _cef_browser_host_t* self,
|
||||
int mute) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
@ -1617,8 +1579,6 @@ CefBrowserHostCppToC::CefBrowserHostCppToC() {
|
||||
browser_host_get_visible_navigation_entry;
|
||||
GetStruct()->set_accessibility_state = browser_host_set_accessibility_state;
|
||||
GetStruct()->set_auto_resize_enabled = browser_host_set_auto_resize_enabled;
|
||||
GetStruct()->get_extension = browser_host_get_extension;
|
||||
GetStruct()->is_background_host = browser_host_is_background_host;
|
||||
GetStruct()->set_audio_muted = browser_host_set_audio_muted;
|
||||
GetStruct()->is_audio_muted = browser_host_is_audio_muted;
|
||||
GetStruct()->is_fullscreen = browser_host_is_fullscreen;
|
||||
|
@ -1,207 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=f93d8498bb115b9aa55f16c6b3b1f68eb9729bdc$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/extension_cpptoc.h"
|
||||
|
||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/extension_handler_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
extension_get_identifier(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefExtensionCppToC::Get(self)->GetIdentifier();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
extension_get_path(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefExtensionCppToC::Get(self)->GetPath();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
struct _cef_dictionary_value_t* CEF_CALLBACK
|
||||
extension_get_manifest(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDictionaryValue> _retval =
|
||||
CefExtensionCppToC::Get(self)->GetManifest();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDictionaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK extension_is_same(struct _cef_extension_t* self,
|
||||
struct _cef_extension_t* that) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: that; type: refptr_same
|
||||
DCHECK(that);
|
||||
if (!that) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval =
|
||||
CefExtensionCppToC::Get(self)->IsSame(CefExtensionCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_extension_handler_t* CEF_CALLBACK
|
||||
extension_get_handler(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefExtensionHandler> _retval =
|
||||
CefExtensionCppToC::Get(self)->GetHandler();
|
||||
|
||||
// Return type: refptr_diff
|
||||
return CefExtensionHandlerCToCpp::Unwrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_request_context_t* CEF_CALLBACK
|
||||
extension_get_loader_context(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefRequestContext> _retval =
|
||||
CefExtensionCppToC::Get(self)->GetLoaderContext();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefRequestContextCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK extension_is_loaded(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefExtensionCppToC::Get(self)->IsLoaded();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK extension_unload(struct _cef_extension_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefExtensionCppToC::Get(self)->Unload();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefExtensionCppToC::CefExtensionCppToC() {
|
||||
GetStruct()->get_identifier = extension_get_identifier;
|
||||
GetStruct()->get_path = extension_get_path;
|
||||
GetStruct()->get_manifest = extension_get_manifest;
|
||||
GetStruct()->is_same = extension_is_same;
|
||||
GetStruct()->get_handler = extension_get_handler;
|
||||
GetStruct()->get_loader_context = extension_get_loader_context;
|
||||
GetStruct()->is_loaded = extension_is_loaded;
|
||||
GetStruct()->unload = extension_unload;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefExtensionCppToC::~CefExtensionCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefExtension>
|
||||
CefCppToCRefCounted<CefExtensionCppToC, CefExtension, cef_extension_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_extension_t* s) {
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefExtensionCppToC,
|
||||
CefExtension,
|
||||
cef_extension_t>::kWrapperType =
|
||||
WT_EXTENSION;
|
@ -1,41 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=96c41e4ebd8f2073bb8d7f4db039fff82b34665d$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_EXTENSION_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_EXTENSION_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#if !defined(BUILDING_CEF_SHARED)
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/capi/cef_extension_capi.h"
|
||||
#include "include/capi/cef_extension_handler_capi.h"
|
||||
#include "include/capi/cef_request_context_capi.h"
|
||||
#include "include/cef_extension.h"
|
||||
#include "include/cef_extension_handler.h"
|
||||
#include "include/cef_request_context.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefExtensionCppToC : public CefCppToCRefCounted<CefExtensionCppToC,
|
||||
CefExtension,
|
||||
cef_extension_t> {
|
||||
public:
|
||||
CefExtensionCppToC();
|
||||
virtual ~CefExtensionCppToC();
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_EXTENSION_CPPTOC_H_
|
@ -1,428 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=8d8587b2574fa0274191b42dad62bb5bebe23f3e$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/extension_handler_cpptoc.h"
|
||||
|
||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/extension_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
#include "libcef_dll/template_util.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK extension_handler_on_extension_load_failed(
|
||||
struct _cef_extension_handler_t* self,
|
||||
cef_errorcode_t result) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefExtensionHandlerCppToC::Get(self)->OnExtensionLoadFailed(result);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK
|
||||
extension_handler_on_extension_loaded(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefExtensionHandlerCppToC::Get(self)->OnExtensionLoaded(
|
||||
CefExtensionCToCpp::Wrap(extension));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK
|
||||
extension_handler_on_extension_unloaded(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefExtensionHandlerCppToC::Get(self)->OnExtensionUnloaded(
|
||||
CefExtensionCToCpp::Wrap(extension));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK extension_handler_on_before_background_browser(
|
||||
struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
const cef_string_t* url,
|
||||
cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: url; type: string_byref_const
|
||||
DCHECK(url);
|
||||
if (!url) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: client; type: refptr_same_byref
|
||||
DCHECK(client);
|
||||
if (!client) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: settings; type: struct_byref
|
||||
DCHECK(settings);
|
||||
if (!settings) {
|
||||
return 0;
|
||||
}
|
||||
if (!template_util::has_valid_size(settings)) {
|
||||
DCHECK(false) << "invalid settings->[base.]size";
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Translate param: client; type: refptr_same_byref
|
||||
CefRefPtr<CefClient> clientPtr;
|
||||
if (client && *client) {
|
||||
clientPtr = CefClientCppToC::Unwrap(*client);
|
||||
}
|
||||
CefClient* clientOrig = clientPtr.get();
|
||||
// Translate param: settings; type: struct_byref
|
||||
CefBrowserSettings settingsObj;
|
||||
if (settings) {
|
||||
settingsObj.AttachTo(*settings);
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval =
|
||||
CefExtensionHandlerCppToC::Get(self)->OnBeforeBackgroundBrowser(
|
||||
CefExtensionCToCpp::Wrap(extension), CefString(url), clientPtr,
|
||||
settingsObj);
|
||||
|
||||
// Restore param: client; type: refptr_same_byref
|
||||
if (client) {
|
||||
if (clientPtr.get()) {
|
||||
if (clientPtr.get() != clientOrig) {
|
||||
*client = CefClientCppToC::Wrap(clientPtr);
|
||||
}
|
||||
} else {
|
||||
*client = nullptr;
|
||||
}
|
||||
}
|
||||
// Restore param: settings; type: struct_byref
|
||||
if (settings) {
|
||||
settingsObj.DetachTo(*settings);
|
||||
}
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
extension_handler_on_before_browser(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
cef_browser_t* browser,
|
||||
cef_browser_t* active_browser,
|
||||
int index,
|
||||
const cef_string_t* url,
|
||||
int active,
|
||||
cef_window_info_t* windowInfo,
|
||||
cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: active_browser; type: refptr_diff
|
||||
DCHECK(active_browser);
|
||||
if (!active_browser) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: url; type: string_byref_const
|
||||
DCHECK(url);
|
||||
if (!url) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: windowInfo; type: struct_byref
|
||||
DCHECK(windowInfo);
|
||||
if (!windowInfo) {
|
||||
return 0;
|
||||
}
|
||||
if (!template_util::has_valid_size(windowInfo)) {
|
||||
DCHECK(false) << "invalid windowInfo->[base.]size";
|
||||
return 0;
|
||||
}
|
||||
// Verify param: client; type: refptr_same_byref
|
||||
DCHECK(client);
|
||||
if (!client) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: settings; type: struct_byref
|
||||
DCHECK(settings);
|
||||
if (!settings) {
|
||||
return 0;
|
||||
}
|
||||
if (!template_util::has_valid_size(settings)) {
|
||||
DCHECK(false) << "invalid settings->[base.]size";
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Translate param: windowInfo; type: struct_byref
|
||||
CefWindowInfo windowInfoObj;
|
||||
if (windowInfo) {
|
||||
windowInfoObj.AttachTo(*windowInfo);
|
||||
}
|
||||
// Translate param: client; type: refptr_same_byref
|
||||
CefRefPtr<CefClient> clientPtr;
|
||||
if (client && *client) {
|
||||
clientPtr = CefClientCppToC::Unwrap(*client);
|
||||
}
|
||||
CefClient* clientOrig = clientPtr.get();
|
||||
// Translate param: settings; type: struct_byref
|
||||
CefBrowserSettings settingsObj;
|
||||
if (settings) {
|
||||
settingsObj.AttachTo(*settings);
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefExtensionHandlerCppToC::Get(self)->OnBeforeBrowser(
|
||||
CefExtensionCToCpp::Wrap(extension), CefBrowserCToCpp::Wrap(browser),
|
||||
CefBrowserCToCpp::Wrap(active_browser), index, CefString(url),
|
||||
active ? true : false, windowInfoObj, clientPtr, settingsObj);
|
||||
|
||||
// Restore param: windowInfo; type: struct_byref
|
||||
if (windowInfo) {
|
||||
windowInfoObj.DetachTo(*windowInfo);
|
||||
}
|
||||
// Restore param: client; type: refptr_same_byref
|
||||
if (client) {
|
||||
if (clientPtr.get()) {
|
||||
if (clientPtr.get() != clientOrig) {
|
||||
*client = CefClientCppToC::Wrap(clientPtr);
|
||||
}
|
||||
} else {
|
||||
*client = nullptr;
|
||||
}
|
||||
}
|
||||
// Restore param: settings; type: struct_byref
|
||||
if (settings) {
|
||||
settingsObj.DetachTo(*settings);
|
||||
}
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_browser_t* CEF_CALLBACK
|
||||
extension_handler_get_active_browser(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
cef_browser_t* browser,
|
||||
int include_incognito) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return NULL;
|
||||
}
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBrowser> _retval =
|
||||
CefExtensionHandlerCppToC::Get(self)->GetActiveBrowser(
|
||||
CefExtensionCToCpp::Wrap(extension), CefBrowserCToCpp::Wrap(browser),
|
||||
include_incognito ? true : false);
|
||||
|
||||
// Return type: refptr_diff
|
||||
return CefBrowserCToCpp::Unwrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
extension_handler_can_access_browser(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
cef_browser_t* browser,
|
||||
int include_incognito,
|
||||
cef_browser_t* target_browser) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: target_browser; type: refptr_diff
|
||||
DCHECK(target_browser);
|
||||
if (!target_browser) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefExtensionHandlerCppToC::Get(self)->CanAccessBrowser(
|
||||
CefExtensionCToCpp::Wrap(extension), CefBrowserCToCpp::Wrap(browser),
|
||||
include_incognito ? true : false, CefBrowserCToCpp::Wrap(target_browser));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK extension_handler_get_extension_resource(
|
||||
struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* file,
|
||||
cef_get_extension_resource_callback_t* callback) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension; type: refptr_diff
|
||||
DCHECK(extension);
|
||||
if (!extension) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: file; type: string_byref_const
|
||||
DCHECK(file);
|
||||
if (!file) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: callback; type: refptr_diff
|
||||
DCHECK(callback);
|
||||
if (!callback) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefExtensionHandlerCppToC::Get(self)->GetExtensionResource(
|
||||
CefExtensionCToCpp::Wrap(extension), CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(file), CefGetExtensionResourceCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefExtensionHandlerCppToC::CefExtensionHandlerCppToC() {
|
||||
GetStruct()->on_extension_load_failed =
|
||||
extension_handler_on_extension_load_failed;
|
||||
GetStruct()->on_extension_loaded = extension_handler_on_extension_loaded;
|
||||
GetStruct()->on_extension_unloaded = extension_handler_on_extension_unloaded;
|
||||
GetStruct()->on_before_background_browser =
|
||||
extension_handler_on_before_background_browser;
|
||||
GetStruct()->on_before_browser = extension_handler_on_before_browser;
|
||||
GetStruct()->get_active_browser = extension_handler_get_active_browser;
|
||||
GetStruct()->can_access_browser = extension_handler_can_access_browser;
|
||||
GetStruct()->get_extension_resource =
|
||||
extension_handler_get_extension_resource;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefExtensionHandlerCppToC::~CefExtensionHandlerCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefExtensionHandler> CefCppToCRefCounted<
|
||||
CefExtensionHandlerCppToC,
|
||||
CefExtensionHandler,
|
||||
cef_extension_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_extension_handler_t* s) {
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefExtensionHandlerCppToC,
|
||||
CefExtensionHandler,
|
||||
cef_extension_handler_t>::kWrapperType =
|
||||
WT_EXTENSION_HANDLER;
|
@ -1,40 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=b0426125f1325485481cf11bc1530a353a971ad5$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_EXTENSION_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_EXTENSION_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#if !defined(WRAPPING_CEF_SHARED)
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/capi/cef_extension_handler_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/cef_extension_handler.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefExtensionHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefExtensionHandlerCppToC,
|
||||
CefExtensionHandler,
|
||||
cef_extension_handler_t> {
|
||||
public:
|
||||
CefExtensionHandlerCppToC();
|
||||
virtual ~CefExtensionHandlerCppToC();
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_EXTENSION_HANDLER_CPPTOC_H_
|
@ -1,89 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=fec3296cedf53576084a61a8f19ad418aa111df9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.h"
|
||||
|
||||
#include "libcef_dll/cpptoc/stream_reader_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK get_extension_resource_callback_cont(
|
||||
struct _cef_get_extension_resource_callback_t* self,
|
||||
struct _cef_stream_reader_t* stream) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
// Unverified params: stream
|
||||
|
||||
// Execute
|
||||
CefGetExtensionResourceCallbackCppToC::Get(self)->Continue(
|
||||
CefStreamReaderCppToC::Unwrap(stream));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK get_extension_resource_callback_cancel(
|
||||
struct _cef_get_extension_resource_callback_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefGetExtensionResourceCallbackCppToC::Get(self)->Cancel();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefGetExtensionResourceCallbackCppToC::CefGetExtensionResourceCallbackCppToC() {
|
||||
GetStruct()->cont = get_extension_resource_callback_cont;
|
||||
GetStruct()->cancel = get_extension_resource_callback_cancel;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefGetExtensionResourceCallbackCppToC::
|
||||
~CefGetExtensionResourceCallbackCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefGetExtensionResourceCallback>
|
||||
CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC,
|
||||
CefGetExtensionResourceCallback,
|
||||
cef_get_extension_resource_callback_t>::
|
||||
UnwrapDerived(CefWrapperType type,
|
||||
cef_get_extension_resource_callback_t* s) {
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC,
|
||||
CefGetExtensionResourceCallback,
|
||||
cef_get_extension_resource_callback_t>::kWrapperType =
|
||||
WT_GET_EXTENSION_RESOURCE_CALLBACK;
|
@ -1,40 +0,0 @@
|
||||
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
||||
// 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.
|
||||
//
|
||||
// $hash=d55002c59927f7d7b6601e0771c26e3734a7602c$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_GET_EXTENSION_RESOURCE_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_GET_EXTENSION_RESOURCE_CALLBACK_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#if !defined(BUILDING_CEF_SHARED)
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/capi/cef_extension_handler_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/cef_extension_handler.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefGetExtensionResourceCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC,
|
||||
CefGetExtensionResourceCallback,
|
||||
cef_get_extension_resource_callback_t> {
|
||||
public:
|
||||
CefGetExtensionResourceCallbackCppToC();
|
||||
virtual ~CefGetExtensionResourceCallbackCppToC();
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_GET_EXTENSION_RESOURCE_CALLBACK_CPPTOC_H_
|
@ -9,23 +9,20 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=48bce7be945d4e74682ffa41e8b45eb46a4f7589$
|
||||
// $hash=7fe55d8931d961bf4d76d7b40a98047ef1cda61c$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
||||
|
||||
#include "libcef_dll/cpptoc/cookie_manager_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/extension_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/media_router_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/value_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/extension_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/request_context_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/resolve_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h"
|
||||
#include "libcef_dll/template_util.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
@ -327,130 +324,6 @@ request_context_resolve_host(struct _cef_request_context_t* self,
|
||||
CefString(origin), CefResolveCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK
|
||||
request_context_load_extension(struct _cef_request_context_t* self,
|
||||
const cef_string_t* root_directory,
|
||||
struct _cef_dictionary_value_t* manifest,
|
||||
cef_extension_handler_t* handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
// Verify param: root_directory; type: string_byref_const
|
||||
DCHECK(root_directory);
|
||||
if (!root_directory) {
|
||||
return;
|
||||
}
|
||||
// Unverified params: manifest, handler
|
||||
|
||||
// Execute
|
||||
CefRequestContextCppToC::Get(self)->LoadExtension(
|
||||
CefString(root_directory), CefDictionaryValueCppToC::Unwrap(manifest),
|
||||
CefExtensionHandlerCToCpp::Wrap(handler));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
request_context_did_load_extension(struct _cef_request_context_t* self,
|
||||
const cef_string_t* extension_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(extension_id);
|
||||
if (!extension_id) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestContextCppToC::Get(self)->DidLoadExtension(
|
||||
CefString(extension_id));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
request_context_has_extension(struct _cef_request_context_t* self,
|
||||
const cef_string_t* extension_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(extension_id);
|
||||
if (!extension_id) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
bool _retval =
|
||||
CefRequestContextCppToC::Get(self)->HasExtension(CefString(extension_id));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK
|
||||
request_context_get_extensions(struct _cef_request_context_t* self,
|
||||
cef_string_list_t extension_ids) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return 0;
|
||||
}
|
||||
// Verify param: extension_ids; type: string_vec_byref
|
||||
DCHECK(extension_ids);
|
||||
if (!extension_ids) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Translate param: extension_ids; type: string_vec_byref
|
||||
std::vector<CefString> extension_idsList;
|
||||
transfer_string_list_contents(extension_ids, extension_idsList);
|
||||
|
||||
// Execute
|
||||
bool _retval =
|
||||
CefRequestContextCppToC::Get(self)->GetExtensions(extension_idsList);
|
||||
|
||||
// Restore param: extension_ids; type: string_vec_byref
|
||||
cef_string_list_clear(extension_ids);
|
||||
transfer_string_list_contents(extension_idsList, extension_ids);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_extension_t* CEF_CALLBACK
|
||||
request_context_get_extension(struct _cef_request_context_t* self,
|
||||
const cef_string_t* extension_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self) {
|
||||
return NULL;
|
||||
}
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(extension_id);
|
||||
if (!extension_id) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefExtension> _retval =
|
||||
CefRequestContextCppToC::Get(self)->GetExtension(CefString(extension_id));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefExtensionCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_media_router_t* CEF_CALLBACK
|
||||
request_context_get_media_router(struct _cef_request_context_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
@ -771,11 +644,6 @@ CefRequestContextCppToC::CefRequestContextCppToC() {
|
||||
request_context_clear_http_auth_credentials;
|
||||
GetStruct()->close_all_connections = request_context_close_all_connections;
|
||||
GetStruct()->resolve_host = request_context_resolve_host;
|
||||
GetStruct()->load_extension = request_context_load_extension;
|
||||
GetStruct()->did_load_extension = request_context_did_load_extension;
|
||||
GetStruct()->has_extension = request_context_has_extension;
|
||||
GetStruct()->get_extensions = request_context_get_extensions;
|
||||
GetStruct()->get_extension = request_context_get_extension;
|
||||
GetStruct()->get_media_router = request_context_get_media_router;
|
||||
GetStruct()->get_website_setting = request_context_get_website_setting;
|
||||
GetStruct()->set_website_setting = request_context_set_website_setting;
|
||||
|
Reference in New Issue
Block a user