mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,17 +9,19 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=fa03e8ba9a443a9028246fe21a8995d8a7bdb7d5$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/value_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK accessibility_handler_on_accessibility_tree_change(
|
||||
struct _cef_accessibility_handler_t* self, struct _cef_value_t* value) {
|
||||
struct _cef_accessibility_handler_t* self,
|
||||
struct _cef_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -36,7 +38,8 @@ void CEF_CALLBACK accessibility_handler_on_accessibility_tree_change(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK accessibility_handler_on_accessibility_location_change(
|
||||
struct _cef_accessibility_handler_t* self, struct _cef_value_t* value) {
|
||||
struct _cef_accessibility_handler_t* self,
|
||||
struct _cef_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -54,7 +57,6 @@ void CEF_CALLBACK accessibility_handler_on_accessibility_location_change(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefAccessibilityHandlerCppToC::CefAccessibilityHandlerCppToC() {
|
||||
@ -64,18 +66,27 @@ CefAccessibilityHandlerCppToC::CefAccessibilityHandlerCppToC() {
|
||||
accessibility_handler_on_accessibility_location_change;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefAccessibilityHandler> CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler, cef_accessibility_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_accessibility_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefAccessibilityHandler> CefCppToCRefCounted<
|
||||
CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler,
|
||||
cef_accessibility_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_accessibility_handler_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler, cef_accessibility_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler,
|
||||
cef_accessibility_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler, cef_accessibility_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler,
|
||||
cef_accessibility_handler_t>::kWrapperType =
|
||||
WT_ACCESSIBILITY_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a3b83c6f6147f67affbd076d6eb6cb65119a9159$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_accessibility_handler.h"
|
||||
#include "include/capi/cef_accessibility_handler_capi.h"
|
||||
#include "include/cef_accessibility_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 CefAccessibilityHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
||||
CefAccessibilityHandler, cef_accessibility_handler_t> {
|
||||
CefAccessibilityHandler,
|
||||
cef_accessibility_handler_t> {
|
||||
public:
|
||||
CefAccessibilityHandlerCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9f5778bffbd8c25b6f4ee2e7ec06e9eca5f9f48d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/app_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h"
|
||||
@ -17,12 +19,12 @@
|
||||
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/scheme_registrar_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK app_on_before_command_line_processing(struct _cef_app_t* self,
|
||||
void CEF_CALLBACK app_on_before_command_line_processing(
|
||||
struct _cef_app_t* self,
|
||||
const cef_string_t* process_type,
|
||||
struct _cef_command_line_t* command_line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
@ -38,12 +40,12 @@ void CEF_CALLBACK app_on_before_command_line_processing(struct _cef_app_t* self,
|
||||
|
||||
// Execute
|
||||
CefAppCppToC::Get(self)->OnBeforeCommandLineProcessing(
|
||||
CefString(process_type),
|
||||
CefCommandLineCToCpp::Wrap(command_line));
|
||||
CefString(process_type), CefCommandLineCToCpp::Wrap(command_line));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK app_on_register_custom_schemes(struct _cef_app_t* self,
|
||||
struct _cef_scheme_registrar_t* registrar) {
|
||||
void CEF_CALLBACK
|
||||
app_on_register_custom_schemes(struct _cef_app_t* self,
|
||||
struct _cef_scheme_registrar_t* registrar) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -55,16 +57,15 @@ void CEF_CALLBACK app_on_register_custom_schemes(struct _cef_app_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: registrar; type: rawptr_diff
|
||||
CefOwnPtr<CefSchemeRegistrar> registrarPtr(CefSchemeRegistrarCToCpp::Wrap(
|
||||
registrar));
|
||||
CefOwnPtr<CefSchemeRegistrar> registrarPtr(
|
||||
CefSchemeRegistrarCToCpp::Wrap(registrar));
|
||||
|
||||
// Execute
|
||||
CefAppCppToC::Get(self)->OnRegisterCustomSchemes(
|
||||
registrarPtr.get());
|
||||
CefAppCppToC::Get(self)->OnRegisterCustomSchemes(registrarPtr.get());
|
||||
}
|
||||
|
||||
struct _cef_resource_bundle_handler_t* CEF_CALLBACK app_get_resource_bundle_handler(
|
||||
struct _cef_app_t* self) {
|
||||
struct _cef_resource_bundle_handler_t* CEF_CALLBACK
|
||||
app_get_resource_bundle_handler(struct _cef_app_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -72,15 +73,15 @@ struct _cef_resource_bundle_handler_t* CEF_CALLBACK app_get_resource_bundle_hand
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefResourceBundleHandler> _retval = CefAppCppToC::Get(
|
||||
self)->GetResourceBundleHandler();
|
||||
CefRefPtr<CefResourceBundleHandler> _retval =
|
||||
CefAppCppToC::Get(self)->GetResourceBundleHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefResourceBundleHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_browser_process_handler_t* CEF_CALLBACK app_get_browser_process_handler(
|
||||
struct _cef_app_t* self) {
|
||||
struct _cef_browser_process_handler_t* CEF_CALLBACK
|
||||
app_get_browser_process_handler(struct _cef_app_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -88,15 +89,15 @@ struct _cef_browser_process_handler_t* CEF_CALLBACK app_get_browser_process_hand
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBrowserProcessHandler> _retval = CefAppCppToC::Get(
|
||||
self)->GetBrowserProcessHandler();
|
||||
CefRefPtr<CefBrowserProcessHandler> _retval =
|
||||
CefAppCppToC::Get(self)->GetBrowserProcessHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBrowserProcessHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_render_process_handler_t* CEF_CALLBACK app_get_render_process_handler(
|
||||
struct _cef_app_t* self) {
|
||||
struct _cef_render_process_handler_t* CEF_CALLBACK
|
||||
app_get_render_process_handler(struct _cef_app_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -104,8 +105,8 @@ struct _cef_render_process_handler_t* CEF_CALLBACK app_get_render_process_handle
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefRenderProcessHandler> _retval = CefAppCppToC::Get(
|
||||
self)->GetRenderProcessHandler();
|
||||
CefRefPtr<CefRenderProcessHandler> _retval =
|
||||
CefAppCppToC::Get(self)->GetRenderProcessHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefRenderProcessHandlerCppToC::Wrap(_retval);
|
||||
@ -113,7 +114,6 @@ struct _cef_render_process_handler_t* CEF_CALLBACK app_get_render_process_handle
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefAppCppToC::CefAppCppToC() {
|
||||
@ -125,16 +125,21 @@ CefAppCppToC::CefAppCppToC() {
|
||||
GetStruct()->get_render_process_handler = app_get_render_process_handler;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefApp> CefCppToCRefCounted<CefAppCppToC, CefApp,
|
||||
cef_app_t>::UnwrapDerived(CefWrapperType type, cef_app_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefApp>
|
||||
CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_app_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefAppCppToC, CefApp,
|
||||
cef_app_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefAppCppToC, CefApp,
|
||||
cef_app_t>::kWrapperType = WT_APP;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t>::kWrapperType = WT_APP;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=d584a988913aee077d1e99f919d02524133d299e$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
|
||||
@ -18,8 +20,8 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_app.h"
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
#include "include/cef_app.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,16 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=bffdd556dc95e464816b9aa0c8b46e7fadd89e5d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/auth_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self,
|
||||
const cef_string_t* username, const cef_string_t* password) {
|
||||
const cef_string_t* username,
|
||||
const cef_string_t* password) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,9 +33,8 @@ void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self,
|
||||
// Unverified params: password
|
||||
|
||||
// Execute
|
||||
CefAuthCallbackCppToC::Get(self)->Continue(
|
||||
CefString(username),
|
||||
CefString(password));
|
||||
CefAuthCallbackCppToC::Get(self)->Continue(CefString(username),
|
||||
CefString(password));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK auth_callback_cancel(struct _cef_auth_callback_t* self) {
|
||||
@ -49,7 +50,6 @@ void CEF_CALLBACK auth_callback_cancel(struct _cef_auth_callback_t* self) {
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefAuthCallbackCppToC::CefAuthCallbackCppToC() {
|
||||
@ -57,17 +57,25 @@ CefAuthCallbackCppToC::CefAuthCallbackCppToC() {
|
||||
GetStruct()->cancel = auth_callback_cancel;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefAuthCallback> CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback, cef_auth_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_auth_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefAuthCallback> CefCppToCRefCounted<
|
||||
CefAuthCallbackCppToC,
|
||||
CefAuthCallback,
|
||||
cef_auth_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_auth_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback, cef_auth_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback,
|
||||
cef_auth_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback, cef_auth_callback_t>::kWrapperType = WT_AUTH_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback,
|
||||
cef_auth_callback_t>::kWrapperType =
|
||||
WT_AUTH_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=e06b1addaaf2c8ddd13278a75ece4481e0f949c3$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_auth_callback.h"
|
||||
#include "include/capi/cef_auth_callback_capi.h"
|
||||
#include "include/cef_auth_callback.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 CefAuthCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefAuthCallbackCppToC, CefAuthCallback,
|
||||
cef_auth_callback_t> {
|
||||
class CefAuthCallbackCppToC : public CefCppToCRefCounted<CefAuthCallbackCppToC,
|
||||
CefAuthCallback,
|
||||
cef_auth_callback_t> {
|
||||
public:
|
||||
CefAuthCallbackCppToC();
|
||||
};
|
||||
|
@ -4,21 +4,28 @@
|
||||
|
||||
#include "libcef_dll/cpptoc/base_ref_counted_cpptoc.h"
|
||||
|
||||
CefBaseRefCountedCppToC::CefBaseRefCountedCppToC() {
|
||||
}
|
||||
CefBaseRefCountedCppToC::CefBaseRefCountedCppToC() {}
|
||||
|
||||
template<> CefRefPtr<CefBaseRefCounted> CefCppToCRefCounted<
|
||||
CefBaseRefCountedCppToC, CefBaseRefCounted, cef_base_ref_counted_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_base_ref_counted_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefBaseRefCounted> CefCppToCRefCounted<
|
||||
CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted,
|
||||
cef_base_ref_counted_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_base_ref_counted_t* s) {
|
||||
NOTREACHED();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted, cef_base_ref_counted_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted,
|
||||
cef_base_ref_counted_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted, cef_base_ref_counted_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted,
|
||||
cef_base_ref_counted_t>::kWrapperType =
|
||||
WT_BASE_REF_COUNTED;
|
||||
|
@ -6,8 +6,8 @@
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BASE_REF_COUNTED_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
#if !defined(WRAPPING_CEF_SHARED)
|
||||
@ -16,7 +16,8 @@
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
class CefBaseRefCountedCppToC
|
||||
: public CefCppToCRefCounted<CefBaseRefCountedCppToC, CefBaseRefCounted,
|
||||
: public CefCppToCRefCounted<CefBaseRefCountedCppToC,
|
||||
CefBaseRefCounted,
|
||||
cef_base_ref_counted_t> {
|
||||
public:
|
||||
CefBaseRefCountedCppToC();
|
||||
|
@ -4,17 +4,18 @@
|
||||
|
||||
#include "libcef_dll/cpptoc/base_scoped_cpptoc.h"
|
||||
|
||||
CefBaseScopedCppToC::CefBaseScopedCppToC() {
|
||||
}
|
||||
CefBaseScopedCppToC::CefBaseScopedCppToC() {}
|
||||
|
||||
template<> CefOwnPtr<CefBaseScoped>
|
||||
template <>
|
||||
CefOwnPtr<CefBaseScoped>
|
||||
CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped, cef_base_scoped_t>::
|
||||
UnwrapDerivedOwn(CefWrapperType type, cef_base_scoped_t* s) {
|
||||
NOTREACHED();
|
||||
return CefOwnPtr<CefBaseScoped>();
|
||||
}
|
||||
|
||||
template<> CefRawPtr<CefBaseScoped>
|
||||
template <>
|
||||
CefRawPtr<CefBaseScoped>
|
||||
CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped, cef_base_scoped_t>::
|
||||
UnwrapDerivedRaw(CefWrapperType type, cef_base_scoped_t* s) {
|
||||
NOTREACHED();
|
||||
@ -22,9 +23,14 @@ CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped, cef_base_scoped_t>::
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCScoped<CefBaseScopedCppToC,
|
||||
CefBaseScoped, cef_base_scoped_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCScoped<CefBaseScopedCppToC,
|
||||
CefBaseScoped,
|
||||
cef_base_scoped_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped,
|
||||
cef_base_scoped_t>::kWrapperType = WT_BASE_SCOPED;
|
||||
template <>
|
||||
CefWrapperType CefCppToCScoped<CefBaseScopedCppToC,
|
||||
CefBaseScoped,
|
||||
cef_base_scoped_t>::kWrapperType =
|
||||
WT_BASE_SCOPED;
|
||||
|
@ -6,8 +6,8 @@
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_scoped.h"
|
||||
|
||||
#if !defined(WRAPPING_CEF_SHARED)
|
||||
@ -15,9 +15,9 @@
|
||||
#endif
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
class CefBaseScopedCppToC
|
||||
: public CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped,
|
||||
cef_base_scoped_t> {
|
||||
class CefBaseScopedCppToC : public CefCppToCScoped<CefBaseScopedCppToC,
|
||||
CefBaseScoped,
|
||||
cef_base_scoped_t> {
|
||||
public:
|
||||
CefBaseScopedCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,19 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a904d37178d2bce73fdd6937cefa9f70dc352038$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/before_download_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK before_download_callback_cont(
|
||||
struct _cef_before_download_callback_t* self,
|
||||
const cef_string_t* download_path, int show_dialog) {
|
||||
void CEF_CALLBACK
|
||||
before_download_callback_cont(struct _cef_before_download_callback_t* self,
|
||||
const cef_string_t* download_path,
|
||||
int show_dialog) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -29,32 +31,38 @@ void CEF_CALLBACK before_download_callback_cont(
|
||||
|
||||
// Execute
|
||||
CefBeforeDownloadCallbackCppToC::Get(self)->Continue(
|
||||
CefString(download_path),
|
||||
show_dialog?true:false);
|
||||
CefString(download_path), show_dialog ? true : false);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBeforeDownloadCallbackCppToC::CefBeforeDownloadCallbackCppToC() {
|
||||
GetStruct()->cont = before_download_callback_cont;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefBeforeDownloadCallback> CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback, cef_before_download_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_before_download_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefBeforeDownloadCallback>
|
||||
CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback,
|
||||
cef_before_download_callback_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_before_download_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback, cef_before_download_callback_t>::DebugObjCt =
|
||||
0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback,
|
||||
cef_before_download_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback, cef_before_download_callback_t>::kWrapperType =
|
||||
WT_BEFORE_DOWNLOAD_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback,
|
||||
cef_before_download_callback_t>::kWrapperType =
|
||||
WT_BEFORE_DOWNLOAD_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=38489749c57028ee0c8989899826f866eab24aea$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/capi/cef_download_handler_capi.h"
|
||||
#include "include/cef_download_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 CefBeforeDownloadCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
|
||||
CefBeforeDownloadCallback, cef_before_download_callback_t> {
|
||||
CefBeforeDownloadCallback,
|
||||
cef_before_download_callback_t> {
|
||||
public:
|
||||
CefBeforeDownloadCallbackCppToC();
|
||||
};
|
||||
|
@ -9,14 +9,15 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3bb896234f1b9fc0ee14f936f28b6585a82502db$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_binary_value_t* cef_binary_value_create(const void* data,
|
||||
size_t data_size) {
|
||||
size_t data_size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: data; type: simple_byaddr
|
||||
@ -25,15 +26,12 @@ CEF_EXPORT cef_binary_value_t* cef_binary_value_create(const void* data,
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefBinaryValue::Create(
|
||||
data,
|
||||
data_size);
|
||||
CefRefPtr<CefBinaryValue> _retval = CefBinaryValue::Create(data, data_size);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -67,7 +65,7 @@ int CEF_CALLBACK binary_value_is_owned(struct _cef_binary_value_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK binary_value_is_same(struct _cef_binary_value_t* self,
|
||||
struct _cef_binary_value_t* that) {
|
||||
struct _cef_binary_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -87,7 +85,7 @@ int CEF_CALLBACK binary_value_is_same(struct _cef_binary_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK binary_value_is_equal(struct _cef_binary_value_t* self,
|
||||
struct _cef_binary_value_t* that) {
|
||||
struct _cef_binary_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -106,8 +104,8 @@ int CEF_CALLBACK binary_value_is_equal(struct _cef_binary_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_binary_value_t* CEF_CALLBACK binary_value_copy(
|
||||
struct _cef_binary_value_t* self) {
|
||||
struct _cef_binary_value_t* CEF_CALLBACK
|
||||
binary_value_copy(struct _cef_binary_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -136,7 +134,9 @@ size_t CEF_CALLBACK binary_value_get_size(struct _cef_binary_value_t* self) {
|
||||
}
|
||||
|
||||
size_t CEF_CALLBACK binary_value_get_data(struct _cef_binary_value_t* self,
|
||||
void* buffer, size_t buffer_size, size_t data_offset) {
|
||||
void* buffer,
|
||||
size_t buffer_size,
|
||||
size_t data_offset) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -148,10 +148,8 @@ size_t CEF_CALLBACK binary_value_get_data(struct _cef_binary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
size_t _retval = CefBinaryValueCppToC::Get(self)->GetData(
|
||||
buffer,
|
||||
buffer_size,
|
||||
data_offset);
|
||||
size_t _retval = CefBinaryValueCppToC::Get(self)->GetData(buffer, buffer_size,
|
||||
data_offset);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -159,7 +157,6 @@ size_t CEF_CALLBACK binary_value_get_data(struct _cef_binary_value_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBinaryValueCppToC::CefBinaryValueCppToC() {
|
||||
@ -172,17 +169,23 @@ CefBinaryValueCppToC::CefBinaryValueCppToC() {
|
||||
GetStruct()->get_data = binary_value_get_data;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefBinaryValue> CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue, cef_binary_value_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_binary_value_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefBinaryValue>
|
||||
CefCppToCRefCounted<CefBinaryValueCppToC, CefBinaryValue, cef_binary_value_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_binary_value_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue, cef_binary_value_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue,
|
||||
cef_binary_value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue, cef_binary_value_t>::kWrapperType = WT_BINARY_VALUE;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue,
|
||||
cef_binary_value_t>::kWrapperType =
|
||||
WT_BINARY_VALUE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c97277909b83548acb27b8e1e2fafd99cb715d20$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_values.h"
|
||||
#include "include/capi/cef_values_capi.h"
|
||||
#include "include/cef_values.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 CefBinaryValueCppToC
|
||||
: public CefCppToCRefCounted<CefBinaryValueCppToC, CefBinaryValue,
|
||||
cef_binary_value_t> {
|
||||
class CefBinaryValueCppToC : public CefCppToCRefCounted<CefBinaryValueCppToC,
|
||||
CefBinaryValue,
|
||||
cef_binary_value_t> {
|
||||
public:
|
||||
CefBinaryValueCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a5b87e4e7e656c8643febf4afb3d1bd3f06c7ac0$
|
||||
//
|
||||
|
||||
#include <algorithm>
|
||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
||||
@ -17,13 +19,12 @@
|
||||
#include "libcef_dll/cpptoc/process_message_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
struct _cef_browser_host_t* CEF_CALLBACK browser_get_host(
|
||||
struct _cef_browser_t* self) {
|
||||
struct _cef_browser_host_t* CEF_CALLBACK
|
||||
browser_get_host(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -149,7 +150,7 @@ int CEF_CALLBACK browser_get_identifier(struct _cef_browser_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_is_same(struct _cef_browser_t* self,
|
||||
struct _cef_browser_t* that) {
|
||||
struct _cef_browser_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -161,8 +162,8 @@ int CEF_CALLBACK browser_is_same(struct _cef_browser_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefBrowserCppToC::Get(self)->IsSame(
|
||||
CefBrowserCppToC::Unwrap(that));
|
||||
bool _retval =
|
||||
CefBrowserCppToC::Get(self)->IsSame(CefBrowserCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -196,8 +197,8 @@ int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_main_frame(
|
||||
struct _cef_browser_t* self) {
|
||||
struct _cef_frame_t* CEF_CALLBACK
|
||||
browser_get_main_frame(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -211,8 +212,8 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_main_frame(
|
||||
return CefFrameCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_focused_frame(
|
||||
struct _cef_browser_t* self) {
|
||||
struct _cef_frame_t* CEF_CALLBACK
|
||||
browser_get_focused_frame(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -226,8 +227,8 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_focused_frame(
|
||||
return CefFrameCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_frame_byident(
|
||||
struct _cef_browser_t* self, int64 identifier) {
|
||||
struct _cef_frame_t* CEF_CALLBACK
|
||||
browser_get_frame_byident(struct _cef_browser_t* self, int64 identifier) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -235,15 +236,15 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_frame_byident(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefFrame> _retval = CefBrowserCppToC::Get(self)->GetFrame(
|
||||
identifier);
|
||||
CefRefPtr<CefFrame> _retval =
|
||||
CefBrowserCppToC::Get(self)->GetFrame(identifier);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefFrameCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self,
|
||||
const cef_string_t* name) {
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -252,8 +253,8 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self,
|
||||
// Unverified params: name
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefFrame> _retval = CefBrowserCppToC::Get(self)->GetFrame(
|
||||
CefString(name));
|
||||
CefRefPtr<CefFrame> _retval =
|
||||
CefBrowserCppToC::Get(self)->GetFrame(CefString(name));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefFrameCppToC::Wrap(_retval);
|
||||
@ -274,7 +275,8 @@ size_t CEF_CALLBACK browser_get_frame_count(struct _cef_browser_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_get_frame_identifiers(struct _cef_browser_t* self,
|
||||
size_t* identifiersCount, int64* identifiers) {
|
||||
size_t* identifiersCount,
|
||||
int64* identifiers) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -286,7 +288,7 @@ void CEF_CALLBACK browser_get_frame_identifiers(struct _cef_browser_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: identifiers; type: simple_vec_byref
|
||||
std::vector<int64 > identifiersList;
|
||||
std::vector<int64> identifiersList;
|
||||
if (identifiersCount && *identifiersCount > 0 && identifiers) {
|
||||
for (size_t i = 0; i < *identifiersCount; ++i) {
|
||||
identifiersList.push_back(identifiers[i]);
|
||||
@ -294,8 +296,7 @@ void CEF_CALLBACK browser_get_frame_identifiers(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
// Execute
|
||||
CefBrowserCppToC::Get(self)->GetFrameIdentifiers(
|
||||
identifiersList);
|
||||
CefBrowserCppToC::Get(self)->GetFrameIdentifiers(identifiersList);
|
||||
|
||||
// Restore param: identifiers; type: simple_vec_byref
|
||||
if (identifiersCount && identifiers) {
|
||||
@ -309,7 +310,7 @@ void CEF_CALLBACK browser_get_frame_identifiers(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_get_frame_names(struct _cef_browser_t* self,
|
||||
cef_string_list_t names) {
|
||||
cef_string_list_t names) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -325,16 +326,17 @@ void CEF_CALLBACK browser_get_frame_names(struct _cef_browser_t* self,
|
||||
transfer_string_list_contents(names, namesList);
|
||||
|
||||
// Execute
|
||||
CefBrowserCppToC::Get(self)->GetFrameNames(
|
||||
namesList);
|
||||
CefBrowserCppToC::Get(self)->GetFrameNames(namesList);
|
||||
|
||||
// Restore param: names; type: string_vec_byref
|
||||
cef_string_list_clear(names);
|
||||
transfer_string_list_contents(namesList, names);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_send_process_message(struct _cef_browser_t* self,
|
||||
cef_process_id_t target_process, struct _cef_process_message_t* message) {
|
||||
int CEF_CALLBACK
|
||||
browser_send_process_message(struct _cef_browser_t* self,
|
||||
cef_process_id_t target_process,
|
||||
struct _cef_process_message_t* message) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -347,8 +349,7 @@ int CEF_CALLBACK browser_send_process_message(struct _cef_browser_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefBrowserCppToC::Get(self)->SendProcessMessage(
|
||||
target_process,
|
||||
CefProcessMessageCppToC::Unwrap(message));
|
||||
target_process, CefProcessMessageCppToC::Unwrap(message));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -356,7 +357,6 @@ int CEF_CALLBACK browser_send_process_message(struct _cef_browser_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBrowserCppToC::CefBrowserCppToC() {
|
||||
@ -383,17 +383,23 @@ CefBrowserCppToC::CefBrowserCppToC() {
|
||||
GetStruct()->send_process_message = browser_send_process_message;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefBrowser> CefCppToCRefCounted<CefBrowserCppToC,
|
||||
CefBrowser, cef_browser_t>::UnwrapDerived(CefWrapperType type,
|
||||
template <>
|
||||
CefRefPtr<CefBrowser>
|
||||
CefCppToCRefCounted<CefBrowserCppToC, CefBrowser, cef_browser_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_browser_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBrowserCppToC,
|
||||
CefBrowser, cef_browser_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefBrowserCppToC,
|
||||
CefBrowser,
|
||||
cef_browser_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBrowserCppToC, CefBrowser,
|
||||
cef_browser_t>::kWrapperType = WT_BROWSER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefBrowserCppToC,
|
||||
CefBrowser,
|
||||
cef_browser_t>::kWrapperType = WT_BROWSER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8c208aa0b90c19b4c8b4436af2ce19f27a94806c$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
|
||||
@ -18,10 +20,10 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=63aa1967a233a66852969c1e72ecd0c12e69105b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
|
||||
@ -22,12 +24,13 @@
|
||||
#include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT int cef_browser_host_create_browser(
|
||||
const cef_window_info_t* windowInfo, struct _cef_client_t* client,
|
||||
const cef_string_t* url, const struct _cef_browser_settings_t* settings,
|
||||
const cef_window_info_t* windowInfo,
|
||||
struct _cef_client_t* client,
|
||||
const cef_string_t* url,
|
||||
const struct _cef_browser_settings_t* settings,
|
||||
struct _cef_request_context_t* request_context) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -52,10 +55,7 @@ CEF_EXPORT int cef_browser_host_create_browser(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefBrowserHost::CreateBrowser(
|
||||
windowInfoObj,
|
||||
CefClientCToCpp::Wrap(client),
|
||||
CefString(url),
|
||||
settingsObj,
|
||||
windowInfoObj, CefClientCToCpp::Wrap(client), CefString(url), settingsObj,
|
||||
CefRequestContextCppToC::Unwrap(request_context));
|
||||
|
||||
// Return type: bool
|
||||
@ -63,8 +63,10 @@ CEF_EXPORT int cef_browser_host_create_browser(
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync(
|
||||
const cef_window_info_t* windowInfo, struct _cef_client_t* client,
|
||||
const cef_string_t* url, const struct _cef_browser_settings_t* settings,
|
||||
const cef_window_info_t* windowInfo,
|
||||
struct _cef_client_t* client,
|
||||
const cef_string_t* url,
|
||||
const struct _cef_browser_settings_t* settings,
|
||||
struct _cef_request_context_t* request_context) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -89,23 +91,19 @@ CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync(
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBrowser> _retval = CefBrowserHost::CreateBrowserSync(
|
||||
windowInfoObj,
|
||||
CefClientCToCpp::Wrap(client),
|
||||
CefString(url),
|
||||
settingsObj,
|
||||
windowInfoObj, CefClientCToCpp::Wrap(client), CefString(url), settingsObj,
|
||||
CefRequestContextCppToC::Unwrap(request_context));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBrowserCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_browser_t* CEF_CALLBACK browser_host_get_browser(
|
||||
struct _cef_browser_host_t* self) {
|
||||
cef_browser_t* CEF_CALLBACK
|
||||
browser_host_get_browser(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -120,7 +118,7 @@ cef_browser_t* CEF_CALLBACK browser_host_get_browser(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self,
|
||||
int force_close) {
|
||||
int force_close) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -128,12 +126,11 @@ void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->CloseBrowser(
|
||||
force_close?true:false);
|
||||
CefBrowserHostCppToC::Get(self)->CloseBrowser(force_close ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_host_try_close_browser(
|
||||
struct _cef_browser_host_t* self) {
|
||||
int CEF_CALLBACK
|
||||
browser_host_try_close_browser(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -148,7 +145,7 @@ int CEF_CALLBACK browser_host_try_close_browser(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self,
|
||||
int focus) {
|
||||
int focus) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -156,12 +153,11 @@ void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SetFocus(
|
||||
focus?true:false);
|
||||
CefBrowserHostCppToC::Get(self)->SetFocus(focus ? true : false);
|
||||
}
|
||||
|
||||
cef_window_handle_t CEF_CALLBACK browser_host_get_window_handle(
|
||||
struct _cef_browser_host_t* self) {
|
||||
cef_window_handle_t CEF_CALLBACK
|
||||
browser_host_get_window_handle(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -169,15 +165,15 @@ cef_window_handle_t CEF_CALLBACK browser_host_get_window_handle(
|
||||
return kNullWindowHandle;
|
||||
|
||||
// Execute
|
||||
cef_window_handle_t _retval = CefBrowserHostCppToC::Get(
|
||||
self)->GetWindowHandle();
|
||||
cef_window_handle_t _retval =
|
||||
CefBrowserHostCppToC::Get(self)->GetWindowHandle();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_window_handle_t CEF_CALLBACK browser_host_get_opener_window_handle(
|
||||
struct _cef_browser_host_t* self) {
|
||||
cef_window_handle_t CEF_CALLBACK
|
||||
browser_host_get_opener_window_handle(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -185,8 +181,8 @@ cef_window_handle_t CEF_CALLBACK browser_host_get_opener_window_handle(
|
||||
return kNullWindowHandle;
|
||||
|
||||
// Execute
|
||||
cef_window_handle_t _retval = CefBrowserHostCppToC::Get(
|
||||
self)->GetOpenerWindowHandle();
|
||||
cef_window_handle_t _retval =
|
||||
CefBrowserHostCppToC::Get(self)->GetOpenerWindowHandle();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -206,8 +202,8 @@ int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_client_t* CEF_CALLBACK browser_host_get_client(
|
||||
struct _cef_browser_host_t* self) {
|
||||
struct _cef_client_t* CEF_CALLBACK
|
||||
browser_host_get_client(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -221,8 +217,8 @@ struct _cef_client_t* CEF_CALLBACK browser_host_get_client(
|
||||
return CefClientCToCpp::Unwrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_request_context_t* CEF_CALLBACK browser_host_get_request_context(
|
||||
struct _cef_browser_host_t* self) {
|
||||
struct _cef_request_context_t* CEF_CALLBACK
|
||||
browser_host_get_request_context(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -230,15 +226,15 @@ struct _cef_request_context_t* CEF_CALLBACK browser_host_get_request_context(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefRequestContext> _retval = CefBrowserHostCppToC::Get(
|
||||
self)->GetRequestContext();
|
||||
CefRefPtr<CefRequestContext> _retval =
|
||||
CefBrowserHostCppToC::Get(self)->GetRequestContext();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefRequestContextCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
double CEF_CALLBACK browser_host_get_zoom_level(
|
||||
struct _cef_browser_host_t* self) {
|
||||
double CEF_CALLBACK
|
||||
browser_host_get_zoom_level(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -253,7 +249,7 @@ double CEF_CALLBACK browser_host_get_zoom_level(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self,
|
||||
double zoomLevel) {
|
||||
double zoomLevel) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -261,14 +257,17 @@ void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SetZoomLevel(
|
||||
zoomLevel);
|
||||
CefBrowserHostCppToC::Get(self)->SetZoomLevel(zoomLevel);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_run_file_dialog(struct _cef_browser_host_t* self,
|
||||
cef_file_dialog_mode_t mode, const cef_string_t* title,
|
||||
const cef_string_t* default_file_path, cef_string_list_t accept_filters,
|
||||
int selected_accept_filter, cef_run_file_dialog_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_run_file_dialog(struct _cef_browser_host_t* self,
|
||||
cef_file_dialog_mode_t mode,
|
||||
const cef_string_t* title,
|
||||
const cef_string_t* default_file_path,
|
||||
cef_string_list_t accept_filters,
|
||||
int selected_accept_filter,
|
||||
cef_run_file_dialog_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -290,16 +289,12 @@ void CEF_CALLBACK browser_host_run_file_dialog(struct _cef_browser_host_t* self,
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->RunFileDialog(
|
||||
mode,
|
||||
CefString(title),
|
||||
CefString(default_file_path),
|
||||
accept_filtersList,
|
||||
selected_accept_filter,
|
||||
CefRunFileDialogCallbackCToCpp::Wrap(callback));
|
||||
mode, CefString(title), CefString(default_file_path), accept_filtersList,
|
||||
selected_accept_filter, CefRunFileDialogCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* url) {
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -311,13 +306,16 @@ void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->StartDownload(
|
||||
CefString(url));
|
||||
CefBrowserHostCppToC::Get(self)->StartDownload(CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_download_image(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* image_url, int is_favicon, uint32 max_image_size,
|
||||
int bypass_cache, cef_download_image_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_download_image(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* image_url,
|
||||
int is_favicon,
|
||||
uint32 max_image_size,
|
||||
int bypass_cache,
|
||||
cef_download_image_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -334,10 +332,8 @@ void CEF_CALLBACK browser_host_download_image(struct _cef_browser_host_t* self,
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->DownloadImage(
|
||||
CefString(image_url),
|
||||
is_favicon?true:false,
|
||||
max_image_size,
|
||||
bypass_cache?true:false,
|
||||
CefString(image_url), is_favicon ? true : false, max_image_size,
|
||||
bypass_cache ? true : false,
|
||||
CefDownloadImageCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
@ -352,9 +348,11 @@ void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t* self) {
|
||||
CefBrowserHostCppToC::Get(self)->Print();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_print_to_pdf(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* path, const struct _cef_pdf_print_settings_t* settings,
|
||||
cef_pdf_print_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_print_to_pdf(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* path,
|
||||
const struct _cef_pdf_print_settings_t* settings,
|
||||
cef_pdf_print_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -377,14 +375,15 @@ void CEF_CALLBACK browser_host_print_to_pdf(struct _cef_browser_host_t* self,
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->PrintToPDF(
|
||||
CefString(path),
|
||||
settingsObj,
|
||||
CefPdfPrintCallbackCToCpp::Wrap(callback));
|
||||
CefString(path), settingsObj, CefPdfPrintCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self,
|
||||
int identifier, const cef_string_t* searchText, int forward, int matchCase,
|
||||
int findNext) {
|
||||
int identifier,
|
||||
const cef_string_t* searchText,
|
||||
int forward,
|
||||
int matchCase,
|
||||
int findNext) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -397,15 +396,12 @@ void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self,
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->Find(
|
||||
identifier,
|
||||
CefString(searchText),
|
||||
forward?true:false,
|
||||
matchCase?true:false,
|
||||
findNext?true:false);
|
||||
identifier, CefString(searchText), forward ? true : false,
|
||||
matchCase ? true : false, findNext ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self,
|
||||
int clearSelection) {
|
||||
int clearSelection) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -413,14 +409,15 @@ void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->StopFinding(
|
||||
clearSelection?true:false);
|
||||
CefBrowserHostCppToC::Get(self)->StopFinding(clearSelection ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_show_dev_tools(struct _cef_browser_host_t* self,
|
||||
const cef_window_info_t* windowInfo, struct _cef_client_t* client,
|
||||
const struct _cef_browser_settings_t* settings,
|
||||
const cef_point_t* inspect_element_at) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_show_dev_tools(struct _cef_browser_host_t* self,
|
||||
const cef_window_info_t* windowInfo,
|
||||
struct _cef_client_t* client,
|
||||
const struct _cef_browser_settings_t* settings,
|
||||
const cef_point_t* inspect_element_at) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -438,18 +435,16 @@ void CEF_CALLBACK browser_host_show_dev_tools(struct _cef_browser_host_t* self,
|
||||
settingsObj.Set(*settings, false);
|
||||
// Translate param: inspect_element_at; type: simple_byref_const
|
||||
CefPoint inspect_element_atVal =
|
||||
inspect_element_at?*inspect_element_at:CefPoint();
|
||||
inspect_element_at ? *inspect_element_at : CefPoint();
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->ShowDevTools(
|
||||
windowInfoObj,
|
||||
CefClientCToCpp::Wrap(client),
|
||||
settingsObj,
|
||||
windowInfoObj, CefClientCToCpp::Wrap(client), settingsObj,
|
||||
inspect_element_atVal);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_close_dev_tools(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_close_dev_tools(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -474,9 +469,10 @@ int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_get_navigation_entries(
|
||||
struct _cef_browser_host_t* self, cef_navigation_entry_visitor_t* visitor,
|
||||
int current_only) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_get_navigation_entries(struct _cef_browser_host_t* self,
|
||||
cef_navigation_entry_visitor_t* visitor,
|
||||
int current_only) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -490,11 +486,12 @@ void CEF_CALLBACK browser_host_get_navigation_entries(
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->GetNavigationEntries(
|
||||
CefNavigationEntryVisitorCToCpp::Wrap(visitor),
|
||||
current_only?true:false);
|
||||
current_only ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_mouse_cursor_change_disabled(
|
||||
struct _cef_browser_host_t* self, int disabled) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_set_mouse_cursor_change_disabled(struct _cef_browser_host_t* self,
|
||||
int disabled) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -503,11 +500,11 @@ void CEF_CALLBACK browser_host_set_mouse_cursor_change_disabled(
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SetMouseCursorChangeDisabled(
|
||||
disabled?true:false);
|
||||
disabled ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_host_is_mouse_cursor_change_disabled(
|
||||
struct _cef_browser_host_t* self) {
|
||||
int CEF_CALLBACK
|
||||
browser_host_is_mouse_cursor_change_disabled(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -521,8 +518,9 @@ int CEF_CALLBACK browser_host_is_mouse_cursor_change_disabled(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_replace_misspelling(
|
||||
struct _cef_browser_host_t* self, const cef_string_t* word) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_replace_misspelling(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* word) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -534,12 +532,12 @@ void CEF_CALLBACK browser_host_replace_misspelling(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->ReplaceMisspelling(
|
||||
CefString(word));
|
||||
CefBrowserHostCppToC::Get(self)->ReplaceMisspelling(CefString(word));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_add_word_to_dictionary(
|
||||
struct _cef_browser_host_t* self, const cef_string_t* word) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* word) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -551,12 +549,11 @@ void CEF_CALLBACK browser_host_add_word_to_dictionary(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->AddWordToDictionary(
|
||||
CefString(word));
|
||||
CefBrowserHostCppToC::Get(self)->AddWordToDictionary(CefString(word));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_host_is_window_rendering_disabled(
|
||||
struct _cef_browser_host_t* self) {
|
||||
int CEF_CALLBACK
|
||||
browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -582,7 +579,7 @@ void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self,
|
||||
int hidden) {
|
||||
int hidden) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -590,12 +587,11 @@ void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->WasHidden(
|
||||
hidden?true:false);
|
||||
CefBrowserHostCppToC::Get(self)->WasHidden(hidden ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_notify_screen_info_changed(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -607,7 +603,7 @@ void CEF_CALLBACK browser_host_notify_screen_info_changed(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self,
|
||||
cef_paint_element_type_t type) {
|
||||
cef_paint_element_type_t type) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -615,12 +611,12 @@ void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->Invalidate(
|
||||
type);
|
||||
CefBrowserHostCppToC::Get(self)->Invalidate(type);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_key_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_key_event_t* event) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_key_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_key_event_t* event) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -637,13 +633,15 @@ void CEF_CALLBACK browser_host_send_key_event(struct _cef_browser_host_t* self,
|
||||
eventObj.Set(*event, false);
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendKeyEvent(
|
||||
eventObj);
|
||||
CefBrowserHostCppToC::Get(self)->SendKeyEvent(eventObj);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_mouse_click_event(
|
||||
struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event,
|
||||
cef_mouse_button_type_t type, int mouseUp, int clickCount) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_mouse_click_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
cef_mouse_button_type_t type,
|
||||
int mouseUp,
|
||||
int clickCount) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -661,15 +659,13 @@ void CEF_CALLBACK browser_host_send_mouse_click_event(
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendMouseClickEvent(
|
||||
eventObj,
|
||||
type,
|
||||
mouseUp?true:false,
|
||||
clickCount);
|
||||
eventObj, type, mouseUp ? true : false, clickCount);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_mouse_move_event(
|
||||
struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event,
|
||||
int mouseLeave) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_mouse_move_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
int mouseLeave) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -687,13 +683,14 @@ void CEF_CALLBACK browser_host_send_mouse_move_event(
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendMouseMoveEvent(
|
||||
eventObj,
|
||||
mouseLeave?true:false);
|
||||
eventObj, mouseLeave ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_mouse_wheel_event(
|
||||
struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event,
|
||||
int deltaX, int deltaY) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
int deltaX,
|
||||
int deltaY) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -710,14 +707,12 @@ void CEF_CALLBACK browser_host_send_mouse_wheel_event(
|
||||
eventObj.Set(*event, false);
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendMouseWheelEvent(
|
||||
eventObj,
|
||||
deltaX,
|
||||
deltaY);
|
||||
CefBrowserHostCppToC::Get(self)->SendMouseWheelEvent(eventObj, deltaX,
|
||||
deltaY);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_focus_event(
|
||||
struct _cef_browser_host_t* self, int setFocus) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_focus_event(struct _cef_browser_host_t* self, int setFocus) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -725,12 +720,11 @@ void CEF_CALLBACK browser_host_send_focus_event(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendFocusEvent(
|
||||
setFocus?true:false);
|
||||
CefBrowserHostCppToC::Get(self)->SendFocusEvent(setFocus ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_send_capture_lost_event(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -741,8 +735,8 @@ void CEF_CALLBACK browser_host_send_capture_lost_event(
|
||||
CefBrowserHostCppToC::Get(self)->SendCaptureLostEvent();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_notify_move_or_resize_started(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -753,8 +747,8 @@ void CEF_CALLBACK browser_host_notify_move_or_resize_started(
|
||||
CefBrowserHostCppToC::Get(self)->NotifyMoveOrResizeStarted();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_host_get_windowless_frame_rate(
|
||||
struct _cef_browser_host_t* self) {
|
||||
int CEF_CALLBACK
|
||||
browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -768,8 +762,9 @@ int CEF_CALLBACK browser_host_get_windowless_frame_rate(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_windowless_frame_rate(
|
||||
struct _cef_browser_host_t* self, int frame_rate) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_set_windowless_frame_rate(struct _cef_browser_host_t* self,
|
||||
int frame_rate) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -777,15 +772,16 @@ void CEF_CALLBACK browser_host_set_windowless_frame_rate(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SetWindowlessFrameRate(
|
||||
frame_rate);
|
||||
CefBrowserHostCppToC::Get(self)->SetWindowlessFrameRate(frame_rate);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_ime_set_composition(
|
||||
struct _cef_browser_host_t* self, const cef_string_t* text,
|
||||
size_t underlinesCount, cef_composition_underline_t const* underlines,
|
||||
const cef_range_t* replacement_range,
|
||||
const cef_range_t* selection_range) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_ime_set_composition(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* text,
|
||||
size_t underlinesCount,
|
||||
cef_composition_underline_t const* underlines,
|
||||
const cef_range_t* replacement_range,
|
||||
const cef_range_t* selection_range) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -802,7 +798,7 @@ void CEF_CALLBACK browser_host_ime_set_composition(
|
||||
// Unverified params: text, underlines
|
||||
|
||||
// Translate param: underlines; type: simple_vec_byref_const
|
||||
std::vector<CefCompositionUnderline > underlinesList;
|
||||
std::vector<CefCompositionUnderline> underlinesList;
|
||||
if (underlinesCount > 0) {
|
||||
for (size_t i = 0; i < underlinesCount; ++i) {
|
||||
CefCompositionUnderline underlinesVal = underlines[i];
|
||||
@ -810,22 +806,22 @@ void CEF_CALLBACK browser_host_ime_set_composition(
|
||||
}
|
||||
}
|
||||
// Translate param: replacement_range; type: simple_byref_const
|
||||
CefRange replacement_rangeVal = replacement_range?*replacement_range:CefRange(
|
||||
);
|
||||
CefRange replacement_rangeVal =
|
||||
replacement_range ? *replacement_range : CefRange();
|
||||
// Translate param: selection_range; type: simple_byref_const
|
||||
CefRange selection_rangeVal = selection_range?*selection_range:CefRange();
|
||||
CefRange selection_rangeVal = selection_range ? *selection_range : CefRange();
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->ImeSetComposition(
|
||||
CefString(text),
|
||||
underlinesList,
|
||||
replacement_rangeVal,
|
||||
CefString(text), underlinesList, replacement_rangeVal,
|
||||
selection_rangeVal);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_ime_commit_text(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* text, const cef_range_t* replacement_range,
|
||||
int relative_cursor_pos) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_ime_commit_text(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* text,
|
||||
const cef_range_t* replacement_range,
|
||||
int relative_cursor_pos) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -838,18 +834,17 @@ void CEF_CALLBACK browser_host_ime_commit_text(struct _cef_browser_host_t* self,
|
||||
// Unverified params: text
|
||||
|
||||
// Translate param: replacement_range; type: simple_byref_const
|
||||
CefRange replacement_rangeVal = replacement_range?*replacement_range:CefRange(
|
||||
);
|
||||
CefRange replacement_rangeVal =
|
||||
replacement_range ? *replacement_range : CefRange();
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->ImeCommitText(
|
||||
CefString(text),
|
||||
replacement_rangeVal,
|
||||
relative_cursor_pos);
|
||||
CefString(text), replacement_rangeVal, relative_cursor_pos);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_ime_finish_composing_text(
|
||||
struct _cef_browser_host_t* self, int keep_selection) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self,
|
||||
int keep_selection) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -858,11 +853,11 @@ void CEF_CALLBACK browser_host_ime_finish_composing_text(
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->ImeFinishComposingText(
|
||||
keep_selection?true:false);
|
||||
keep_selection ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_ime_cancel_composition(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_ime_cancel_composition(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -873,10 +868,11 @@ void CEF_CALLBACK browser_host_ime_cancel_composition(
|
||||
CefBrowserHostCppToC::Get(self)->ImeCancelComposition();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_target_drag_enter(
|
||||
struct _cef_browser_host_t* self, struct _cef_drag_data_t* drag_data,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
cef_drag_operations_mask_t allowed_ops) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_target_drag_enter(struct _cef_browser_host_t* self,
|
||||
struct _cef_drag_data_t* drag_data,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
cef_drag_operations_mask_t allowed_ops) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -898,14 +894,13 @@ void CEF_CALLBACK browser_host_drag_target_drag_enter(
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDragEnter(
|
||||
CefDragDataCppToC::Unwrap(drag_data),
|
||||
eventObj,
|
||||
allowed_ops);
|
||||
CefDragDataCppToC::Unwrap(drag_data), eventObj, allowed_ops);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_target_drag_over(
|
||||
struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event,
|
||||
cef_drag_operations_mask_t allowed_ops) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_target_drag_over(struct _cef_browser_host_t* self,
|
||||
const struct _cef_mouse_event_t* event,
|
||||
cef_drag_operations_mask_t allowed_ops) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -922,13 +917,11 @@ void CEF_CALLBACK browser_host_drag_target_drag_over(
|
||||
eventObj.Set(*event, false);
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDragOver(
|
||||
eventObj,
|
||||
allowed_ops);
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDragOver(eventObj, allowed_ops);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_target_drag_leave(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -939,8 +932,9 @@ void CEF_CALLBACK browser_host_drag_target_drag_leave(
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDragLeave();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_target_drop(
|
||||
struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_target_drop(struct _cef_browser_host_t* self,
|
||||
const struct _cef_mouse_event_t* event) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -957,13 +951,14 @@ void CEF_CALLBACK browser_host_drag_target_drop(
|
||||
eventObj.Set(*event, false);
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDrop(
|
||||
eventObj);
|
||||
CefBrowserHostCppToC::Get(self)->DragTargetDrop(eventObj);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_source_ended_at(
|
||||
struct _cef_browser_host_t* self, int x, int y,
|
||||
cef_drag_operations_mask_t op) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_source_ended_at(struct _cef_browser_host_t* self,
|
||||
int x,
|
||||
int y,
|
||||
cef_drag_operations_mask_t op) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -971,14 +966,11 @@ void CEF_CALLBACK browser_host_drag_source_ended_at(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->DragSourceEndedAt(
|
||||
x,
|
||||
y,
|
||||
op);
|
||||
CefBrowserHostCppToC::Get(self)->DragSourceEndedAt(x, y, op);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_drag_source_system_drag_ended(
|
||||
struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -989,8 +981,8 @@ void CEF_CALLBACK browser_host_drag_source_system_drag_ended(
|
||||
CefBrowserHostCppToC::Get(self)->DragSourceSystemDragEnded();
|
||||
}
|
||||
|
||||
struct _cef_navigation_entry_t* CEF_CALLBACK browser_host_get_visible_navigation_entry(
|
||||
struct _cef_browser_host_t* self) {
|
||||
struct _cef_navigation_entry_t* CEF_CALLBACK
|
||||
browser_host_get_visible_navigation_entry(struct _cef_browser_host_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -998,15 +990,16 @@ struct _cef_navigation_entry_t* CEF_CALLBACK browser_host_get_visible_navigation
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefNavigationEntry> _retval = CefBrowserHostCppToC::Get(
|
||||
self)->GetVisibleNavigationEntry();
|
||||
CefRefPtr<CefNavigationEntry> _retval =
|
||||
CefBrowserHostCppToC::Get(self)->GetVisibleNavigationEntry();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefNavigationEntryCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_accessibility_state(
|
||||
struct _cef_browser_host_t* self, cef_state_t accessibility_state) {
|
||||
void CEF_CALLBACK
|
||||
browser_host_set_accessibility_state(struct _cef_browser_host_t* self,
|
||||
cef_state_t accessibility_state) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -1014,13 +1007,11 @@ void CEF_CALLBACK browser_host_set_accessibility_state(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SetAccessibilityState(
|
||||
accessibility_state);
|
||||
CefBrowserHostCppToC::Get(self)->SetAccessibilityState(accessibility_state);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBrowserHostCppToC::CefBrowserHostCppToC() {
|
||||
@ -1088,17 +1079,23 @@ CefBrowserHostCppToC::CefBrowserHostCppToC() {
|
||||
GetStruct()->set_accessibility_state = browser_host_set_accessibility_state;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefBrowserHost> CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost, cef_browser_host_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_browser_host_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefBrowserHost>
|
||||
CefCppToCRefCounted<CefBrowserHostCppToC, CefBrowserHost, cef_browser_host_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_browser_host_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost, cef_browser_host_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost,
|
||||
cef_browser_host_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost, cef_browser_host_t>::kWrapperType = WT_BROWSER_HOST;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost,
|
||||
cef_browser_host_t>::kWrapperType =
|
||||
WT_BROWSER_HOST;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a6ac38f2fd5622e382f6dbfc91d10f71c81f6ae9$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_
|
||||
@ -18,17 +20,17 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_client.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 CefBrowserHostCppToC
|
||||
: public CefCppToCRefCounted<CefBrowserHostCppToC, CefBrowserHost,
|
||||
cef_browser_host_t> {
|
||||
class CefBrowserHostCppToC : public CefCppToCRefCounted<CefBrowserHostCppToC,
|
||||
CefBrowserHost,
|
||||
cef_browser_host_t> {
|
||||
public:
|
||||
CefBrowserHostCppToC();
|
||||
};
|
||||
|
@ -9,13 +9,14 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=81332687e151af6933a729c1456dd4b3a64f82df$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/print_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/list_value_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -68,7 +69,8 @@ void CEF_CALLBACK browser_process_handler_on_render_process_thread_created(
|
||||
CefListValueCToCpp::Wrap(extra_info));
|
||||
}
|
||||
|
||||
struct _cef_print_handler_t* CEF_CALLBACK browser_process_handler_get_print_handler(
|
||||
struct _cef_print_handler_t* CEF_CALLBACK
|
||||
browser_process_handler_get_print_handler(
|
||||
struct _cef_browser_process_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -77,15 +79,16 @@ struct _cef_print_handler_t* CEF_CALLBACK browser_process_handler_get_print_hand
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefPrintHandler> _retval = CefBrowserProcessHandlerCppToC::Get(
|
||||
self)->GetPrintHandler();
|
||||
CefRefPtr<CefPrintHandler> _retval =
|
||||
CefBrowserProcessHandlerCppToC::Get(self)->GetPrintHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefPrintHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_process_handler_on_schedule_message_pump_work(
|
||||
struct _cef_browser_process_handler_t* self, int64 delay_ms) {
|
||||
struct _cef_browser_process_handler_t* self,
|
||||
int64 delay_ms) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -99,7 +102,6 @@ void CEF_CALLBACK browser_process_handler_on_schedule_message_pump_work(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBrowserProcessHandlerCppToC::CefBrowserProcessHandlerCppToC() {
|
||||
@ -114,18 +116,28 @@ CefBrowserProcessHandlerCppToC::CefBrowserProcessHandlerCppToC() {
|
||||
browser_process_handler_on_schedule_message_pump_work;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefBrowserProcessHandler> CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler, cef_browser_process_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_browser_process_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefBrowserProcessHandler> CefCppToCRefCounted<
|
||||
CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler,
|
||||
cef_browser_process_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_browser_process_handler_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler, cef_browser_process_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler,
|
||||
cef_browser_process_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler, cef_browser_process_handler_t>::kWrapperType =
|
||||
WT_BROWSER_PROCESS_HANDLER;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler,
|
||||
cef_browser_process_handler_t>::kWrapperType =
|
||||
WT_BROWSER_PROCESS_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c94cf8a41042d6b4fa77981ad89c2f687299d85d$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_browser_process_handler.h"
|
||||
#include "include/capi/cef_browser_process_handler_capi.h"
|
||||
#include "include/cef_browser_process_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 CefBrowserProcessHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
|
||||
CefBrowserProcessHandler, cef_browser_process_handler_t> {
|
||||
CefBrowserProcessHandler,
|
||||
cef_browser_process_handler_t> {
|
||||
public:
|
||||
CefBrowserProcessHandlerCppToC();
|
||||
};
|
||||
|
@ -9,10 +9,11 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=7d4c882910cd07c9659eefe6eb579e4096cd760c$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -41,7 +42,6 @@ void CEF_CALLBACK callback_cancel(struct _cef_callback_t* self) {
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCallbackCppToC::CefCallbackCppToC() {
|
||||
@ -49,17 +49,22 @@ CefCallbackCppToC::CefCallbackCppToC() {
|
||||
GetStruct()->cancel = callback_cancel;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefCallback> CefCppToCRefCounted<CefCallbackCppToC,
|
||||
CefCallback, cef_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefCallback>
|
||||
CefCppToCRefCounted<CefCallbackCppToC, CefCallback, cef_callback_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefCallbackCppToC,
|
||||
CefCallback, cef_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefCallbackCppToC,
|
||||
CefCallback,
|
||||
cef_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefCallbackCppToC, CefCallback,
|
||||
cef_callback_t>::kWrapperType = WT_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefCallbackCppToC,
|
||||
CefCallback,
|
||||
cef_callback_t>::kWrapperType = WT_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c3961ec8754a1c7c24580d02dbf1c79942c2ad48$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_callback.h"
|
||||
#include "include/capi/cef_callback_capi.h"
|
||||
#include "include/cef_callback.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 CefCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefCallbackCppToC, CefCallback,
|
||||
cef_callback_t> {
|
||||
class CefCallbackCppToC : public CefCppToCRefCounted<CefCallbackCppToC,
|
||||
CefCallback,
|
||||
cef_callback_t> {
|
||||
public:
|
||||
CefCallbackCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=4ddb855e437a437ac87a894769d7e8c6cf208988$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h"
|
||||
@ -28,13 +30,12 @@
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/process_message_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
struct _cef_context_menu_handler_t* CEF_CALLBACK client_get_context_menu_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_context_menu_handler_t* CEF_CALLBACK
|
||||
client_get_context_menu_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -42,15 +43,15 @@ struct _cef_context_menu_handler_t* CEF_CALLBACK client_get_context_menu_handler
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefContextMenuHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetContextMenuHandler();
|
||||
CefRefPtr<CefContextMenuHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetContextMenuHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefContextMenuHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_dialog_handler_t* CEF_CALLBACK client_get_dialog_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_dialog_handler_t* CEF_CALLBACK
|
||||
client_get_dialog_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -58,15 +59,15 @@ struct _cef_dialog_handler_t* CEF_CALLBACK client_get_dialog_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDialogHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetDialogHandler();
|
||||
CefRefPtr<CefDialogHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetDialogHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDialogHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_display_handler_t* CEF_CALLBACK client_get_display_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_display_handler_t* CEF_CALLBACK
|
||||
client_get_display_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -74,15 +75,15 @@ struct _cef_display_handler_t* CEF_CALLBACK client_get_display_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDisplayHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetDisplayHandler();
|
||||
CefRefPtr<CefDisplayHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetDisplayHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDisplayHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_download_handler_t* CEF_CALLBACK client_get_download_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_download_handler_t* CEF_CALLBACK
|
||||
client_get_download_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -90,15 +91,15 @@ struct _cef_download_handler_t* CEF_CALLBACK client_get_download_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDownloadHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetDownloadHandler();
|
||||
CefRefPtr<CefDownloadHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetDownloadHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDownloadHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_drag_handler_t* CEF_CALLBACK client_get_drag_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_drag_handler_t* CEF_CALLBACK
|
||||
client_get_drag_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -106,15 +107,15 @@ struct _cef_drag_handler_t* CEF_CALLBACK client_get_drag_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDragHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetDragHandler();
|
||||
CefRefPtr<CefDragHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetDragHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDragHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_find_handler_t* CEF_CALLBACK client_get_find_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_find_handler_t* CEF_CALLBACK
|
||||
client_get_find_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -122,15 +123,15 @@ struct _cef_find_handler_t* CEF_CALLBACK client_get_find_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefFindHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetFindHandler();
|
||||
CefRefPtr<CefFindHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetFindHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefFindHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_focus_handler_t* CEF_CALLBACK client_get_focus_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_focus_handler_t* CEF_CALLBACK
|
||||
client_get_focus_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -138,15 +139,15 @@ struct _cef_focus_handler_t* CEF_CALLBACK client_get_focus_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefFocusHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetFocusHandler();
|
||||
CefRefPtr<CefFocusHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetFocusHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefFocusHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_geolocation_handler_t* CEF_CALLBACK client_get_geolocation_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_geolocation_handler_t* CEF_CALLBACK
|
||||
client_get_geolocation_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -154,15 +155,15 @@ struct _cef_geolocation_handler_t* CEF_CALLBACK client_get_geolocation_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefGeolocationHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetGeolocationHandler();
|
||||
CefRefPtr<CefGeolocationHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetGeolocationHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefGeolocationHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_jsdialog_handler_t* CEF_CALLBACK client_get_jsdialog_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_jsdialog_handler_t* CEF_CALLBACK
|
||||
client_get_jsdialog_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -170,15 +171,15 @@ struct _cef_jsdialog_handler_t* CEF_CALLBACK client_get_jsdialog_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefJSDialogHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetJSDialogHandler();
|
||||
CefRefPtr<CefJSDialogHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetJSDialogHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefJSDialogHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_keyboard_handler_t* CEF_CALLBACK client_get_keyboard_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_keyboard_handler_t* CEF_CALLBACK
|
||||
client_get_keyboard_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -186,15 +187,15 @@ struct _cef_keyboard_handler_t* CEF_CALLBACK client_get_keyboard_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefKeyboardHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetKeyboardHandler();
|
||||
CefRefPtr<CefKeyboardHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetKeyboardHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefKeyboardHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_life_span_handler_t* CEF_CALLBACK client_get_life_span_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_life_span_handler_t* CEF_CALLBACK
|
||||
client_get_life_span_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,15 +203,15 @@ struct _cef_life_span_handler_t* CEF_CALLBACK client_get_life_span_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefLifeSpanHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetLifeSpanHandler();
|
||||
CefRefPtr<CefLifeSpanHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetLifeSpanHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefLifeSpanHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_load_handler_t* CEF_CALLBACK client_get_load_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_load_handler_t* CEF_CALLBACK
|
||||
client_get_load_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -218,15 +219,15 @@ struct _cef_load_handler_t* CEF_CALLBACK client_get_load_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefLoadHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetLoadHandler();
|
||||
CefRefPtr<CefLoadHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetLoadHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefLoadHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_render_handler_t* CEF_CALLBACK client_get_render_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_render_handler_t* CEF_CALLBACK
|
||||
client_get_render_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -234,15 +235,15 @@ struct _cef_render_handler_t* CEF_CALLBACK client_get_render_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefRenderHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetRenderHandler();
|
||||
CefRefPtr<CefRenderHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetRenderHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefRenderHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_request_handler_t* CEF_CALLBACK client_get_request_handler(
|
||||
struct _cef_client_t* self) {
|
||||
struct _cef_request_handler_t* CEF_CALLBACK
|
||||
client_get_request_handler(struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -250,16 +251,18 @@ struct _cef_request_handler_t* CEF_CALLBACK client_get_request_handler(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefRequestHandler> _retval = CefClientCppToC::Get(
|
||||
self)->GetRequestHandler();
|
||||
CefRefPtr<CefRequestHandler> _retval =
|
||||
CefClientCppToC::Get(self)->GetRequestHandler();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefRequestHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK client_on_process_message_received(struct _cef_client_t* self,
|
||||
cef_browser_t* browser, cef_process_id_t source_process,
|
||||
struct _cef_process_message_t* message) {
|
||||
int CEF_CALLBACK
|
||||
client_on_process_message_received(struct _cef_client_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_process_id_t source_process,
|
||||
struct _cef_process_message_t* message) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -276,8 +279,7 @@ int CEF_CALLBACK client_on_process_message_received(struct _cef_client_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefClientCppToC::Get(self)->OnProcessMessageReceived(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
source_process,
|
||||
CefBrowserCToCpp::Wrap(browser), source_process,
|
||||
CefProcessMessageCToCpp::Wrap(message));
|
||||
|
||||
// Return type: bool
|
||||
@ -286,7 +288,6 @@ int CEF_CALLBACK client_on_process_message_received(struct _cef_client_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefClientCppToC::CefClientCppToC() {
|
||||
@ -307,16 +308,22 @@ CefClientCppToC::CefClientCppToC() {
|
||||
GetStruct()->on_process_message_received = client_on_process_message_received;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefClient> CefCppToCRefCounted<CefClientCppToC, CefClient,
|
||||
cef_client_t>::UnwrapDerived(CefWrapperType type, cef_client_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefClient>
|
||||
CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_client_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefClientCppToC, CefClient,
|
||||
cef_client_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefClientCppToC, CefClient,
|
||||
cef_client_t>::kWrapperType = WT_CLIENT;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t>::
|
||||
kWrapperType = WT_CLIENT;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=1e19eddff63d80ea1a80036e9bbfbf1011acf061$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
|
||||
@ -18,8 +20,8 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,11 +9,12 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b8f85a07998ec47d97910a04b0e68b34700a55ea$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/command_line_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_command_line_t* cef_command_line_create() {
|
||||
@ -36,7 +37,6 @@ CEF_EXPORT cef_command_line_t* cef_command_line_get_global() {
|
||||
return CefCommandLineCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -69,8 +69,8 @@ int CEF_CALLBACK command_line_is_read_only(struct _cef_command_line_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_command_line_t* CEF_CALLBACK command_line_copy(
|
||||
struct _cef_command_line_t* self) {
|
||||
struct _cef_command_line_t* CEF_CALLBACK
|
||||
command_line_copy(struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -85,7 +85,8 @@ struct _cef_command_line_t* CEF_CALLBACK command_line_copy(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_init_from_argv(struct _cef_command_line_t* self,
|
||||
int argc, const char* const* argv) {
|
||||
int argc,
|
||||
const char* const* argv) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -97,13 +98,12 @@ void CEF_CALLBACK command_line_init_from_argv(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->InitFromArgv(
|
||||
argc,
|
||||
argv);
|
||||
CefCommandLineCppToC::Get(self)->InitFromArgv(argc, argv);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_init_from_string(
|
||||
struct _cef_command_line_t* self, const cef_string_t* command_line) {
|
||||
void CEF_CALLBACK
|
||||
command_line_init_from_string(struct _cef_command_line_t* self,
|
||||
const cef_string_t* command_line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +115,7 @@ void CEF_CALLBACK command_line_init_from_string(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->InitFromString(
|
||||
CefString(command_line));
|
||||
CefCommandLineCppToC::Get(self)->InitFromString(CefString(command_line));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_reset(struct _cef_command_line_t* self) {
|
||||
@ -131,7 +130,7 @@ void CEF_CALLBACK command_line_reset(struct _cef_command_line_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_get_argv(struct _cef_command_line_t* self,
|
||||
cef_string_list_t argv) {
|
||||
cef_string_list_t argv) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -147,16 +146,15 @@ void CEF_CALLBACK command_line_get_argv(struct _cef_command_line_t* self,
|
||||
transfer_string_list_contents(argv, argvList);
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->GetArgv(
|
||||
argvList);
|
||||
CefCommandLineCppToC::Get(self)->GetArgv(argvList);
|
||||
|
||||
// Restore param: argv; type: string_vec_byref
|
||||
cef_string_list_clear(argv);
|
||||
transfer_string_list_contents(argvList, argv);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_command_line_string(
|
||||
struct _cef_command_line_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
command_line_get_command_line_string(struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -170,8 +168,8 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_command_line_string(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_program(
|
||||
struct _cef_command_line_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
command_line_get_program(struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -186,7 +184,7 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_program(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_set_program(struct _cef_command_line_t* self,
|
||||
const cef_string_t* program) {
|
||||
const cef_string_t* program) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -198,8 +196,7 @@ void CEF_CALLBACK command_line_set_program(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->SetProgram(
|
||||
CefString(program));
|
||||
CefCommandLineCppToC::Get(self)->SetProgram(CefString(program));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self) {
|
||||
@ -217,7 +214,7 @@ int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_switch(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name) {
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -229,15 +226,15 @@ int CEF_CALLBACK command_line_has_switch(struct _cef_command_line_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCommandLineCppToC::Get(self)->HasSwitch(
|
||||
CefString(name));
|
||||
bool _retval = CefCommandLineCppToC::Get(self)->HasSwitch(CefString(name));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_switch_value(
|
||||
struct _cef_command_line_t* self, const cef_string_t* name) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
command_line_get_switch_value(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -249,15 +246,15 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_switch_value(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefCommandLineCppToC::Get(self)->GetSwitchValue(
|
||||
CefString(name));
|
||||
CefString _retval =
|
||||
CefCommandLineCppToC::Get(self)->GetSwitchValue(CefString(name));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
cef_string_map_t switches) {
|
||||
cef_string_map_t switches) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -273,8 +270,7 @@ void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
transfer_string_map_contents(switches, switchesMap);
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->GetSwitches(
|
||||
switchesMap);
|
||||
CefCommandLineCppToC::Get(self)->GetSwitches(switchesMap);
|
||||
|
||||
// Restore param: switches; type: string_map_single_byref
|
||||
cef_string_map_clear(switches);
|
||||
@ -282,7 +278,7 @@ void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_append_switch(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name) {
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -294,13 +290,13 @@ void CEF_CALLBACK command_line_append_switch(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->AppendSwitch(
|
||||
CefString(name));
|
||||
CefCommandLineCppToC::Get(self)->AppendSwitch(CefString(name));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_append_switch_with_value(
|
||||
struct _cef_command_line_t* self, const cef_string_t* name,
|
||||
const cef_string_t* value) {
|
||||
void CEF_CALLBACK
|
||||
command_line_append_switch_with_value(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name,
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -316,9 +312,8 @@ void CEF_CALLBACK command_line_append_switch_with_value(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->AppendSwitchWithValue(
|
||||
CefString(name),
|
||||
CefString(value));
|
||||
CefCommandLineCppToC::Get(self)->AppendSwitchWithValue(CefString(name),
|
||||
CefString(value));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self) {
|
||||
@ -336,7 +331,7 @@ int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
|
||||
cef_string_list_t arguments) {
|
||||
cef_string_list_t arguments) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -352,8 +347,7 @@ void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
|
||||
transfer_string_list_contents(arguments, argumentsList);
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->GetArguments(
|
||||
argumentsList);
|
||||
CefCommandLineCppToC::Get(self)->GetArguments(argumentsList);
|
||||
|
||||
// Restore param: arguments; type: string_vec_byref
|
||||
cef_string_list_clear(arguments);
|
||||
@ -361,7 +355,7 @@ void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
|
||||
const cef_string_t* argument) {
|
||||
const cef_string_t* argument) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -373,12 +367,11 @@ void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->AppendArgument(
|
||||
CefString(argument));
|
||||
CefCommandLineCppToC::Get(self)->AppendArgument(CefString(argument));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_prepend_wrapper(struct _cef_command_line_t* self,
|
||||
const cef_string_t* wrapper) {
|
||||
const cef_string_t* wrapper) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -390,13 +383,11 @@ void CEF_CALLBACK command_line_prepend_wrapper(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefCommandLineCppToC::Get(self)->PrependWrapper(
|
||||
CefString(wrapper));
|
||||
CefCommandLineCppToC::Get(self)->PrependWrapper(CefString(wrapper));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCommandLineCppToC::CefCommandLineCppToC() {
|
||||
@ -422,17 +413,23 @@ CefCommandLineCppToC::CefCommandLineCppToC() {
|
||||
GetStruct()->prepend_wrapper = command_line_prepend_wrapper;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefCommandLine> CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine, cef_command_line_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_command_line_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefCommandLine>
|
||||
CefCppToCRefCounted<CefCommandLineCppToC, CefCommandLine, cef_command_line_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_command_line_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine, cef_command_line_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine,
|
||||
cef_command_line_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine, cef_command_line_t>::kWrapperType = WT_COMMAND_LINE;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine,
|
||||
cef_command_line_t>::kWrapperType =
|
||||
WT_COMMAND_LINE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=774d7a80d2c2d878e16319ed791472dfd49b5d1a$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_command_line.h"
|
||||
#include "include/capi/cef_command_line_capi.h"
|
||||
#include "include/cef_command_line.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 CefCommandLineCppToC
|
||||
: public CefCppToCRefCounted<CefCommandLineCppToC, CefCommandLine,
|
||||
cef_command_line_t> {
|
||||
class CefCommandLineCppToC : public CefCppToCRefCounted<CefCommandLineCppToC,
|
||||
CefCommandLine,
|
||||
cef_command_line_t> {
|
||||
public:
|
||||
CefCommandLineCppToC();
|
||||
};
|
||||
|
@ -9,16 +9,17 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=fa15c71d8a7710d8e1c326ede770c2359b790188$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK completion_callback_on_complete(
|
||||
struct _cef_completion_callback_t* self) {
|
||||
void CEF_CALLBACK
|
||||
completion_callback_on_complete(struct _cef_completion_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,25 +32,32 @@ void CEF_CALLBACK completion_callback_on_complete(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
|
||||
GetStruct()->on_complete = completion_callback_on_complete;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefCompletionCallback> CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback, cef_completion_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_completion_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefCompletionCallback> CefCppToCRefCounted<
|
||||
CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback,
|
||||
cef_completion_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_completion_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback, cef_completion_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback,
|
||||
cef_completion_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback, cef_completion_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback,
|
||||
cef_completion_callback_t>::kWrapperType =
|
||||
WT_COMPLETION_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=e34dbc70b1ad79757db547ae0d27f043db480ac9$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_callback.h"
|
||||
#include "include/capi/cef_callback_capi.h"
|
||||
#include "include/cef_callback.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 CefCompletionCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefCompletionCallbackCppToC,
|
||||
CefCompletionCallback, cef_completion_callback_t> {
|
||||
CefCompletionCallback,
|
||||
cef_completion_callback_t> {
|
||||
public:
|
||||
CefCompletionCallbackCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=29e80c799b48d2d05117f502e4ab1a71e510b5e9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
@ -17,14 +19,15 @@
|
||||
#include "libcef_dll/ctocpp/menu_model_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK context_menu_handler_on_before_context_menu(
|
||||
struct _cef_context_menu_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params,
|
||||
struct _cef_context_menu_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame,
|
||||
struct _cef_context_menu_params_t* params,
|
||||
struct _cef_menu_model_t* model) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -50,15 +53,16 @@ void CEF_CALLBACK context_menu_handler_on_before_context_menu(
|
||||
|
||||
// Execute
|
||||
CefContextMenuHandlerCppToC::Get(self)->OnBeforeContextMenu(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefContextMenuParamsCToCpp::Wrap(params),
|
||||
CefMenuModelCToCpp::Wrap(model));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_handler_run_context_menu(
|
||||
struct _cef_context_menu_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params,
|
||||
struct _cef_context_menu_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame,
|
||||
struct _cef_context_menu_params_t* params,
|
||||
struct _cef_menu_model_t* model,
|
||||
cef_run_context_menu_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
@ -89,10 +93,8 @@ int CEF_CALLBACK context_menu_handler_run_context_menu(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefContextMenuHandlerCppToC::Get(self)->RunContextMenu(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefContextMenuParamsCToCpp::Wrap(params),
|
||||
CefMenuModelCToCpp::Wrap(model),
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefContextMenuParamsCToCpp::Wrap(params), CefMenuModelCToCpp::Wrap(model),
|
||||
CefRunContextMenuCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
@ -100,9 +102,12 @@ int CEF_CALLBACK context_menu_handler_run_context_menu(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_handler_on_context_menu_command(
|
||||
struct _cef_context_menu_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params,
|
||||
int command_id, cef_event_flags_t event_flags) {
|
||||
struct _cef_context_menu_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame,
|
||||
struct _cef_context_menu_params_t* params,
|
||||
int command_id,
|
||||
cef_event_flags_t event_flags) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -123,18 +128,16 @@ int CEF_CALLBACK context_menu_handler_on_context_menu_command(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefContextMenuHandlerCppToC::Get(self)->OnContextMenuCommand(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefContextMenuParamsCToCpp::Wrap(params),
|
||||
command_id,
|
||||
event_flags);
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefContextMenuParamsCToCpp::Wrap(params), command_id, event_flags);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK context_menu_handler_on_context_menu_dismissed(
|
||||
struct _cef_context_menu_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_context_menu_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -152,13 +155,11 @@ void CEF_CALLBACK context_menu_handler_on_context_menu_dismissed(
|
||||
|
||||
// Execute
|
||||
CefContextMenuHandlerCppToC::Get(self)->OnContextMenuDismissed(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame));
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefContextMenuHandlerCppToC::CefContextMenuHandlerCppToC() {
|
||||
@ -171,18 +172,26 @@ CefContextMenuHandlerCppToC::CefContextMenuHandlerCppToC() {
|
||||
context_menu_handler_on_context_menu_dismissed;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefContextMenuHandler> CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler, cef_context_menu_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_context_menu_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefContextMenuHandler> CefCppToCRefCounted<
|
||||
CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler,
|
||||
cef_context_menu_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_context_menu_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler, cef_context_menu_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler,
|
||||
cef_context_menu_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler, cef_context_menu_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler,
|
||||
cef_context_menu_handler_t>::kWrapperType =
|
||||
WT_CONTEXT_MENU_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b60a8c9ed22835cc550c9d3487cf4c6f2f914e82$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_context_menu_handler.h"
|
||||
#include "include/capi/cef_context_menu_handler_capi.h"
|
||||
#include "include/cef_context_menu_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 CefContextMenuHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefContextMenuHandlerCppToC,
|
||||
CefContextMenuHandler, cef_context_menu_handler_t> {
|
||||
CefContextMenuHandler,
|
||||
cef_context_menu_handler_t> {
|
||||
public:
|
||||
CefContextMenuHandlerCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=18b1ac42fafd91952f9e5f88e765b2b7af85893e$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/context_menu_params_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK context_menu_params_get_xcoord(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
int CEF_CALLBACK
|
||||
context_menu_params_get_xcoord(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +34,8 @@ int CEF_CALLBACK context_menu_params_get_xcoord(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_params_get_ycoord(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
int CEF_CALLBACK
|
||||
context_menu_params_get_ycoord(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -48,8 +49,8 @@ int CEF_CALLBACK context_menu_params_get_ycoord(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_context_menu_type_flags_t CEF_CALLBACK context_menu_params_get_type_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_context_menu_type_flags_t CEF_CALLBACK
|
||||
context_menu_params_get_type_flags(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -57,15 +58,15 @@ cef_context_menu_type_flags_t CEF_CALLBACK context_menu_params_get_type_flags(
|
||||
return CM_TYPEFLAG_NONE;
|
||||
|
||||
// Execute
|
||||
cef_context_menu_type_flags_t _retval = CefContextMenuParamsCppToC::Get(
|
||||
self)->GetTypeFlags();
|
||||
cef_context_menu_type_flags_t _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetTypeFlags();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_link_url(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_link_url(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -88,15 +89,15 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_unfiltered_link_url(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefContextMenuParamsCppToC::Get(
|
||||
self)->GetUnfilteredLinkUrl();
|
||||
CefString _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetUnfilteredLinkUrl();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_source_url(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_source_url(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -125,8 +126,8 @@ int CEF_CALLBACK context_menu_params_has_image_contents(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_title_text(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_title_text(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -140,8 +141,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_title_text(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_page_url(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_page_url(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -155,8 +156,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_page_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_frame_url(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_frame_url(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -170,8 +171,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_frame_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_frame_charset(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
context_menu_params_get_frame_charset(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -185,8 +186,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_frame_charset(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_context_menu_media_type_t CEF_CALLBACK context_menu_params_get_media_type(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
cef_context_menu_media_type_t CEF_CALLBACK
|
||||
context_menu_params_get_media_type(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -194,14 +195,15 @@ cef_context_menu_media_type_t CEF_CALLBACK context_menu_params_get_media_type(
|
||||
return CM_MEDIATYPE_NONE;
|
||||
|
||||
// Execute
|
||||
cef_context_menu_media_type_t _retval = CefContextMenuParamsCppToC::Get(
|
||||
self)->GetMediaType();
|
||||
cef_context_menu_media_type_t _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetMediaType();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_context_menu_media_state_flags_t CEF_CALLBACK context_menu_params_get_media_state_flags(
|
||||
cef_context_menu_media_state_flags_t CEF_CALLBACK
|
||||
context_menu_params_get_media_state_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -241,15 +243,16 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_misspelled_word(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetMisspelledWord(
|
||||
);
|
||||
CefString _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetMisspelledWord();
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_params_get_dictionary_suggestions(
|
||||
struct _cef_context_menu_params_t* self, cef_string_list_t suggestions) {
|
||||
struct _cef_context_menu_params_t* self,
|
||||
cef_string_list_t suggestions) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -265,9 +268,9 @@ int CEF_CALLBACK context_menu_params_get_dictionary_suggestions(
|
||||
transfer_string_list_contents(suggestions, suggestionsList);
|
||||
|
||||
// Execute
|
||||
bool _retval = CefContextMenuParamsCppToC::Get(
|
||||
self)->GetDictionarySuggestions(
|
||||
suggestionsList);
|
||||
bool _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetDictionarySuggestions(
|
||||
suggestionsList);
|
||||
|
||||
// Restore param: suggestions; type: string_vec_byref
|
||||
cef_string_list_clear(suggestions);
|
||||
@ -277,8 +280,8 @@ int CEF_CALLBACK context_menu_params_get_dictionary_suggestions(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_params_is_editable(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
int CEF_CALLBACK
|
||||
context_menu_params_is_editable(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -307,7 +310,8 @@ int CEF_CALLBACK context_menu_params_is_spell_check_enabled(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_context_menu_edit_state_flags_t CEF_CALLBACK context_menu_params_get_edit_state_flags(
|
||||
cef_context_menu_edit_state_flags_t CEF_CALLBACK
|
||||
context_menu_params_get_edit_state_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -316,15 +320,15 @@ cef_context_menu_edit_state_flags_t CEF_CALLBACK context_menu_params_get_edit_st
|
||||
return CM_EDITFLAG_NONE;
|
||||
|
||||
// Execute
|
||||
cef_context_menu_edit_state_flags_t _retval = CefContextMenuParamsCppToC::Get(
|
||||
self)->GetEditStateFlags();
|
||||
cef_context_menu_edit_state_flags_t _retval =
|
||||
CefContextMenuParamsCppToC::Get(self)->GetEditStateFlags();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_params_is_custom_menu(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
int CEF_CALLBACK
|
||||
context_menu_params_is_custom_menu(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -338,8 +342,8 @@ int CEF_CALLBACK context_menu_params_is_custom_menu(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK context_menu_params_is_pepper_menu(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
int CEF_CALLBACK
|
||||
context_menu_params_is_pepper_menu(struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -355,7 +359,6 @@ int CEF_CALLBACK context_menu_params_is_pepper_menu(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefContextMenuParamsCppToC::CefContextMenuParamsCppToC() {
|
||||
@ -386,18 +389,26 @@ CefContextMenuParamsCppToC::CefContextMenuParamsCppToC() {
|
||||
GetStruct()->is_pepper_menu = context_menu_params_is_pepper_menu;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefContextMenuParams> CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams, cef_context_menu_params_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_context_menu_params_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefContextMenuParams> CefCppToCRefCounted<
|
||||
CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams,
|
||||
cef_context_menu_params_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_context_menu_params_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams, cef_context_menu_params_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams,
|
||||
cef_context_menu_params_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams, cef_context_menu_params_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams,
|
||||
cef_context_menu_params_t>::kWrapperType =
|
||||
WT_CONTEXT_MENU_PARAMS;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=dd761b2db52b1daad0dd796ae1e46fe877ba1185$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_context_menu_handler.h"
|
||||
#include "include/capi/cef_context_menu_handler_capi.h"
|
||||
#include "include/cef_context_menu_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 CefContextMenuParamsCppToC
|
||||
: public CefCppToCRefCounted<CefContextMenuParamsCppToC,
|
||||
CefContextMenuParams, cef_context_menu_params_t> {
|
||||
CefContextMenuParams,
|
||||
cef_context_menu_params_t> {
|
||||
public:
|
||||
CefContextMenuParamsCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=decd4e8fc4ddfe8c55b7227842584974e2581739$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/cookie_manager_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
|
||||
@ -17,7 +19,6 @@
|
||||
#include "libcef_dll/ctocpp/set_cookie_callback_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_get_global_manager(
|
||||
@ -35,7 +36,8 @@ CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_get_global_manager(
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_create_manager(
|
||||
const cef_string_t* path, int persist_session_cookies,
|
||||
const cef_string_t* path,
|
||||
int persist_session_cookies,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -43,22 +45,21 @@ CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_create_manager(
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefCookieManager> _retval = CefCookieManager::CreateManager(
|
||||
CefString(path),
|
||||
persist_session_cookies?true:false,
|
||||
CefString(path), persist_session_cookies ? true : false,
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefCookieManagerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK cookie_manager_set_supported_schemes(
|
||||
struct _cef_cookie_manager_t* self, cef_string_list_t schemes,
|
||||
cef_completion_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
cookie_manager_set_supported_schemes(struct _cef_cookie_manager_t* self,
|
||||
cef_string_list_t schemes,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -76,13 +77,12 @@ void CEF_CALLBACK cookie_manager_set_supported_schemes(
|
||||
|
||||
// Execute
|
||||
CefCookieManagerCppToC::Get(self)->SetSupportedSchemes(
|
||||
schemesList,
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
schemesList, CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_visit_all_cookies(
|
||||
struct _cef_cookie_manager_t* self,
|
||||
struct _cef_cookie_visitor_t* visitor) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_visit_all_cookies(struct _cef_cookie_manager_t* self,
|
||||
struct _cef_cookie_visitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -101,9 +101,11 @@ int CEF_CALLBACK cookie_manager_visit_all_cookies(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_visit_url_cookies(
|
||||
struct _cef_cookie_manager_t* self, const cef_string_t* url,
|
||||
int includeHttpOnly, struct _cef_cookie_visitor_t* visitor) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_visit_url_cookies(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* url,
|
||||
int includeHttpOnly,
|
||||
struct _cef_cookie_visitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -120,17 +122,18 @@ int CEF_CALLBACK cookie_manager_visit_url_cookies(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCookieManagerCppToC::Get(self)->VisitUrlCookies(
|
||||
CefString(url),
|
||||
includeHttpOnly?true:false,
|
||||
CefString(url), includeHttpOnly ? true : false,
|
||||
CefCookieVisitorCToCpp::Wrap(visitor));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_set_cookie(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* url, const struct _cef_cookie_t* cookie,
|
||||
struct _cef_set_cookie_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_set_cookie(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* url,
|
||||
const struct _cef_cookie_t* cookie,
|
||||
struct _cef_set_cookie_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -153,18 +156,17 @@ int CEF_CALLBACK cookie_manager_set_cookie(struct _cef_cookie_manager_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCookieManagerCppToC::Get(self)->SetCookie(
|
||||
CefString(url),
|
||||
cookieObj,
|
||||
CefSetCookieCallbackCToCpp::Wrap(callback));
|
||||
CefString(url), cookieObj, CefSetCookieCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_delete_cookies(
|
||||
struct _cef_cookie_manager_t* self, const cef_string_t* url,
|
||||
const cef_string_t* cookie_name,
|
||||
struct _cef_delete_cookies_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_delete_cookies(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* url,
|
||||
const cef_string_t* cookie_name,
|
||||
struct _cef_delete_cookies_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -174,17 +176,18 @@ int CEF_CALLBACK cookie_manager_delete_cookies(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCookieManagerCppToC::Get(self)->DeleteCookies(
|
||||
CefString(url),
|
||||
CefString(cookie_name),
|
||||
CefString(url), CefString(cookie_name),
|
||||
CefDeleteCookiesCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_set_storage_path(
|
||||
struct _cef_cookie_manager_t* self, const cef_string_t* path,
|
||||
int persist_session_cookies, cef_completion_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_set_storage_path(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* path,
|
||||
int persist_session_cookies,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -194,16 +197,16 @@ int CEF_CALLBACK cookie_manager_set_storage_path(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCookieManagerCppToC::Get(self)->SetStoragePath(
|
||||
CefString(path),
|
||||
persist_session_cookies?true:false,
|
||||
CefString(path), persist_session_cookies ? true : false,
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK cookie_manager_flush_store(struct _cef_cookie_manager_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
cookie_manager_flush_store(struct _cef_cookie_manager_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -221,7 +224,6 @@ int CEF_CALLBACK cookie_manager_flush_store(struct _cef_cookie_manager_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCookieManagerCppToC::CefCookieManagerCppToC() {
|
||||
@ -234,17 +236,25 @@ CefCookieManagerCppToC::CefCookieManagerCppToC() {
|
||||
GetStruct()->flush_store = cookie_manager_flush_store;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefCookieManager> CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager, cef_cookie_manager_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_cookie_manager_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefCookieManager> CefCppToCRefCounted<
|
||||
CefCookieManagerCppToC,
|
||||
CefCookieManager,
|
||||
cef_cookie_manager_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_cookie_manager_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager, cef_cookie_manager_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager,
|
||||
cef_cookie_manager_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager, cef_cookie_manager_t>::kWrapperType = WT_COOKIE_MANAGER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager,
|
||||
cef_cookie_manager_t>::kWrapperType =
|
||||
WT_COOKIE_MANAGER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9c3a4998e5d65d301465a3447f2777c000d78a2c$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_cookie.h"
|
||||
#include "include/capi/cef_cookie_capi.h"
|
||||
#include "include/cef_cookie.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 CefCookieManagerCppToC
|
||||
: public CefCppToCRefCounted<CefCookieManagerCppToC, CefCookieManager,
|
||||
cef_cookie_manager_t> {
|
||||
: public CefCppToCRefCounted<CefCookieManagerCppToC,
|
||||
CefCookieManager,
|
||||
cef_cookie_manager_t> {
|
||||
public:
|
||||
CefCookieManagerCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,20 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f940c4ed56f4c6e6dbb2cefb49b81376bccbe3ff$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
const struct _cef_cookie_t* cookie, int count, int total,
|
||||
int* deleteCookie) {
|
||||
const struct _cef_cookie_t* cookie,
|
||||
int count,
|
||||
int total,
|
||||
int* deleteCookie) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -39,18 +42,15 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
if (cookie)
|
||||
cookieObj.Set(*cookie, false);
|
||||
// Translate param: deleteCookie; type: bool_byref
|
||||
bool deleteCookieBool = (deleteCookie && *deleteCookie)?true:false;
|
||||
bool deleteCookieBool = (deleteCookie && *deleteCookie) ? true : false;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefCookieVisitorCppToC::Get(self)->Visit(
|
||||
cookieObj,
|
||||
count,
|
||||
total,
|
||||
deleteCookieBool);
|
||||
cookieObj, count, total, deleteCookieBool);
|
||||
|
||||
// Restore param: deleteCookie; type: bool_byref
|
||||
if (deleteCookie)
|
||||
*deleteCookie = deleteCookieBool?true:false;
|
||||
*deleteCookie = deleteCookieBool ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -58,24 +58,31 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCookieVisitorCppToC::CefCookieVisitorCppToC() {
|
||||
GetStruct()->visit = cookie_visitor_visit;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor, cef_cookie_visitor_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_cookie_visitor_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<
|
||||
CefCookieVisitorCppToC,
|
||||
CefCookieVisitor,
|
||||
cef_cookie_visitor_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_cookie_visitor_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor, cef_cookie_visitor_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor,
|
||||
cef_cookie_visitor_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor, cef_cookie_visitor_t>::kWrapperType = WT_COOKIE_VISITOR;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor,
|
||||
cef_cookie_visitor_t>::kWrapperType =
|
||||
WT_COOKIE_VISITOR;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=82784a784ccc1612bfae27d2a404db3301e36643$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_cookie.h"
|
||||
#include "include/capi/cef_cookie_capi.h"
|
||||
#include "include/cef_cookie.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 CefCookieVisitorCppToC
|
||||
: public CefCppToCRefCounted<CefCookieVisitorCppToC, CefCookieVisitor,
|
||||
cef_cookie_visitor_t> {
|
||||
: public CefCppToCRefCounted<CefCookieVisitorCppToC,
|
||||
CefCookieVisitor,
|
||||
cef_cookie_visitor_t> {
|
||||
public:
|
||||
CefCookieVisitorCppToC();
|
||||
};
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
#include "include/base/cef_logging.h"
|
||||
#include "include/base/cef_macros.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "libcef_dll/wrapper_types.h"
|
||||
|
||||
// Wrap a C++ class with a C structure. This is used when the class
|
||||
@ -91,7 +91,7 @@ class CefCppToCRefCounted : public CefBaseRefCounted {
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
// Simple tracking of allocated objects.
|
||||
static base::AtomicRefCount DebugObjCt; // NOLINT(runtime/int)
|
||||
static base::AtomicRefCount DebugObjCt;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
@ -141,12 +141,8 @@ class CefCppToCRefCounted : public CefBaseRefCounted {
|
||||
static CefRefPtr<BaseName> UnwrapDerived(CefWrapperType type, StructName* s);
|
||||
|
||||
// Increment/decrement reference counts on only the underlying class.
|
||||
void UnderlyingAddRef() const {
|
||||
wrapper_struct_.object_->AddRef();
|
||||
}
|
||||
bool UnderlyingRelease() const {
|
||||
return wrapper_struct_.object_->Release();
|
||||
}
|
||||
void UnderlyingAddRef() const { wrapper_struct_.object_->AddRef(); }
|
||||
bool UnderlyingRelease() const { return wrapper_struct_.object_->Release(); }
|
||||
bool UnderlyingHasOneRef() const {
|
||||
return wrapper_struct_.object_->HasOneRef();
|
||||
}
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
#include "include/base/cef_logging.h"
|
||||
#include "include/base/cef_macros.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "libcef_dll/ptr_util.h"
|
||||
#include "libcef_dll/wrapper_types.h"
|
||||
|
||||
@ -156,7 +156,7 @@ class CefCppToCScoped : public CefBaseScoped {
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
// Simple tracking of allocated objects.
|
||||
static base::AtomicRefCount DebugObjCt; // NOLINT(runtime/int)
|
||||
static base::AtomicRefCount DebugObjCt;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@ -9,16 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f17a9939eba29ab59060b3198e6041ff582a42a8$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK delete_cookies_callback_on_complete(
|
||||
struct _cef_delete_cookies_callback_t* self, int num_deleted) {
|
||||
void CEF_CALLBACK
|
||||
delete_cookies_callback_on_complete(struct _cef_delete_cookies_callback_t* self,
|
||||
int num_deleted) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -26,31 +28,39 @@ void CEF_CALLBACK delete_cookies_callback_on_complete(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefDeleteCookiesCallbackCppToC::Get(self)->OnComplete(
|
||||
num_deleted);
|
||||
CefDeleteCookiesCallbackCppToC::Get(self)->OnComplete(num_deleted);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDeleteCookiesCallbackCppToC::CefDeleteCookiesCallbackCppToC() {
|
||||
GetStruct()->on_complete = delete_cookies_callback_on_complete;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDeleteCookiesCallback> CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback, cef_delete_cookies_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_delete_cookies_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDeleteCookiesCallback> CefCppToCRefCounted<
|
||||
CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback,
|
||||
cef_delete_cookies_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_delete_cookies_callback_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback, cef_delete_cookies_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback,
|
||||
cef_delete_cookies_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback, cef_delete_cookies_callback_t>::kWrapperType =
|
||||
WT_DELETE_COOKIES_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback,
|
||||
cef_delete_cookies_callback_t>::kWrapperType =
|
||||
WT_DELETE_COOKIES_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a6f3e6c01015b3e90a3ee9c33a0215f6b5c971aa$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_cookie.h"
|
||||
#include "include/capi/cef_cookie_capi.h"
|
||||
#include "include/cef_cookie.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 CefDeleteCookiesCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
|
||||
CefDeleteCookiesCallback, cef_delete_cookies_callback_t> {
|
||||
CefDeleteCookiesCallback,
|
||||
cef_delete_cookies_callback_t> {
|
||||
public:
|
||||
CefDeleteCookiesCallbackCppToC();
|
||||
};
|
||||
|
@ -9,22 +9,27 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=2905826a83c8afbda57e2a6868bb447f8f22b58b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/dialog_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/file_dialog_callback_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK dialog_handler_on_file_dialog(
|
||||
struct _cef_dialog_handler_t* self, cef_browser_t* browser,
|
||||
cef_file_dialog_mode_t mode, const cef_string_t* title,
|
||||
const cef_string_t* default_file_path, cef_string_list_t accept_filters,
|
||||
int selected_accept_filter, cef_file_dialog_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
dialog_handler_on_file_dialog(struct _cef_dialog_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_file_dialog_mode_t mode,
|
||||
const cef_string_t* title,
|
||||
const cef_string_t* default_file_path,
|
||||
cef_string_list_t accept_filters,
|
||||
int selected_accept_filter,
|
||||
cef_file_dialog_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -50,12 +55,8 @@ int CEF_CALLBACK dialog_handler_on_file_dialog(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDialogHandlerCppToC::Get(self)->OnFileDialog(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
mode,
|
||||
CefString(title),
|
||||
CefString(default_file_path),
|
||||
accept_filtersList,
|
||||
selected_accept_filter,
|
||||
CefBrowserCToCpp::Wrap(browser), mode, CefString(title),
|
||||
CefString(default_file_path), accept_filtersList, selected_accept_filter,
|
||||
CefFileDialogCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
@ -64,24 +65,31 @@ int CEF_CALLBACK dialog_handler_on_file_dialog(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDialogHandlerCppToC::CefDialogHandlerCppToC() {
|
||||
GetStruct()->on_file_dialog = dialog_handler_on_file_dialog;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDialogHandler> CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler, cef_dialog_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_dialog_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDialogHandler> CefCppToCRefCounted<
|
||||
CefDialogHandlerCppToC,
|
||||
CefDialogHandler,
|
||||
cef_dialog_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_dialog_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler, cef_dialog_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler,
|
||||
cef_dialog_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler, cef_dialog_handler_t>::kWrapperType = WT_DIALOG_HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler,
|
||||
cef_dialog_handler_t>::kWrapperType =
|
||||
WT_DIALOG_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8802de8a4415791889f4b8ff4a9f3773ad06cf5c$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_dialog_handler.h"
|
||||
#include "include/capi/cef_dialog_handler_capi.h"
|
||||
#include "include/cef_dialog_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 CefDialogHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefDialogHandlerCppToC, CefDialogHandler,
|
||||
cef_dialog_handler_t> {
|
||||
: public CefCppToCRefCounted<CefDialogHandlerCppToC,
|
||||
CefDialogHandler,
|
||||
cef_dialog_handler_t> {
|
||||
public:
|
||||
CefDialogHandlerCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a70d01195a3849949d5046432f91e572dd2570d0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
||||
@ -16,7 +18,6 @@
|
||||
#include "libcef_dll/cpptoc/value_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_dictionary_value_t* cef_dictionary_value_create() {
|
||||
@ -29,13 +30,12 @@ CEF_EXPORT cef_dictionary_value_t* cef_dictionary_value_create() {
|
||||
return CefDictionaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK dictionary_value_is_valid(
|
||||
struct _cef_dictionary_value_t* self) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_is_valid(struct _cef_dictionary_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -49,8 +49,8 @@ int CEF_CALLBACK dictionary_value_is_valid(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_is_owned(
|
||||
struct _cef_dictionary_value_t* self) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_is_owned(struct _cef_dictionary_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,8 +64,8 @@ int CEF_CALLBACK dictionary_value_is_owned(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_is_read_only(
|
||||
struct _cef_dictionary_value_t* self) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_is_read_only(struct _cef_dictionary_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -79,8 +79,9 @@ int CEF_CALLBACK dictionary_value_is_read_only(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_is_same(struct _cef_dictionary_value_t* self,
|
||||
struct _cef_dictionary_value_t* that) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_is_same(struct _cef_dictionary_value_t* self,
|
||||
struct _cef_dictionary_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -99,8 +100,9 @@ int CEF_CALLBACK dictionary_value_is_same(struct _cef_dictionary_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
|
||||
struct _cef_dictionary_value_t* that) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
|
||||
struct _cef_dictionary_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -119,8 +121,9 @@ int CEF_CALLBACK dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_copy(
|
||||
struct _cef_dictionary_value_t* self, int exclude_empty_children) {
|
||||
struct _cef_dictionary_value_t* CEF_CALLBACK
|
||||
dictionary_value_copy(struct _cef_dictionary_value_t* self,
|
||||
int exclude_empty_children) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -128,16 +131,16 @@ struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_copy(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDictionaryValue> _retval = CefDictionaryValueCppToC::Get(
|
||||
self)->Copy(
|
||||
exclude_empty_children?true:false);
|
||||
CefRefPtr<CefDictionaryValue> _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->Copy(exclude_empty_children ? true
|
||||
: false);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDictionaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
size_t CEF_CALLBACK dictionary_value_get_size(
|
||||
struct _cef_dictionary_value_t* self) {
|
||||
size_t CEF_CALLBACK
|
||||
dictionary_value_get_size(struct _cef_dictionary_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -166,7 +169,7 @@ int CEF_CALLBACK dictionary_value_clear(struct _cef_dictionary_value_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_has_key(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -178,15 +181,14 @@ int CEF_CALLBACK dictionary_value_has_key(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->HasKey(
|
||||
CefString(key));
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->HasKey(CefString(key));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self,
|
||||
cef_string_list_t keys) {
|
||||
cef_string_list_t keys) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,8 +204,7 @@ int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self,
|
||||
transfer_string_list_contents(keys, keysList);
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->GetKeys(
|
||||
keysList);
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->GetKeys(keysList);
|
||||
|
||||
// Restore param: keys; type: string_vec_byref
|
||||
cef_string_list_clear(keys);
|
||||
@ -214,7 +215,7 @@ int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_remove(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -226,15 +227,15 @@ int CEF_CALLBACK dictionary_value_remove(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->Remove(
|
||||
CefString(key));
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->Remove(CefString(key));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_value_type_t CEF_CALLBACK dictionary_value_get_type(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
cef_value_type_t CEF_CALLBACK
|
||||
dictionary_value_get_type(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -246,15 +247,16 @@ cef_value_type_t CEF_CALLBACK dictionary_value_get_type(
|
||||
return VTYPE_INVALID;
|
||||
|
||||
// Execute
|
||||
cef_value_type_t _retval = CefDictionaryValueCppToC::Get(self)->GetType(
|
||||
CefString(key));
|
||||
cef_value_type_t _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetType(CefString(key));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_value_t* CEF_CALLBACK dictionary_value_get_value(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
cef_value_t* CEF_CALLBACK
|
||||
dictionary_value_get_value(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -266,15 +268,15 @@ cef_value_t* CEF_CALLBACK dictionary_value_get_value(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefValue> _retval = CefDictionaryValueCppToC::Get(self)->GetValue(
|
||||
CefString(key));
|
||||
CefRefPtr<CefValue> _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetValue(CefString(key));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -286,15 +288,14 @@ int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->GetBool(
|
||||
CefString(key));
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->GetBool(CefString(key));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -306,15 +307,15 @@ int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefDictionaryValueCppToC::Get(self)->GetInt(
|
||||
CefString(key));
|
||||
int _retval = CefDictionaryValueCppToC::Get(self)->GetInt(CefString(key));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
double CEF_CALLBACK dictionary_value_get_double(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
double CEF_CALLBACK
|
||||
dictionary_value_get_double(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -326,15 +327,16 @@ double CEF_CALLBACK dictionary_value_get_double(
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
double _retval = CefDictionaryValueCppToC::Get(self)->GetDouble(
|
||||
CefString(key));
|
||||
double _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetDouble(CefString(key));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK dictionary_value_get_string(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
dictionary_value_get_string(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -346,15 +348,16 @@ cef_string_userfree_t CEF_CALLBACK dictionary_value_get_string(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefDictionaryValueCppToC::Get(self)->GetString(
|
||||
CefString(key));
|
||||
CefString _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetString(CefString(key));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_binary_value_t* CEF_CALLBACK dictionary_value_get_binary(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
cef_binary_value_t* CEF_CALLBACK
|
||||
dictionary_value_get_binary(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -366,16 +369,16 @@ cef_binary_value_t* CEF_CALLBACK dictionary_value_get_binary(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefDictionaryValueCppToC::Get(
|
||||
self)->GetBinary(
|
||||
CefString(key));
|
||||
CefRefPtr<CefBinaryValue> _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetBinary(CefString(key));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_get_dictionary(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
struct _cef_dictionary_value_t* CEF_CALLBACK
|
||||
dictionary_value_get_dictionary(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -387,16 +390,16 @@ struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_get_dictionary(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDictionaryValue> _retval = CefDictionaryValueCppToC::Get(
|
||||
self)->GetDictionary(
|
||||
CefString(key));
|
||||
CefRefPtr<CefDictionaryValue> _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetDictionary(CefString(key));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDictionaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_list_value_t* CEF_CALLBACK dictionary_value_get_list(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
|
||||
struct _cef_list_value_t* CEF_CALLBACK
|
||||
dictionary_value_get_list(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -408,17 +411,17 @@ struct _cef_list_value_t* CEF_CALLBACK dictionary_value_get_list(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefListValue> _retval = CefDictionaryValueCppToC::Get(
|
||||
self)->GetList(
|
||||
CefString(key));
|
||||
CefRefPtr<CefListValue> _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->GetList(CefString(key));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefListValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_value(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key,
|
||||
cef_value_t* value) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_set_value(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key,
|
||||
cef_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -435,15 +438,14 @@ int CEF_CALLBACK dictionary_value_set_value(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetValue(
|
||||
CefString(key),
|
||||
CefValueCppToC::Unwrap(value));
|
||||
CefString(key), CefValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -455,15 +457,15 @@ int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetNull(
|
||||
CefString(key));
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetNull(CefString(key));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key, int value) {
|
||||
const cef_string_t* key,
|
||||
int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -476,15 +478,15 @@ int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetBool(
|
||||
CefString(key),
|
||||
value?true:false);
|
||||
CefString(key), value ? true : false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_int(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key, int value) {
|
||||
const cef_string_t* key,
|
||||
int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -496,17 +498,17 @@ int CEF_CALLBACK dictionary_value_set_int(struct _cef_dictionary_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetInt(
|
||||
CefString(key),
|
||||
value);
|
||||
bool _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->SetInt(CefString(key), value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_double(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key,
|
||||
double value) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_set_double(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key,
|
||||
double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -518,17 +520,17 @@ int CEF_CALLBACK dictionary_value_set_double(
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetDouble(
|
||||
CefString(key),
|
||||
value);
|
||||
bool _retval =
|
||||
CefDictionaryValueCppToC::Get(self)->SetDouble(CefString(key), value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_string(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key,
|
||||
const cef_string_t* value) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_set_string(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key,
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -542,16 +544,16 @@ int CEF_CALLBACK dictionary_value_set_string(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetString(
|
||||
CefString(key),
|
||||
CefString(value));
|
||||
CefString(key), CefString(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_binary(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key,
|
||||
cef_binary_value_t* value) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_set_binary(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key,
|
||||
cef_binary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -568,16 +570,16 @@ int CEF_CALLBACK dictionary_value_set_binary(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetBinary(
|
||||
CefString(key),
|
||||
CefBinaryValueCppToC::Unwrap(value));
|
||||
CefString(key), CefBinaryValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_dictionary(
|
||||
struct _cef_dictionary_value_t* self, const cef_string_t* key,
|
||||
struct _cef_dictionary_value_t* value) {
|
||||
int CEF_CALLBACK
|
||||
dictionary_value_set_dictionary(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key,
|
||||
struct _cef_dictionary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -594,15 +596,15 @@ int CEF_CALLBACK dictionary_value_set_dictionary(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetDictionary(
|
||||
CefString(key),
|
||||
CefDictionaryValueCppToC::Unwrap(value));
|
||||
CefString(key), CefDictionaryValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self,
|
||||
const cef_string_t* key, struct _cef_list_value_t* value) {
|
||||
const cef_string_t* key,
|
||||
struct _cef_list_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -619,8 +621,7 @@ int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDictionaryValueCppToC::Get(self)->SetList(
|
||||
CefString(key),
|
||||
CefListValueCppToC::Unwrap(value));
|
||||
CefString(key), CefListValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -628,7 +629,6 @@ int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDictionaryValueCppToC::CefDictionaryValueCppToC() {
|
||||
@ -663,18 +663,26 @@ CefDictionaryValueCppToC::CefDictionaryValueCppToC() {
|
||||
GetStruct()->set_list = dictionary_value_set_list;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDictionaryValue> CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue, cef_dictionary_value_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_dictionary_value_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDictionaryValue> CefCppToCRefCounted<
|
||||
CefDictionaryValueCppToC,
|
||||
CefDictionaryValue,
|
||||
cef_dictionary_value_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_dictionary_value_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue, cef_dictionary_value_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue,
|
||||
cef_dictionary_value_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue, cef_dictionary_value_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue,
|
||||
cef_dictionary_value_t>::kWrapperType =
|
||||
WT_DICTIONARY_VALUE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b0a901bd2ae6396bc447587ed91f90b663159697$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_values.h"
|
||||
#include "include/capi/cef_values_capi.h"
|
||||
#include "include/cef_values.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 CefDictionaryValueCppToC
|
||||
: public CefCppToCRefCounted<CefDictionaryValueCppToC, CefDictionaryValue,
|
||||
cef_dictionary_value_t> {
|
||||
: public CefCppToCRefCounted<CefDictionaryValueCppToC,
|
||||
CefDictionaryValue,
|
||||
cef_dictionary_value_t> {
|
||||
public:
|
||||
CefDictionaryValueCppToC();
|
||||
};
|
||||
|
@ -9,20 +9,23 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=92456884efde30d533ac7761b12bb476b5856052$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/display_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK display_handler_on_address_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, const cef_string_t* url) {
|
||||
void CEF_CALLBACK
|
||||
display_handler_on_address_change(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame,
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -43,14 +46,14 @@ void CEF_CALLBACK display_handler_on_address_change(
|
||||
|
||||
// Execute
|
||||
CefDisplayHandlerCppToC::Get(self)->OnAddressChange(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK display_handler_on_title_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* title) {
|
||||
void CEF_CALLBACK
|
||||
display_handler_on_title_change(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* title) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,13 +67,13 @@ void CEF_CALLBACK display_handler_on_title_change(
|
||||
|
||||
// Execute
|
||||
CefDisplayHandlerCppToC::Get(self)->OnTitleChange(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(title));
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(title));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK display_handler_on_favicon_urlchange(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
cef_string_list_t icon_urls) {
|
||||
void CEF_CALLBACK
|
||||
display_handler_on_favicon_urlchange(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_string_list_t icon_urls) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -88,13 +91,13 @@ void CEF_CALLBACK display_handler_on_favicon_urlchange(
|
||||
|
||||
// Execute
|
||||
CefDisplayHandlerCppToC::Get(self)->OnFaviconURLChange(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
icon_urlsList);
|
||||
CefBrowserCToCpp::Wrap(browser), icon_urlsList);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK display_handler_on_fullscreen_mode_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
int fullscreen) {
|
||||
void CEF_CALLBACK
|
||||
display_handler_on_fullscreen_mode_change(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
int fullscreen) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -107,12 +110,12 @@ void CEF_CALLBACK display_handler_on_fullscreen_mode_change(
|
||||
|
||||
// Execute
|
||||
CefDisplayHandlerCppToC::Get(self)->OnFullscreenModeChange(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
fullscreen?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), fullscreen ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser, cef_string_t* text) {
|
||||
cef_browser_t* browser,
|
||||
cef_string_t* text) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -129,16 +132,16 @@ int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDisplayHandlerCppToC::Get(self)->OnTooltip(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
textStr);
|
||||
CefBrowserCToCpp::Wrap(browser), textStr);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK display_handler_on_status_message(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* value) {
|
||||
void CEF_CALLBACK
|
||||
display_handler_on_status_message(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -152,13 +155,15 @@ void CEF_CALLBACK display_handler_on_status_message(
|
||||
|
||||
// Execute
|
||||
CefDisplayHandlerCppToC::Get(self)->OnStatusMessage(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(value));
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(value));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK display_handler_on_console_message(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* message, const cef_string_t* source, int line) {
|
||||
int CEF_CALLBACK
|
||||
display_handler_on_console_message(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* message,
|
||||
const cef_string_t* source,
|
||||
int line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -172,9 +177,7 @@ int CEF_CALLBACK display_handler_on_console_message(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDisplayHandlerCppToC::Get(self)->OnConsoleMessage(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(message),
|
||||
CefString(source),
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(message), CefString(source),
|
||||
line);
|
||||
|
||||
// Return type: bool
|
||||
@ -183,7 +186,6 @@ int CEF_CALLBACK display_handler_on_console_message(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDisplayHandlerCppToC::CefDisplayHandlerCppToC() {
|
||||
@ -197,18 +199,25 @@ CefDisplayHandlerCppToC::CefDisplayHandlerCppToC() {
|
||||
GetStruct()->on_console_message = display_handler_on_console_message;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDisplayHandler> CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler, cef_display_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_display_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDisplayHandler> CefCppToCRefCounted<
|
||||
CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler,
|
||||
cef_display_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_display_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler, cef_display_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler,
|
||||
cef_display_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler, cef_display_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler,
|
||||
cef_display_handler_t>::kWrapperType =
|
||||
WT_DISPLAY_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=25d9fba9bd05e09d69e853e2ab02b3a187166b7f$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_display_handler.h"
|
||||
#include "include/capi/cef_display_handler_capi.h"
|
||||
#include "include/cef_display_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 CefDisplayHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefDisplayHandlerCppToC, CefDisplayHandler,
|
||||
cef_display_handler_t> {
|
||||
: public CefCppToCRefCounted<CefDisplayHandlerCppToC,
|
||||
CefDisplayHandler,
|
||||
cef_display_handler_t> {
|
||||
public:
|
||||
CefDisplayHandlerCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=bf4251a1aeebda1ec6014743d22a9617852fe5cc$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_dom_document_type_t CEF_CALLBACK
|
||||
domdocument_get_type(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +34,8 @@ cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_document(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -42,15 +43,15 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(self)->GetDocument(
|
||||
);
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetDocument();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_body(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,8 +65,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_head(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -79,8 +80,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_title(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -94,8 +95,9 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* id) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_element_by_id(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -107,16 +109,15 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(
|
||||
self)->GetElementById(
|
||||
CefString(id));
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetElementById(CefString(id));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_focused_node(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -124,8 +125,8 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(
|
||||
self)->GetFocusedNode();
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetFocusedNode();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
@ -145,8 +146,8 @@ int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
struct _cef_domdocument_t* self) {
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -160,8 +161,8 @@ int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
struct _cef_domdocument_t* self) {
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -175,8 +176,8 @@ int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -190,8 +191,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_text(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -205,8 +206,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_base_url(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -220,8 +221,9 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* partialURL) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_complete_url(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* partialURL) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -233,8 +235,8 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefDOMDocumentCppToC::Get(self)->GetCompleteURL(
|
||||
CefString(partialURL));
|
||||
CefString _retval =
|
||||
CefDOMDocumentCppToC::Get(self)->GetCompleteURL(CefString(partialURL));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
@ -242,7 +244,6 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
|
||||
@ -263,17 +264,23 @@ CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
|
||||
GetStruct()->get_complete_url = domdocument_get_complete_url;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDOMDocument> CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_domdocument_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDOMDocument>
|
||||
CefCppToCRefCounted<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_domdocument_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument,
|
||||
cef_domdocument_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument, cef_domdocument_t>::kWrapperType = WT_DOMDOCUMENT;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument,
|
||||
cef_domdocument_t>::kWrapperType =
|
||||
WT_DOMDOCUMENT;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=76d6347dea785e1309bcb918ac0d9dcb77fa9d24$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
#include "include/cef_dom.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 CefDOMDocumentCppToC
|
||||
: public CefCppToCRefCounted<CefDOMDocumentCppToC, CefDOMDocument,
|
||||
cef_domdocument_t> {
|
||||
class CefDOMDocumentCppToC : public CefCppToCRefCounted<CefDOMDocumentCppToC,
|
||||
CefDOMDocument,
|
||||
cef_domdocument_t> {
|
||||
public:
|
||||
CefDOMDocumentCppToC();
|
||||
};
|
||||
|
@ -9,12 +9,13 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=160a85714fa66da2e5e8ce95b0fd14daaabcbfdf$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -89,8 +90,8 @@ int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_form_control_element_type(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_form_control_element_type(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -105,7 +106,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_form_control_element_type(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
|
||||
struct _cef_domnode_t* that) {
|
||||
struct _cef_domnode_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -117,15 +118,15 @@ int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDOMNodeCppToC::Get(self)->IsSame(
|
||||
CefDOMNodeCppToC::Unwrap(that));
|
||||
bool _retval =
|
||||
CefDOMNodeCppToC::Get(self)->IsSame(CefDOMNodeCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_name(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_name(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +140,8 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_name(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_value(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_value(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -155,7 +156,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_value(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
|
||||
const cef_string_t* value) {
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -167,15 +168,14 @@ int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDOMNodeCppToC::Get(self)->SetValue(
|
||||
CefString(value));
|
||||
bool _retval = CefDOMNodeCppToC::Get(self)->SetValue(CefString(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_as_markup(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_as_markup(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -189,8 +189,8 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_as_markup(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_domdocument_t* CEF_CALLBACK domnode_get_document(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_domdocument_t* CEF_CALLBACK
|
||||
domnode_get_document(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -198,15 +198,15 @@ cef_domdocument_t* CEF_CALLBACK domnode_get_document(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMDocument> _retval = CefDOMNodeCppToC::Get(self)->GetDocument(
|
||||
);
|
||||
CefRefPtr<CefDOMDocument> _retval =
|
||||
CefDOMNodeCppToC::Get(self)->GetDocument();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMDocumentCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_parent(
|
||||
struct _cef_domnode_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domnode_get_parent(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -220,8 +220,8 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_parent(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_previous_sibling(
|
||||
struct _cef_domnode_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domnode_get_previous_sibling(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -229,15 +229,15 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_previous_sibling(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(
|
||||
self)->GetPreviousSibling();
|
||||
CefRefPtr<CefDOMNode> _retval =
|
||||
CefDOMNodeCppToC::Get(self)->GetPreviousSibling();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_next_sibling(
|
||||
struct _cef_domnode_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domnode_get_next_sibling(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -265,8 +265,8 @@ int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_first_child(
|
||||
struct _cef_domnode_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domnode_get_first_child(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -280,8 +280,8 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_first_child(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_last_child(
|
||||
struct _cef_domnode_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domnode_get_last_child(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -295,8 +295,8 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_last_child(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_tag_name(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_element_tag_name(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -325,7 +325,7 @@ int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
|
||||
const cef_string_t* attrName) {
|
||||
const cef_string_t* attrName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -337,15 +337,16 @@ int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDOMNodeCppToC::Get(self)->HasElementAttribute(
|
||||
CefString(attrName));
|
||||
bool _retval =
|
||||
CefDOMNodeCppToC::Get(self)->HasElementAttribute(CefString(attrName));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_attribute(
|
||||
struct _cef_domnode_t* self, const cef_string_t* attrName) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_element_attribute(struct _cef_domnode_t* self,
|
||||
const cef_string_t* attrName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -357,15 +358,15 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_element_attribute(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefDOMNodeCppToC::Get(self)->GetElementAttribute(
|
||||
CefString(attrName));
|
||||
CefString _retval =
|
||||
CefDOMNodeCppToC::Get(self)->GetElementAttribute(CefString(attrName));
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
cef_string_map_t attrMap) {
|
||||
cef_string_map_t attrMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -381,8 +382,7 @@ void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
transfer_string_map_contents(attrMap, attrMapMap);
|
||||
|
||||
// Execute
|
||||
CefDOMNodeCppToC::Get(self)->GetElementAttributes(
|
||||
attrMapMap);
|
||||
CefDOMNodeCppToC::Get(self)->GetElementAttributes(attrMapMap);
|
||||
|
||||
// Restore param: attrMap; type: string_map_single_byref
|
||||
cef_string_map_clear(attrMap);
|
||||
@ -390,7 +390,8 @@ void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
|
||||
const cef_string_t* attrName, const cef_string_t* value) {
|
||||
const cef_string_t* attrName,
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -407,15 +408,14 @@ int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDOMNodeCppToC::Get(self)->SetElementAttribute(
|
||||
CefString(attrName),
|
||||
CefString(value));
|
||||
CefString(attrName), CefString(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_inner_text(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domnode_get_element_inner_text(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -429,8 +429,8 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_element_inner_text(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_rect_t CEF_CALLBACK domnode_get_element_bounds(
|
||||
struct _cef_domnode_t* self) {
|
||||
cef_rect_t CEF_CALLBACK
|
||||
domnode_get_element_bounds(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -446,7 +446,6 @@ cef_rect_t CEF_CALLBACK domnode_get_element_bounds(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMNodeCppToC::CefDOMNodeCppToC() {
|
||||
@ -479,17 +478,23 @@ CefDOMNodeCppToC::CefDOMNodeCppToC() {
|
||||
GetStruct()->get_element_bounds = domnode_get_element_bounds;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDOMNode> CefCppToCRefCounted<CefDOMNodeCppToC,
|
||||
CefDOMNode, cef_domnode_t>::UnwrapDerived(CefWrapperType type,
|
||||
template <>
|
||||
CefRefPtr<CefDOMNode>
|
||||
CefCppToCRefCounted<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_domnode_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDOMNodeCppToC,
|
||||
CefDOMNode, cef_domnode_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDOMNodeCppToC,
|
||||
CefDOMNode,
|
||||
cef_domnode_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDOMNodeCppToC, CefDOMNode,
|
||||
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDOMNodeCppToC,
|
||||
CefDOMNode,
|
||||
cef_domnode_t>::kWrapperType = WT_DOMNODE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=80408ad6108c3e99d477b1311fec25bb2eef8dc8$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
|
||||
@ -18,8 +20,8 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
#include "include/cef_dom.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,17 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=de24c7c2b66d08aff8d9fc36cc35419345503840$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
|
||||
struct _cef_domdocument_t* document) {
|
||||
struct _cef_domdocument_t* document) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,30 +32,34 @@ void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefDOMVisitorCppToC::Get(self)->Visit(
|
||||
CefDOMDocumentCToCpp::Wrap(document));
|
||||
CefDOMVisitorCppToC::Get(self)->Visit(CefDOMDocumentCToCpp::Wrap(document));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMVisitorCppToC::CefDOMVisitorCppToC() {
|
||||
GetStruct()->visit = domvisitor_visit;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDOMVisitor> CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor, cef_domvisitor_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_domvisitor_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDOMVisitor>
|
||||
CefCppToCRefCounted<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_domvisitor_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor, cef_domvisitor_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor,
|
||||
cef_domvisitor_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor, cef_domvisitor_t>::kWrapperType = WT_DOMVISITOR;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor,
|
||||
cef_domvisitor_t>::kWrapperType =
|
||||
WT_DOMVISITOR;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9bb7487a5f6db84031a7b3fbb62a1954f54cafee$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
#include "include/cef_dom.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 CefDOMVisitorCppToC
|
||||
: public CefCppToCRefCounted<CefDOMVisitorCppToC, CefDOMVisitor,
|
||||
cef_domvisitor_t> {
|
||||
class CefDOMVisitorCppToC : public CefCppToCRefCounted<CefDOMVisitorCppToC,
|
||||
CefDOMVisitor,
|
||||
cef_domvisitor_t> {
|
||||
public:
|
||||
CefDOMVisitorCppToC();
|
||||
};
|
||||
|
@ -9,23 +9,25 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=34d34f4a980b476678152ac69842f7d0b3a95a36$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/download_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/before_download_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/download_item_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/download_item_callback_ctocpp.h"
|
||||
|
||||
#include "libcef_dll/ctocpp/download_item_ctocpp.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK download_handler_on_before_download(
|
||||
struct _cef_download_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_download_item_t* download_item,
|
||||
const cef_string_t* suggested_name,
|
||||
cef_before_download_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
download_handler_on_before_download(struct _cef_download_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_download_item_t* download_item,
|
||||
const cef_string_t* suggested_name,
|
||||
cef_before_download_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,15 +53,15 @@ void CEF_CALLBACK download_handler_on_before_download(
|
||||
// Execute
|
||||
CefDownloadHandlerCppToC::Get(self)->OnBeforeDownload(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefDownloadItemCToCpp::Wrap(download_item),
|
||||
CefString(suggested_name),
|
||||
CefDownloadItemCToCpp::Wrap(download_item), CefString(suggested_name),
|
||||
CefBeforeDownloadCallbackCToCpp::Wrap(callback));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK download_handler_on_download_updated(
|
||||
struct _cef_download_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_download_item_t* download_item,
|
||||
cef_download_item_callback_t* callback) {
|
||||
void CEF_CALLBACK
|
||||
download_handler_on_download_updated(struct _cef_download_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
struct _cef_download_item_t* download_item,
|
||||
cef_download_item_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -87,7 +89,6 @@ void CEF_CALLBACK download_handler_on_download_updated(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDownloadHandlerCppToC::CefDownloadHandlerCppToC() {
|
||||
@ -95,18 +96,26 @@ CefDownloadHandlerCppToC::CefDownloadHandlerCppToC() {
|
||||
GetStruct()->on_download_updated = download_handler_on_download_updated;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDownloadHandler> CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler, cef_download_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_download_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDownloadHandler> CefCppToCRefCounted<
|
||||
CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler,
|
||||
cef_download_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_download_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler, cef_download_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler,
|
||||
cef_download_handler_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler, cef_download_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler,
|
||||
cef_download_handler_t>::kWrapperType =
|
||||
WT_DOWNLOAD_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ea474f115d17588ffd70398adbc70bea8f744949$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/capi/cef_download_handler_capi.h"
|
||||
#include "include/cef_download_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 CefDownloadHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefDownloadHandlerCppToC, CefDownloadHandler,
|
||||
cef_download_handler_t> {
|
||||
: public CefCppToCRefCounted<CefDownloadHandlerCppToC,
|
||||
CefDownloadHandler,
|
||||
cef_download_handler_t> {
|
||||
public:
|
||||
CefDownloadHandlerCppToC();
|
||||
};
|
||||
|
@ -9,18 +9,21 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=14b41457d2b33e31d9be5815c704c28420ec6b24$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/download_image_callback_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/image_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK download_image_callback_on_download_image_finished(
|
||||
struct _cef_download_image_callback_t* self, const cef_string_t* image_url,
|
||||
int http_status_code, struct _cef_image_t* image) {
|
||||
struct _cef_download_image_callback_t* self,
|
||||
const cef_string_t* image_url,
|
||||
int http_status_code,
|
||||
struct _cef_image_t* image) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -34,14 +37,11 @@ void CEF_CALLBACK download_image_callback_on_download_image_finished(
|
||||
|
||||
// Execute
|
||||
CefDownloadImageCallbackCppToC::Get(self)->OnDownloadImageFinished(
|
||||
CefString(image_url),
|
||||
http_status_code,
|
||||
CefImageCToCpp::Wrap(image));
|
||||
CefString(image_url), http_status_code, CefImageCToCpp::Wrap(image));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDownloadImageCallbackCppToC::CefDownloadImageCallbackCppToC() {
|
||||
@ -49,18 +49,28 @@ CefDownloadImageCallbackCppToC::CefDownloadImageCallbackCppToC() {
|
||||
download_image_callback_on_download_image_finished;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDownloadImageCallback> CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback, cef_download_image_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_download_image_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDownloadImageCallback> CefCppToCRefCounted<
|
||||
CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback,
|
||||
cef_download_image_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_download_image_callback_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback, cef_download_image_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback,
|
||||
cef_download_image_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback, cef_download_image_callback_t>::kWrapperType =
|
||||
WT_DOWNLOAD_IMAGE_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback,
|
||||
cef_download_image_callback_t>::kWrapperType =
|
||||
WT_DOWNLOAD_IMAGE_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9d3659cb00df64ef14776c0029357cbf06081a80$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_
|
||||
@ -18,17 +20,18 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_client.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 CefDownloadImageCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
|
||||
CefDownloadImageCallback, cef_download_image_callback_t> {
|
||||
CefDownloadImageCallback,
|
||||
cef_download_image_callback_t> {
|
||||
public:
|
||||
CefDownloadImageCallbackCppToC();
|
||||
};
|
||||
|
@ -9,16 +9,17 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=04aede4dd7d7d8ab90fa4d27537f1dd4c19501e7$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/download_item_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK download_item_callback_cancel(
|
||||
struct _cef_download_item_callback_t* self) {
|
||||
void CEF_CALLBACK
|
||||
download_item_callback_cancel(struct _cef_download_item_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -29,8 +30,8 @@ void CEF_CALLBACK download_item_callback_cancel(
|
||||
CefDownloadItemCallbackCppToC::Get(self)->Cancel();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK download_item_callback_pause(
|
||||
struct _cef_download_item_callback_t* self) {
|
||||
void CEF_CALLBACK
|
||||
download_item_callback_pause(struct _cef_download_item_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -41,8 +42,8 @@ void CEF_CALLBACK download_item_callback_pause(
|
||||
CefDownloadItemCallbackCppToC::Get(self)->Pause();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK download_item_callback_resume(
|
||||
struct _cef_download_item_callback_t* self) {
|
||||
void CEF_CALLBACK
|
||||
download_item_callback_resume(struct _cef_download_item_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -55,7 +56,6 @@ void CEF_CALLBACK download_item_callback_resume(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDownloadItemCallbackCppToC::CefDownloadItemCallbackCppToC() {
|
||||
@ -64,18 +64,27 @@ CefDownloadItemCallbackCppToC::CefDownloadItemCallbackCppToC() {
|
||||
GetStruct()->resume = download_item_callback_resume;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDownloadItemCallback> CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback, cef_download_item_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_download_item_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDownloadItemCallback> CefCppToCRefCounted<
|
||||
CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback,
|
||||
cef_download_item_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_download_item_callback_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback, cef_download_item_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback,
|
||||
cef_download_item_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback, cef_download_item_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback,
|
||||
cef_download_item_callback_t>::kWrapperType =
|
||||
WT_DOWNLOAD_ITEM_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f24431dac500b3ce7b0f554340d8b96c7b84ff08$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/capi/cef_download_handler_capi.h"
|
||||
#include "include/cef_download_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 CefDownloadItemCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
|
||||
CefDownloadItemCallback, cef_download_item_callback_t> {
|
||||
CefDownloadItemCallback,
|
||||
cef_download_item_callback_t> {
|
||||
public:
|
||||
CefDownloadItemCallbackCppToC();
|
||||
};
|
||||
|
@ -9,10 +9,11 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8406edcb1d9c418e704ebbc3ccad44dc4ca84244$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/download_item_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -31,8 +32,8 @@ int CEF_CALLBACK download_item_is_valid(struct _cef_download_item_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK download_item_is_in_progress(
|
||||
struct _cef_download_item_t* self) {
|
||||
int CEF_CALLBACK
|
||||
download_item_is_in_progress(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -74,8 +75,8 @@ int CEF_CALLBACK download_item_is_canceled(struct _cef_download_item_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int64 CEF_CALLBACK download_item_get_current_speed(
|
||||
struct _cef_download_item_t* self) {
|
||||
int64 CEF_CALLBACK
|
||||
download_item_get_current_speed(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -89,8 +90,8 @@ int64 CEF_CALLBACK download_item_get_current_speed(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK download_item_get_percent_complete(
|
||||
struct _cef_download_item_t* self) {
|
||||
int CEF_CALLBACK
|
||||
download_item_get_percent_complete(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -104,8 +105,8 @@ int CEF_CALLBACK download_item_get_percent_complete(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int64 CEF_CALLBACK download_item_get_total_bytes(
|
||||
struct _cef_download_item_t* self) {
|
||||
int64 CEF_CALLBACK
|
||||
download_item_get_total_bytes(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -119,8 +120,8 @@ int64 CEF_CALLBACK download_item_get_total_bytes(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int64 CEF_CALLBACK download_item_get_received_bytes(
|
||||
struct _cef_download_item_t* self) {
|
||||
int64 CEF_CALLBACK
|
||||
download_item_get_received_bytes(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -134,8 +135,8 @@ int64 CEF_CALLBACK download_item_get_received_bytes(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK download_item_get_start_time(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_time_t CEF_CALLBACK
|
||||
download_item_get_start_time(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -149,8 +150,8 @@ cef_time_t CEF_CALLBACK download_item_get_start_time(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK download_item_get_end_time(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_time_t CEF_CALLBACK
|
||||
download_item_get_end_time(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -164,8 +165,8 @@ cef_time_t CEF_CALLBACK download_item_get_end_time(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_full_path(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_full_path(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -193,8 +194,8 @@ uint32 CEF_CALLBACK download_item_get_id(struct _cef_download_item_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_url(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_url(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -208,8 +209,8 @@ cef_string_userfree_t CEF_CALLBACK download_item_get_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_original_url(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_original_url(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -223,8 +224,8 @@ cef_string_userfree_t CEF_CALLBACK download_item_get_original_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_suggested_file_name(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_suggested_file_name(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -238,8 +239,8 @@ cef_string_userfree_t CEF_CALLBACK download_item_get_suggested_file_name(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_content_disposition(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_content_disposition(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -253,8 +254,8 @@ cef_string_userfree_t CEF_CALLBACK download_item_get_content_disposition(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK download_item_get_mime_type(
|
||||
struct _cef_download_item_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
download_item_get_mime_type(struct _cef_download_item_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -270,7 +271,6 @@ cef_string_userfree_t CEF_CALLBACK download_item_get_mime_type(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDownloadItemCppToC::CefDownloadItemCppToC() {
|
||||
@ -293,17 +293,25 @@ CefDownloadItemCppToC::CefDownloadItemCppToC() {
|
||||
GetStruct()->get_mime_type = download_item_get_mime_type;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDownloadItem> CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem, cef_download_item_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_download_item_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDownloadItem> CefCppToCRefCounted<
|
||||
CefDownloadItemCppToC,
|
||||
CefDownloadItem,
|
||||
cef_download_item_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_download_item_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem, cef_download_item_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem,
|
||||
cef_download_item_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem, cef_download_item_t>::kWrapperType = WT_DOWNLOAD_ITEM;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem,
|
||||
cef_download_item_t>::kWrapperType =
|
||||
WT_DOWNLOAD_ITEM;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=4e5d46b2a6471130534f09cea30f7672761af5e1$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_download_item.h"
|
||||
#include "include/capi/cef_download_item_capi.h"
|
||||
#include "include/cef_download_item.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 CefDownloadItemCppToC
|
||||
: public CefCppToCRefCounted<CefDownloadItemCppToC, CefDownloadItem,
|
||||
cef_download_item_t> {
|
||||
class CefDownloadItemCppToC : public CefCppToCRefCounted<CefDownloadItemCppToC,
|
||||
CefDownloadItem,
|
||||
cef_download_item_t> {
|
||||
public:
|
||||
CefDownloadItemCppToC();
|
||||
};
|
||||
|
@ -9,13 +9,14 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=99a670d8fc60380f091a97bc9e8bb35d0e1e9c02$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/drag_data_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/image_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/stream_writer_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_drag_data_t* cef_drag_data_create() {
|
||||
@ -28,13 +29,12 @@ CEF_EXPORT cef_drag_data_t* cef_drag_data_create() {
|
||||
return CefDragDataCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
struct _cef_drag_data_t* CEF_CALLBACK drag_data_clone(
|
||||
struct _cef_drag_data_t* self) {
|
||||
struct _cef_drag_data_t* CEF_CALLBACK
|
||||
drag_data_clone(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -104,8 +104,8 @@ int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_url(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_link_url(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -119,8 +119,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_title(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_link_title(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -134,8 +134,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_title(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_metadata(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_link_metadata(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -149,8 +149,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_metadata(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_text(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_fragment_text(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -164,8 +164,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_text(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_html(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_fragment_html(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -179,8 +179,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_html(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_base_url(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_fragment_base_url(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -194,8 +194,8 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_base_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_file_name(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
drag_data_get_file_name(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -209,8 +209,9 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_file_name(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
size_t CEF_CALLBACK drag_data_get_file_contents(struct _cef_drag_data_t* self,
|
||||
struct _cef_stream_writer_t* writer) {
|
||||
size_t CEF_CALLBACK
|
||||
drag_data_get_file_contents(struct _cef_drag_data_t* self,
|
||||
struct _cef_stream_writer_t* writer) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -227,7 +228,7 @@ size_t CEF_CALLBACK drag_data_get_file_contents(struct _cef_drag_data_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
||||
cef_string_list_t names) {
|
||||
cef_string_list_t names) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -243,8 +244,7 @@ int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
||||
transfer_string_list_contents(names, namesList);
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDragDataCppToC::Get(self)->GetFileNames(
|
||||
namesList);
|
||||
bool _retval = CefDragDataCppToC::Get(self)->GetFileNames(namesList);
|
||||
|
||||
// Restore param: names; type: string_vec_byref
|
||||
cef_string_list_clear(names);
|
||||
@ -255,7 +255,7 @@ int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_link_url(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* url) {
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -264,12 +264,11 @@ void CEF_CALLBACK drag_data_set_link_url(struct _cef_drag_data_t* self,
|
||||
// Unverified params: url
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetLinkURL(
|
||||
CefString(url));
|
||||
CefDragDataCppToC::Get(self)->SetLinkURL(CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* title) {
|
||||
const cef_string_t* title) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -278,12 +277,11 @@ void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self,
|
||||
// Unverified params: title
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetLinkTitle(
|
||||
CefString(title));
|
||||
CefDragDataCppToC::Get(self)->SetLinkTitle(CefString(title));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* data) {
|
||||
const cef_string_t* data) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -292,12 +290,11 @@ void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self,
|
||||
// Unverified params: data
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetLinkMetadata(
|
||||
CefString(data));
|
||||
CefDragDataCppToC::Get(self)->SetLinkMetadata(CefString(data));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* text) {
|
||||
const cef_string_t* text) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -306,12 +303,11 @@ void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self,
|
||||
// Unverified params: text
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetFragmentText(
|
||||
CefString(text));
|
||||
CefDragDataCppToC::Get(self)->SetFragmentText(CefString(text));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* html) {
|
||||
const cef_string_t* html) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -320,12 +316,12 @@ void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self,
|
||||
// Unverified params: html
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetFragmentHtml(
|
||||
CefString(html));
|
||||
CefDragDataCppToC::Get(self)->SetFragmentHtml(CefString(html));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_set_fragment_base_url(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* base_url) {
|
||||
void CEF_CALLBACK
|
||||
drag_data_set_fragment_base_url(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* base_url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -334,8 +330,7 @@ void CEF_CALLBACK drag_data_set_fragment_base_url(struct _cef_drag_data_t* self,
|
||||
// Unverified params: base_url
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->SetFragmentBaseURL(
|
||||
CefString(base_url));
|
||||
CefDragDataCppToC::Get(self)->SetFragmentBaseURL(CefString(base_url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_reset_file_contents(struct _cef_drag_data_t* self) {
|
||||
@ -350,7 +345,8 @@ void CEF_CALLBACK drag_data_reset_file_contents(struct _cef_drag_data_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_data_add_file(struct _cef_drag_data_t* self,
|
||||
const cef_string_t* path, const cef_string_t* display_name) {
|
||||
const cef_string_t* path,
|
||||
const cef_string_t* display_name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -363,13 +359,12 @@ void CEF_CALLBACK drag_data_add_file(struct _cef_drag_data_t* self,
|
||||
// Unverified params: display_name
|
||||
|
||||
// Execute
|
||||
CefDragDataCppToC::Get(self)->AddFile(
|
||||
CefString(path),
|
||||
CefString(display_name));
|
||||
CefDragDataCppToC::Get(self)->AddFile(CefString(path),
|
||||
CefString(display_name));
|
||||
}
|
||||
|
||||
struct _cef_image_t* CEF_CALLBACK drag_data_get_image(
|
||||
struct _cef_drag_data_t* self) {
|
||||
struct _cef_image_t* CEF_CALLBACK
|
||||
drag_data_get_image(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -383,8 +378,8 @@ struct _cef_image_t* CEF_CALLBACK drag_data_get_image(
|
||||
return CefImageCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_point_t CEF_CALLBACK drag_data_get_image_hotspot(
|
||||
struct _cef_drag_data_t* self) {
|
||||
cef_point_t CEF_CALLBACK
|
||||
drag_data_get_image_hotspot(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -414,7 +409,6 @@ int CEF_CALLBACK drag_data_has_image(struct _cef_drag_data_t* self) {
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDragDataCppToC::CefDragDataCppToC() {
|
||||
@ -445,17 +439,23 @@ CefDragDataCppToC::CefDragDataCppToC() {
|
||||
GetStruct()->has_image = drag_data_has_image;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDragData> CefCppToCRefCounted<CefDragDataCppToC,
|
||||
CefDragData, cef_drag_data_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_drag_data_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDragData>
|
||||
CefCppToCRefCounted<CefDragDataCppToC, CefDragData, cef_drag_data_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_drag_data_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDragDataCppToC,
|
||||
CefDragData, cef_drag_data_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDragDataCppToC,
|
||||
CefDragData,
|
||||
cef_drag_data_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDragDataCppToC, CefDragData,
|
||||
cef_drag_data_t>::kWrapperType = WT_DRAG_DATA;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDragDataCppToC,
|
||||
CefDragData,
|
||||
cef_drag_data_t>::kWrapperType =
|
||||
WT_DRAG_DATA;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=6b2970a638285f00c7f4e8508ef012cd41fcdf34$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_drag_data.h"
|
||||
#include "include/capi/cef_drag_data_capi.h"
|
||||
#include "include/cef_drag_data.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 CefDragDataCppToC
|
||||
: public CefCppToCRefCounted<CefDragDataCppToC, CefDragData,
|
||||
cef_drag_data_t> {
|
||||
class CefDragDataCppToC : public CefCppToCRefCounted<CefDragDataCppToC,
|
||||
CefDragData,
|
||||
cef_drag_data_t> {
|
||||
public:
|
||||
CefDragDataCppToC();
|
||||
};
|
||||
|
@ -9,19 +9,21 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f56cb888482bc594b34fb05729c0cab9577c306e$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/drag_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self,
|
||||
cef_browser_t* browser, cef_drag_data_t* dragData,
|
||||
cef_drag_operations_mask_t mask) {
|
||||
cef_browser_t* browser,
|
||||
cef_drag_data_t* dragData,
|
||||
cef_drag_operations_mask_t mask) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -38,17 +40,17 @@ int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefDragHandlerCppToC::Get(self)->OnDragEnter(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefDragDataCToCpp::Wrap(dragData),
|
||||
mask);
|
||||
CefBrowserCToCpp::Wrap(browser), CefDragDataCToCpp::Wrap(dragData), mask);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK drag_handler_on_draggable_regions_changed(
|
||||
struct _cef_drag_handler_t* self, cef_browser_t* browser,
|
||||
size_t regionsCount, cef_draggable_region_t const* regions) {
|
||||
struct _cef_drag_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
size_t regionsCount,
|
||||
cef_draggable_region_t const* regions) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,7 +66,7 @@ void CEF_CALLBACK drag_handler_on_draggable_regions_changed(
|
||||
return;
|
||||
|
||||
// Translate param: regions; type: simple_vec_byref_const
|
||||
std::vector<CefDraggableRegion > regionsList;
|
||||
std::vector<CefDraggableRegion> regionsList;
|
||||
if (regionsCount > 0) {
|
||||
for (size_t i = 0; i < regionsCount; ++i) {
|
||||
CefDraggableRegion regionsVal = regions[i];
|
||||
@ -74,13 +76,11 @@ void CEF_CALLBACK drag_handler_on_draggable_regions_changed(
|
||||
|
||||
// Execute
|
||||
CefDragHandlerCppToC::Get(self)->OnDraggableRegionsChanged(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
regionsList);
|
||||
CefBrowserCToCpp::Wrap(browser), regionsList);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDragHandlerCppToC::CefDragHandlerCppToC() {
|
||||
@ -89,17 +89,23 @@ CefDragHandlerCppToC::CefDragHandlerCppToC() {
|
||||
drag_handler_on_draggable_regions_changed;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefDragHandler> CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler, cef_drag_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_drag_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefDragHandler>
|
||||
CefCppToCRefCounted<CefDragHandlerCppToC, CefDragHandler, cef_drag_handler_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_drag_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler, cef_drag_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler,
|
||||
cef_drag_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler, cef_drag_handler_t>::kWrapperType = WT_DRAG_HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler,
|
||||
cef_drag_handler_t>::kWrapperType =
|
||||
WT_DRAG_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3c820669b7702114ed93006a231a0f01422ed629$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_drag_handler.h"
|
||||
#include "include/capi/cef_drag_handler_capi.h"
|
||||
#include "include/cef_drag_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 CefDragHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefDragHandlerCppToC, CefDragHandler,
|
||||
cef_drag_handler_t> {
|
||||
class CefDragHandlerCppToC : public CefCppToCRefCounted<CefDragHandlerCppToC,
|
||||
CefDragHandler,
|
||||
cef_drag_handler_t> {
|
||||
public:
|
||||
CefDragHandlerCppToC();
|
||||
};
|
||||
|
@ -9,10 +9,11 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9a1b77364fd21f18c0bdbdec1b7abca0f6867323$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -37,7 +38,6 @@ void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() {
|
||||
@ -45,18 +45,26 @@ CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() {
|
||||
end_tracing_callback_on_end_tracing_complete;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefEndTracingCallback> CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback, cef_end_tracing_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_end_tracing_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefEndTracingCallback> CefCppToCRefCounted<
|
||||
CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback,
|
||||
cef_end_tracing_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_end_tracing_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback, cef_end_tracing_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback,
|
||||
cef_end_tracing_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback, cef_end_tracing_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback,
|
||||
cef_end_tracing_callback_t>::kWrapperType =
|
||||
WT_END_TRACING_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a358f21b2b2c5923476110bf59aebd9f35f65184$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_trace.h"
|
||||
#include "include/capi/cef_trace_capi.h"
|
||||
#include "include/cef_trace.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 CefEndTracingCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefEndTracingCallbackCppToC,
|
||||
CefEndTracingCallback, cef_end_tracing_callback_t> {
|
||||
CefEndTracingCallback,
|
||||
cef_end_tracing_callback_t> {
|
||||
public:
|
||||
CefEndTracingCallbackCppToC();
|
||||
};
|
||||
|
@ -9,18 +9,20 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ab0b610cd180d3930cfcea8c97ce960b1c6cfe43$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK file_dialog_callback_cont(
|
||||
struct _cef_file_dialog_callback_t* self, int selected_accept_filter,
|
||||
cef_string_list_t file_paths) {
|
||||
void CEF_CALLBACK
|
||||
file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self,
|
||||
int selected_accept_filter,
|
||||
cef_string_list_t file_paths) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -37,13 +39,12 @@ void CEF_CALLBACK file_dialog_callback_cont(
|
||||
transfer_string_list_contents(file_paths, file_pathsList);
|
||||
|
||||
// Execute
|
||||
CefFileDialogCallbackCppToC::Get(self)->Continue(
|
||||
selected_accept_filter,
|
||||
file_pathsList);
|
||||
CefFileDialogCallbackCppToC::Get(self)->Continue(selected_accept_filter,
|
||||
file_pathsList);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK file_dialog_callback_cancel(
|
||||
struct _cef_file_dialog_callback_t* self) {
|
||||
void CEF_CALLBACK
|
||||
file_dialog_callback_cancel(struct _cef_file_dialog_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,7 +57,6 @@ void CEF_CALLBACK file_dialog_callback_cancel(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFileDialogCallbackCppToC::CefFileDialogCallbackCppToC() {
|
||||
@ -64,18 +64,26 @@ CefFileDialogCallbackCppToC::CefFileDialogCallbackCppToC() {
|
||||
GetStruct()->cancel = file_dialog_callback_cancel;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefFileDialogCallback> CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback, cef_file_dialog_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_file_dialog_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefFileDialogCallback> CefCppToCRefCounted<
|
||||
CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback,
|
||||
cef_file_dialog_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_file_dialog_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback, cef_file_dialog_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback,
|
||||
cef_file_dialog_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback, cef_file_dialog_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback,
|
||||
cef_file_dialog_callback_t>::kWrapperType =
|
||||
WT_FILE_DIALOG_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9fe7fa4988fcebbb7ceee4d283c265fb069d5b7b$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_dialog_handler.h"
|
||||
#include "include/capi/cef_dialog_handler_capi.h"
|
||||
#include "include/cef_dialog_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 CefFileDialogCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefFileDialogCallbackCppToC,
|
||||
CefFileDialogCallback, cef_file_dialog_callback_t> {
|
||||
CefFileDialogCallback,
|
||||
cef_file_dialog_callback_t> {
|
||||
public:
|
||||
CefFileDialogCallbackCppToC();
|
||||
};
|
||||
|
@ -9,19 +9,23 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=4c7bf04684310507e699c18a80c71d0c9a852ffc$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/find_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self,
|
||||
cef_browser_t* browser, int identifier, int count,
|
||||
const cef_rect_t* selectionRect, int activeMatchOrdinal,
|
||||
int finalUpdate) {
|
||||
cef_browser_t* browser,
|
||||
int identifier,
|
||||
int count,
|
||||
const cef_rect_t* selectionRect,
|
||||
int activeMatchOrdinal,
|
||||
int finalUpdate) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -37,38 +41,39 @@ void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: selectionRect; type: simple_byref_const
|
||||
CefRect selectionRectVal = selectionRect?*selectionRect:CefRect();
|
||||
CefRect selectionRectVal = selectionRect ? *selectionRect : CefRect();
|
||||
|
||||
// Execute
|
||||
CefFindHandlerCppToC::Get(self)->OnFindResult(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
identifier,
|
||||
count,
|
||||
selectionRectVal,
|
||||
activeMatchOrdinal,
|
||||
finalUpdate?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), identifier, count, selectionRectVal,
|
||||
activeMatchOrdinal, finalUpdate ? true : false);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFindHandlerCppToC::CefFindHandlerCppToC() {
|
||||
GetStruct()->on_find_result = find_handler_on_find_result;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefFindHandler> CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler, cef_find_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_find_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefFindHandler>
|
||||
CefCppToCRefCounted<CefFindHandlerCppToC, CefFindHandler, cef_find_handler_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_find_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler, cef_find_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler,
|
||||
cef_find_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler, cef_find_handler_t>::kWrapperType = WT_FIND_HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler,
|
||||
cef_find_handler_t>::kWrapperType =
|
||||
WT_FIND_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=e20d44370573b751fd6460540055ae74ce745729$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_find_handler.h"
|
||||
#include "include/capi/cef_find_handler_capi.h"
|
||||
#include "include/cef_find_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 CefFindHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefFindHandlerCppToC, CefFindHandler,
|
||||
cef_find_handler_t> {
|
||||
class CefFindHandlerCppToC : public CefCppToCRefCounted<CefFindHandlerCppToC,
|
||||
CefFindHandler,
|
||||
cef_find_handler_t> {
|
||||
public:
|
||||
CefFindHandlerCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,19 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=d3d4fbf680412ca26d5803ffd269dea1e06ed388$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/focus_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser, int next) {
|
||||
cef_browser_t* browser,
|
||||
int next) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,13 +33,13 @@ void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFocusHandlerCppToC::Get(self)->OnTakeFocus(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
next?true:false);
|
||||
CefFocusHandlerCppToC::Get(self)->OnTakeFocus(CefBrowserCToCpp::Wrap(browser),
|
||||
next ? true : false);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser, cef_focus_source_t source) {
|
||||
cef_browser_t* browser,
|
||||
cef_focus_source_t source) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -50,15 +52,14 @@ int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefFocusHandlerCppToC::Get(self)->OnSetFocus(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
source);
|
||||
CefBrowserCToCpp::Wrap(browser), source);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -70,13 +71,11 @@ void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFocusHandlerCppToC::Get(self)->OnGotFocus(
|
||||
CefBrowserCToCpp::Wrap(browser));
|
||||
CefFocusHandlerCppToC::Get(self)->OnGotFocus(CefBrowserCToCpp::Wrap(browser));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFocusHandlerCppToC::CefFocusHandlerCppToC() {
|
||||
@ -85,17 +84,25 @@ CefFocusHandlerCppToC::CefFocusHandlerCppToC() {
|
||||
GetStruct()->on_got_focus = focus_handler_on_got_focus;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefFocusHandler> CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler, cef_focus_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_focus_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefFocusHandler> CefCppToCRefCounted<
|
||||
CefFocusHandlerCppToC,
|
||||
CefFocusHandler,
|
||||
cef_focus_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_focus_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler, cef_focus_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler,
|
||||
cef_focus_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler, cef_focus_handler_t>::kWrapperType = WT_FOCUS_HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler,
|
||||
cef_focus_handler_t>::kWrapperType =
|
||||
WT_FOCUS_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=5a037b794ef000b8644691e114b295daa78d908d$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_focus_handler.h"
|
||||
#include "include/capi/cef_focus_handler_capi.h"
|
||||
#include "include/cef_focus_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 CefFocusHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefFocusHandlerCppToC, CefFocusHandler,
|
||||
cef_focus_handler_t> {
|
||||
class CefFocusHandlerCppToC : public CefCppToCRefCounted<CefFocusHandlerCppToC,
|
||||
CefFocusHandler,
|
||||
cef_focus_handler_t> {
|
||||
public:
|
||||
CefFocusHandlerCppToC();
|
||||
};
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=de121cd59bc925b4b2adb03d97965fe19a22223f$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/frame_cpptoc.h"
|
||||
@ -17,7 +19,6 @@
|
||||
#include "libcef_dll/ctocpp/domvisitor_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/string_visitor_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -125,7 +126,7 @@ void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self) {
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_get_source(struct _cef_frame_t* self,
|
||||
struct _cef_string_visitor_t* visitor) {
|
||||
struct _cef_string_visitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -137,12 +138,11 @@ void CEF_CALLBACK frame_get_source(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->GetSource(
|
||||
CefStringVisitorCToCpp::Wrap(visitor));
|
||||
CefFrameCppToC::Get(self)->GetSource(CefStringVisitorCToCpp::Wrap(visitor));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self,
|
||||
struct _cef_string_visitor_t* visitor) {
|
||||
struct _cef_string_visitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -154,12 +154,11 @@ void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->GetText(
|
||||
CefStringVisitorCToCpp::Wrap(visitor));
|
||||
CefFrameCppToC::Get(self)->GetText(CefStringVisitorCToCpp::Wrap(visitor));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
|
||||
struct _cef_request_t* request) {
|
||||
struct _cef_request_t* request) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -171,12 +170,11 @@ void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->LoadRequest(
|
||||
CefRequestCppToC::Unwrap(request));
|
||||
CefFrameCppToC::Get(self)->LoadRequest(CefRequestCppToC::Unwrap(request));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
|
||||
const cef_string_t* url) {
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -188,12 +186,12 @@ void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->LoadURL(
|
||||
CefString(url));
|
||||
CefFrameCppToC::Get(self)->LoadURL(CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_string(struct _cef_frame_t* self,
|
||||
const cef_string_t* string_val, const cef_string_t* url) {
|
||||
const cef_string_t* string_val,
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -209,14 +207,13 @@ void CEF_CALLBACK frame_load_string(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->LoadString(
|
||||
CefString(string_val),
|
||||
CefString(url));
|
||||
CefFrameCppToC::Get(self)->LoadString(CefString(string_val), CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
|
||||
const cef_string_t* code, const cef_string_t* script_url,
|
||||
int start_line) {
|
||||
const cef_string_t* code,
|
||||
const cef_string_t* script_url,
|
||||
int start_line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -230,9 +227,7 @@ void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->ExecuteJavaScript(
|
||||
CefString(code),
|
||||
CefString(script_url),
|
||||
start_line);
|
||||
CefString(code), CefString(script_url), start_line);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) {
|
||||
@ -333,8 +328,8 @@ cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) {
|
||||
return CefBrowserCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_v8context_t* CEF_CALLBACK frame_get_v8context(
|
||||
struct _cef_frame_t* self) {
|
||||
struct _cef_v8context_t* CEF_CALLBACK
|
||||
frame_get_v8context(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -349,7 +344,7 @@ struct _cef_v8context_t* CEF_CALLBACK frame_get_v8context(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
|
||||
cef_domvisitor_t* visitor) {
|
||||
cef_domvisitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -361,13 +356,11 @@ void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->VisitDOM(
|
||||
CefDOMVisitorCToCpp::Wrap(visitor));
|
||||
CefFrameCppToC::Get(self)->VisitDOM(CefDOMVisitorCToCpp::Wrap(visitor));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFrameCppToC::CefFrameCppToC() {
|
||||
@ -397,16 +390,22 @@ CefFrameCppToC::CefFrameCppToC() {
|
||||
GetStruct()->visit_dom = frame_visit_dom;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefFrame> CefCppToCRefCounted<CefFrameCppToC, CefFrame,
|
||||
cef_frame_t>::UnwrapDerived(CefWrapperType type, cef_frame_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefFrame>
|
||||
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_frame_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefFrameCppToC, CefFrame,
|
||||
cef_frame_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefFrameCppToC, CefFrame,
|
||||
cef_frame_t>::kWrapperType = WT_FRAME;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::kWrapperType =
|
||||
WT_FRAME;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=30d020dca90e31d15279938d68e567dadb14c725$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
|
||||
@ -18,12 +20,12 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_frame.h"
|
||||
#include "include/capi/cef_frame_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_frame_capi.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_frame.h"
|
||||
#include "include/cef_v8.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,16 +9,17 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a85a5f77deefd5cab463110ab679d49f90bf7ab4$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/geolocation_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK geolocation_callback_cont(
|
||||
struct _cef_geolocation_callback_t* self, int allow) {
|
||||
void CEF_CALLBACK
|
||||
geolocation_callback_cont(struct _cef_geolocation_callback_t* self, int allow) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -26,31 +27,37 @@ void CEF_CALLBACK geolocation_callback_cont(
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefGeolocationCallbackCppToC::Get(self)->Continue(
|
||||
allow?true:false);
|
||||
CefGeolocationCallbackCppToC::Get(self)->Continue(allow ? true : false);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefGeolocationCallbackCppToC::CefGeolocationCallbackCppToC() {
|
||||
GetStruct()->cont = geolocation_callback_cont;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefGeolocationCallback> CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback, cef_geolocation_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_geolocation_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefGeolocationCallback> CefCppToCRefCounted<
|
||||
CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback,
|
||||
cef_geolocation_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_geolocation_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback, cef_geolocation_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback,
|
||||
cef_geolocation_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback, cef_geolocation_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback,
|
||||
cef_geolocation_callback_t>::kWrapperType =
|
||||
WT_GEOLOCATION_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=63af8731a223066d8a4f2cc17366757dca66f7fd$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_geolocation_handler.h"
|
||||
#include "include/capi/cef_geolocation_handler_capi.h"
|
||||
#include "include/cef_geolocation_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 CefGeolocationCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefGeolocationCallbackCppToC,
|
||||
CefGeolocationCallback, cef_geolocation_callback_t> {
|
||||
CefGeolocationCallback,
|
||||
cef_geolocation_callback_t> {
|
||||
public:
|
||||
CefGeolocationCallbackCppToC();
|
||||
};
|
||||
|
@ -9,19 +9,22 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8e37dbdeb9b4552a0c19c34e0ad7855a1c5ef709$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/geolocation_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/geolocation_callback_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK geolocation_handler_on_request_geolocation_permission(
|
||||
struct _cef_geolocation_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* requesting_url, int request_id,
|
||||
struct _cef_geolocation_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* requesting_url,
|
||||
int request_id,
|
||||
cef_geolocation_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -42,19 +45,18 @@ int CEF_CALLBACK geolocation_handler_on_request_geolocation_permission(
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefGeolocationHandlerCppToC::Get(
|
||||
self)->OnRequestGeolocationPermission(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(requesting_url),
|
||||
request_id,
|
||||
CefGeolocationCallbackCToCpp::Wrap(callback));
|
||||
bool _retval =
|
||||
CefGeolocationHandlerCppToC::Get(self)->OnRequestGeolocationPermission(
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(requesting_url),
|
||||
request_id, CefGeolocationCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK geolocation_handler_on_cancel_geolocation_permission(
|
||||
struct _cef_geolocation_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_geolocation_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
int request_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -68,13 +70,11 @@ void CEF_CALLBACK geolocation_handler_on_cancel_geolocation_permission(
|
||||
|
||||
// Execute
|
||||
CefGeolocationHandlerCppToC::Get(self)->OnCancelGeolocationPermission(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
request_id);
|
||||
CefBrowserCToCpp::Wrap(browser), request_id);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefGeolocationHandlerCppToC::CefGeolocationHandlerCppToC() {
|
||||
@ -84,18 +84,26 @@ CefGeolocationHandlerCppToC::CefGeolocationHandlerCppToC() {
|
||||
geolocation_handler_on_cancel_geolocation_permission;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefGeolocationHandler> CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler, cef_geolocation_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_geolocation_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefGeolocationHandler> CefCppToCRefCounted<
|
||||
CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler,
|
||||
cef_geolocation_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_geolocation_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler, cef_geolocation_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler,
|
||||
cef_geolocation_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler, cef_geolocation_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler,
|
||||
cef_geolocation_handler_t>::kWrapperType =
|
||||
WT_GEOLOCATION_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=e209b180959fdbeea0e85e47b72507240117b57d$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_GEOLOCATION_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_geolocation_handler.h"
|
||||
#include "include/capi/cef_geolocation_handler_capi.h"
|
||||
#include "include/cef_geolocation_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 CefGeolocationHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefGeolocationHandlerCppToC,
|
||||
CefGeolocationHandler, cef_geolocation_handler_t> {
|
||||
CefGeolocationHandler,
|
||||
cef_geolocation_handler_t> {
|
||||
public:
|
||||
CefGeolocationHandlerCppToC();
|
||||
};
|
||||
|
@ -9,10 +9,11 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=5609fad7a14bad55ece61758326b8fdb8a20ac2c$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -36,32 +37,38 @@ void CEF_CALLBACK get_geolocation_callback_on_location_update(
|
||||
positionObj.Set(*position, false);
|
||||
|
||||
// Execute
|
||||
CefGetGeolocationCallbackCppToC::Get(self)->OnLocationUpdate(
|
||||
positionObj);
|
||||
CefGetGeolocationCallbackCppToC::Get(self)->OnLocationUpdate(positionObj);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefGetGeolocationCallbackCppToC::CefGetGeolocationCallbackCppToC() {
|
||||
GetStruct()->on_location_update = get_geolocation_callback_on_location_update;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefGetGeolocationCallback> CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_get_geolocation_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefGetGeolocationCallback>
|
||||
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback,
|
||||
cef_get_geolocation_callback_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_get_geolocation_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::DebugObjCt =
|
||||
0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback,
|
||||
cef_get_geolocation_callback_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::kWrapperType =
|
||||
WT_GET_GEOLOCATION_CALLBACK;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback,
|
||||
cef_get_geolocation_callback_t>::kWrapperType =
|
||||
WT_GET_GEOLOCATION_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=4e745a9adbce154512e5d81ce5f481e606a31551$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_GET_GEOLOCATION_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_geolocation.h"
|
||||
#include "include/capi/cef_geolocation_capi.h"
|
||||
#include "include/cef_geolocation.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 CefGetGeolocationCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
|
||||
CefGetGeolocationCallback, cef_get_geolocation_callback_t> {
|
||||
CefGetGeolocationCallback,
|
||||
cef_get_geolocation_callback_t> {
|
||||
public:
|
||||
CefGetGeolocationCallbackCppToC();
|
||||
};
|
||||
|
@ -9,11 +9,12 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c5a593e30b9f8b61aeb4d07f38e471be0cc521c0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/image_cpptoc.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_image_t* cef_image_create() {
|
||||
@ -26,7 +27,6 @@ CEF_EXPORT cef_image_t* cef_image_create() {
|
||||
return CefImageCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -46,7 +46,7 @@ int CEF_CALLBACK image_is_empty(struct _cef_image_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_is_same(struct _cef_image_t* self,
|
||||
struct _cef_image_t* that) {
|
||||
struct _cef_image_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -58,17 +58,21 @@ int CEF_CALLBACK image_is_same(struct _cef_image_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->IsSame(
|
||||
CefImageCppToC::Unwrap(that));
|
||||
bool _retval =
|
||||
CefImageCppToC::Get(self)->IsSame(CefImageCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_add_bitmap(struct _cef_image_t* self, float scale_factor,
|
||||
int pixel_width, int pixel_height, cef_color_type_t color_type,
|
||||
cef_alpha_type_t alpha_type, const void* pixel_data,
|
||||
size_t pixel_data_size) {
|
||||
int CEF_CALLBACK image_add_bitmap(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
int pixel_width,
|
||||
int pixel_height,
|
||||
cef_color_type_t color_type,
|
||||
cef_alpha_type_t alpha_type,
|
||||
const void* pixel_data,
|
||||
size_t pixel_data_size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,20 +85,17 @@ int CEF_CALLBACK image_add_bitmap(struct _cef_image_t* self, float scale_factor,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->AddBitmap(
|
||||
scale_factor,
|
||||
pixel_width,
|
||||
pixel_height,
|
||||
color_type,
|
||||
alpha_type,
|
||||
pixel_data,
|
||||
pixel_data_size);
|
||||
scale_factor, pixel_width, pixel_height, color_type, alpha_type,
|
||||
pixel_data, pixel_data_size);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_add_png(struct _cef_image_t* self, float scale_factor,
|
||||
const void* png_data, size_t png_data_size) {
|
||||
int CEF_CALLBACK image_add_png(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
const void* png_data,
|
||||
size_t png_data_size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -106,17 +107,17 @@ int CEF_CALLBACK image_add_png(struct _cef_image_t* self, float scale_factor,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->AddPNG(
|
||||
scale_factor,
|
||||
png_data,
|
||||
png_data_size);
|
||||
bool _retval =
|
||||
CefImageCppToC::Get(self)->AddPNG(scale_factor, png_data, png_data_size);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self, float scale_factor,
|
||||
const void* jpeg_data, size_t jpeg_data_size) {
|
||||
int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
const void* jpeg_data,
|
||||
size_t jpeg_data_size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -128,10 +129,8 @@ int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self, float scale_factor,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->AddJPEG(
|
||||
scale_factor,
|
||||
jpeg_data,
|
||||
jpeg_data_size);
|
||||
bool _retval = CefImageCppToC::Get(self)->AddJPEG(scale_factor, jpeg_data,
|
||||
jpeg_data_size);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -166,7 +165,7 @@ size_t CEF_CALLBACK image_get_height(struct _cef_image_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_has_representation(struct _cef_image_t* self,
|
||||
float scale_factor) {
|
||||
float scale_factor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -174,15 +173,14 @@ int CEF_CALLBACK image_has_representation(struct _cef_image_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->HasRepresentation(
|
||||
scale_factor);
|
||||
bool _retval = CefImageCppToC::Get(self)->HasRepresentation(scale_factor);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_remove_representation(struct _cef_image_t* self,
|
||||
float scale_factor) {
|
||||
float scale_factor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -190,16 +188,17 @@ int CEF_CALLBACK image_remove_representation(struct _cef_image_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->RemoveRepresentation(
|
||||
scale_factor);
|
||||
bool _retval = CefImageCppToC::Get(self)->RemoveRepresentation(scale_factor);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self,
|
||||
float scale_factor, float* actual_scale_factor, int* pixel_width,
|
||||
int* pixel_height) {
|
||||
float scale_factor,
|
||||
float* actual_scale_factor,
|
||||
int* pixel_width,
|
||||
int* pixel_height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -219,18 +218,15 @@ int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: actual_scale_factor; type: simple_byref
|
||||
float actual_scale_factorVal = actual_scale_factor?*actual_scale_factor:0;
|
||||
float actual_scale_factorVal = actual_scale_factor ? *actual_scale_factor : 0;
|
||||
// Translate param: pixel_width; type: simple_byref
|
||||
int pixel_widthVal = pixel_width?*pixel_width:0;
|
||||
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
||||
// Translate param: pixel_height; type: simple_byref
|
||||
int pixel_heightVal = pixel_height?*pixel_height:0;
|
||||
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefImageCppToC::Get(self)->GetRepresentationInfo(
|
||||
scale_factor,
|
||||
actual_scale_factorVal,
|
||||
pixel_widthVal,
|
||||
pixel_heightVal);
|
||||
scale_factor, actual_scale_factorVal, pixel_widthVal, pixel_heightVal);
|
||||
|
||||
// Restore param: actual_scale_factor; type: simple_byref
|
||||
if (actual_scale_factor)
|
||||
@ -246,9 +242,13 @@ int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_binary_value_t* CEF_CALLBACK image_get_as_bitmap(
|
||||
struct _cef_image_t* self, float scale_factor, cef_color_type_t color_type,
|
||||
cef_alpha_type_t alpha_type, int* pixel_width, int* pixel_height) {
|
||||
struct _cef_binary_value_t* CEF_CALLBACK
|
||||
image_get_as_bitmap(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
cef_color_type_t color_type,
|
||||
cef_alpha_type_t alpha_type,
|
||||
int* pixel_width,
|
||||
int* pixel_height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -264,17 +264,13 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_bitmap(
|
||||
return NULL;
|
||||
|
||||
// Translate param: pixel_width; type: simple_byref
|
||||
int pixel_widthVal = pixel_width?*pixel_width:0;
|
||||
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
||||
// Translate param: pixel_height; type: simple_byref
|
||||
int pixel_heightVal = pixel_height?*pixel_height:0;
|
||||
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsBitmap(
|
||||
scale_factor,
|
||||
color_type,
|
||||
alpha_type,
|
||||
pixel_widthVal,
|
||||
pixel_heightVal);
|
||||
scale_factor, color_type, alpha_type, pixel_widthVal, pixel_heightVal);
|
||||
|
||||
// Restore param: pixel_width; type: simple_byref
|
||||
if (pixel_width)
|
||||
@ -287,9 +283,12 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_bitmap(
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_binary_value_t* CEF_CALLBACK image_get_as_png(
|
||||
struct _cef_image_t* self, float scale_factor, int with_transparency,
|
||||
int* pixel_width, int* pixel_height) {
|
||||
struct _cef_binary_value_t* CEF_CALLBACK
|
||||
image_get_as_png(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
int with_transparency,
|
||||
int* pixel_width,
|
||||
int* pixel_height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -305,15 +304,13 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_png(
|
||||
return NULL;
|
||||
|
||||
// Translate param: pixel_width; type: simple_byref
|
||||
int pixel_widthVal = pixel_width?*pixel_width:0;
|
||||
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
||||
// Translate param: pixel_height; type: simple_byref
|
||||
int pixel_heightVal = pixel_height?*pixel_height:0;
|
||||
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsPNG(
|
||||
scale_factor,
|
||||
with_transparency?true:false,
|
||||
pixel_widthVal,
|
||||
scale_factor, with_transparency ? true : false, pixel_widthVal,
|
||||
pixel_heightVal);
|
||||
|
||||
// Restore param: pixel_width; type: simple_byref
|
||||
@ -327,9 +324,12 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_png(
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_binary_value_t* CEF_CALLBACK image_get_as_jpeg(
|
||||
struct _cef_image_t* self, float scale_factor, int quality,
|
||||
int* pixel_width, int* pixel_height) {
|
||||
struct _cef_binary_value_t* CEF_CALLBACK
|
||||
image_get_as_jpeg(struct _cef_image_t* self,
|
||||
float scale_factor,
|
||||
int quality,
|
||||
int* pixel_width,
|
||||
int* pixel_height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -345,16 +345,13 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_jpeg(
|
||||
return NULL;
|
||||
|
||||
// Translate param: pixel_width; type: simple_byref
|
||||
int pixel_widthVal = pixel_width?*pixel_width:0;
|
||||
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
||||
// Translate param: pixel_height; type: simple_byref
|
||||
int pixel_heightVal = pixel_height?*pixel_height:0;
|
||||
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsJPEG(
|
||||
scale_factor,
|
||||
quality,
|
||||
pixel_widthVal,
|
||||
pixel_heightVal);
|
||||
scale_factor, quality, pixel_widthVal, pixel_heightVal);
|
||||
|
||||
// Restore param: pixel_width; type: simple_byref
|
||||
if (pixel_width)
|
||||
@ -369,7 +366,6 @@ struct _cef_binary_value_t* CEF_CALLBACK image_get_as_jpeg(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefImageCppToC::CefImageCppToC() {
|
||||
@ -388,16 +384,22 @@ CefImageCppToC::CefImageCppToC() {
|
||||
GetStruct()->get_as_jpeg = image_get_as_jpeg;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefImage> CefCppToCRefCounted<CefImageCppToC, CefImage,
|
||||
cef_image_t>::UnwrapDerived(CefWrapperType type, cef_image_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefImage>
|
||||
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_image_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefImageCppToC, CefImage,
|
||||
cef_image_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefImageCppToC, CefImage,
|
||||
cef_image_t>::kWrapperType = WT_IMAGE;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::kWrapperType =
|
||||
WT_IMAGE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3dc84fb386fb22b1b898206bfacb56909524c7b7$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_
|
||||
@ -18,8 +20,8 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_image.h"
|
||||
#include "include/capi/cef_image_capi.h"
|
||||
#include "include/cef_image.h"
|
||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
|
||||
|
||||
// Wrap a C++ class with a C structure.
|
||||
|
@ -9,16 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=05be760ce7d3e0aaba329f7cfe3b83b7d6b94699$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/jsdialog_callback_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK jsdialog_callback_cont(struct _cef_jsdialog_callback_t* self,
|
||||
int success, const cef_string_t* user_input) {
|
||||
int success,
|
||||
const cef_string_t* user_input) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -27,32 +29,38 @@ void CEF_CALLBACK jsdialog_callback_cont(struct _cef_jsdialog_callback_t* self,
|
||||
// Unverified params: user_input
|
||||
|
||||
// Execute
|
||||
CefJSDialogCallbackCppToC::Get(self)->Continue(
|
||||
success?true:false,
|
||||
CefString(user_input));
|
||||
CefJSDialogCallbackCppToC::Get(self)->Continue(success ? true : false,
|
||||
CefString(user_input));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefJSDialogCallbackCppToC::CefJSDialogCallbackCppToC() {
|
||||
GetStruct()->cont = jsdialog_callback_cont;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefJSDialogCallback> CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback, cef_jsdialog_callback_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_jsdialog_callback_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefJSDialogCallback> CefCppToCRefCounted<
|
||||
CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback,
|
||||
cef_jsdialog_callback_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_jsdialog_callback_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback, cef_jsdialog_callback_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback,
|
||||
cef_jsdialog_callback_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback, cef_jsdialog_callback_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback,
|
||||
cef_jsdialog_callback_t>::kWrapperType =
|
||||
WT_JSDIALOG_CALLBACK;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=09aca7f61ce1f0f62e68c1756db36eb5ee6824cd$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_jsdialog_handler.h"
|
||||
#include "include/capi/cef_jsdialog_handler_capi.h"
|
||||
#include "include/cef_jsdialog_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 CefJSDialogCallbackCppToC
|
||||
: public CefCppToCRefCounted<CefJSDialogCallbackCppToC, CefJSDialogCallback,
|
||||
cef_jsdialog_callback_t> {
|
||||
: public CefCppToCRefCounted<CefJSDialogCallbackCppToC,
|
||||
CefJSDialogCallback,
|
||||
cef_jsdialog_callback_t> {
|
||||
public:
|
||||
CefJSDialogCallbackCppToC();
|
||||
};
|
||||
|
@ -9,21 +9,26 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=04255b222eef72aeea67720233b7b0b7b9000365$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/jsdialog_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK jsdialog_handler_on_jsdialog(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* origin_url, cef_jsdialog_type_t dialog_type,
|
||||
const cef_string_t* message_text, const cef_string_t* default_prompt_text,
|
||||
cef_jsdialog_callback_t* callback, int* suppress_message) {
|
||||
int CEF_CALLBACK
|
||||
jsdialog_handler_on_jsdialog(struct _cef_jsdialog_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* origin_url,
|
||||
cef_jsdialog_type_t dialog_type,
|
||||
const cef_string_t* message_text,
|
||||
const cef_string_t* default_prompt_text,
|
||||
cef_jsdialog_callback_t* callback,
|
||||
int* suppress_message) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -44,31 +49,29 @@ int CEF_CALLBACK jsdialog_handler_on_jsdialog(
|
||||
// Unverified params: origin_url, message_text, default_prompt_text
|
||||
|
||||
// Translate param: suppress_message; type: bool_byref
|
||||
bool suppress_messageBool = (
|
||||
suppress_message && *suppress_message)?true:false;
|
||||
bool suppress_messageBool =
|
||||
(suppress_message && *suppress_message) ? true : false;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefJSDialogHandlerCppToC::Get(self)->OnJSDialog(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(origin_url),
|
||||
dialog_type,
|
||||
CefString(message_text),
|
||||
CefString(default_prompt_text),
|
||||
CefJSDialogCallbackCToCpp::Wrap(callback),
|
||||
suppress_messageBool);
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(origin_url), dialog_type,
|
||||
CefString(message_text), CefString(default_prompt_text),
|
||||
CefJSDialogCallbackCToCpp::Wrap(callback), suppress_messageBool);
|
||||
|
||||
// Restore param: suppress_message; type: bool_byref
|
||||
if (suppress_message)
|
||||
*suppress_message = suppress_messageBool?true:false;
|
||||
*suppress_message = suppress_messageBool ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK jsdialog_handler_on_before_unload_dialog(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* message_text, int is_reload,
|
||||
cef_jsdialog_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
jsdialog_handler_on_before_unload_dialog(struct _cef_jsdialog_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* message_text,
|
||||
int is_reload,
|
||||
cef_jsdialog_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -86,17 +89,16 @@ int CEF_CALLBACK jsdialog_handler_on_before_unload_dialog(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefJSDialogHandlerCppToC::Get(self)->OnBeforeUnloadDialog(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(message_text),
|
||||
is_reload?true:false,
|
||||
CefJSDialogCallbackCToCpp::Wrap(callback));
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(message_text),
|
||||
is_reload ? true : false, CefJSDialogCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK jsdialog_handler_on_reset_dialog_state(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser) {
|
||||
void CEF_CALLBACK
|
||||
jsdialog_handler_on_reset_dialog_state(struct _cef_jsdialog_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -112,8 +114,9 @@ void CEF_CALLBACK jsdialog_handler_on_reset_dialog_state(
|
||||
CefBrowserCToCpp::Wrap(browser));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK jsdialog_handler_on_dialog_closed(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser) {
|
||||
void CEF_CALLBACK
|
||||
jsdialog_handler_on_dialog_closed(struct _cef_jsdialog_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,7 +134,6 @@ void CEF_CALLBACK jsdialog_handler_on_dialog_closed(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefJSDialogHandlerCppToC::CefJSDialogHandlerCppToC() {
|
||||
@ -142,18 +144,26 @@ CefJSDialogHandlerCppToC::CefJSDialogHandlerCppToC() {
|
||||
GetStruct()->on_dialog_closed = jsdialog_handler_on_dialog_closed;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefJSDialogHandler> CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler, cef_jsdialog_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_jsdialog_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefJSDialogHandler> CefCppToCRefCounted<
|
||||
CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_jsdialog_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler, cef_jsdialog_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler, cef_jsdialog_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>::kWrapperType =
|
||||
WT_JSDIALOG_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=09f43b6a8321305a1e9a8432dd3c7ac306c6d350$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_jsdialog_handler.h"
|
||||
#include "include/capi/cef_jsdialog_handler_capi.h"
|
||||
#include "include/cef_jsdialog_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 CefJSDialogHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefJSDialogHandlerCppToC, CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t> {
|
||||
: public CefCppToCRefCounted<CefJSDialogHandlerCppToC,
|
||||
CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t> {
|
||||
public:
|
||||
CefJSDialogHandlerCppToC();
|
||||
};
|
||||
|
@ -9,19 +9,22 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ab912d3ba520a44af12ce5d8a1c359c29f850c87$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK keyboard_handler_on_pre_key_event(
|
||||
struct _cef_keyboard_handler_t* self, cef_browser_t* browser,
|
||||
const struct _cef_key_event_t* event, cef_event_handle_t os_event,
|
||||
int* is_keyboard_shortcut) {
|
||||
int CEF_CALLBACK
|
||||
keyboard_handler_on_pre_key_event(struct _cef_keyboard_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const struct _cef_key_event_t* event,
|
||||
cef_event_handle_t os_event,
|
||||
int* is_keyboard_shortcut) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -45,27 +48,27 @@ int CEF_CALLBACK keyboard_handler_on_pre_key_event(
|
||||
if (event)
|
||||
eventObj.Set(*event, false);
|
||||
// Translate param: is_keyboard_shortcut; type: bool_byaddr
|
||||
bool is_keyboard_shortcutBool = (
|
||||
is_keyboard_shortcut && *is_keyboard_shortcut)?true:false;
|
||||
bool is_keyboard_shortcutBool =
|
||||
(is_keyboard_shortcut && *is_keyboard_shortcut) ? true : false;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefKeyboardHandlerCppToC::Get(self)->OnPreKeyEvent(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
eventObj,
|
||||
os_event,
|
||||
CefBrowserCToCpp::Wrap(browser), eventObj, os_event,
|
||||
&is_keyboard_shortcutBool);
|
||||
|
||||
// Restore param: is_keyboard_shortcut; type: bool_byaddr
|
||||
if (is_keyboard_shortcut)
|
||||
*is_keyboard_shortcut = is_keyboard_shortcutBool?true:false;
|
||||
*is_keyboard_shortcut = is_keyboard_shortcutBool ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
struct _cef_keyboard_handler_t* self, cef_browser_t* browser,
|
||||
const struct _cef_key_event_t* event, cef_event_handle_t os_event) {
|
||||
int CEF_CALLBACK
|
||||
keyboard_handler_on_key_event(struct _cef_keyboard_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const struct _cef_key_event_t* event,
|
||||
cef_event_handle_t os_event) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -87,9 +90,7 @@ int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefKeyboardHandlerCppToC::Get(self)->OnKeyEvent(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
eventObj,
|
||||
os_event);
|
||||
CefBrowserCToCpp::Wrap(browser), eventObj, os_event);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -97,7 +98,6 @@ int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefKeyboardHandlerCppToC::CefKeyboardHandlerCppToC() {
|
||||
@ -105,18 +105,26 @@ CefKeyboardHandlerCppToC::CefKeyboardHandlerCppToC() {
|
||||
GetStruct()->on_key_event = keyboard_handler_on_key_event;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefKeyboardHandler> CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler, cef_keyboard_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_keyboard_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefKeyboardHandler> CefCppToCRefCounted<
|
||||
CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_keyboard_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler, cef_keyboard_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler, cef_keyboard_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>::kWrapperType =
|
||||
WT_KEYBOARD_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=7be4bd7c8fed9b68ef7094f15826bdbe7d98db40$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_keyboard_handler.h"
|
||||
#include "include/capi/cef_keyboard_handler_capi.h"
|
||||
#include "include/cef_keyboard_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 CefKeyboardHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefKeyboardHandlerCppToC, CefKeyboardHandler,
|
||||
cef_keyboard_handler_t> {
|
||||
: public CefCppToCRefCounted<CefKeyboardHandlerCppToC,
|
||||
CefKeyboardHandler,
|
||||
cef_keyboard_handler_t> {
|
||||
public:
|
||||
CefKeyboardHandlerCppToC();
|
||||
};
|
||||
|
@ -9,25 +9,31 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a2d97e44c5404e9694b436eb590979759cc84972$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/life_span_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK life_span_handler_on_before_popup(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* target_url,
|
||||
struct _cef_life_span_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
const cef_string_t* target_url,
|
||||
const cef_string_t* target_frame_name,
|
||||
cef_window_open_disposition_t target_disposition, int user_gesture,
|
||||
cef_window_open_disposition_t target_disposition,
|
||||
int user_gesture,
|
||||
const struct _cef_popup_features_t* popupFeatures,
|
||||
cef_window_info_t* windowInfo, cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings, int* no_javascript_access) {
|
||||
cef_window_info_t* windowInfo,
|
||||
cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings,
|
||||
int* no_javascript_access) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,22 +87,15 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
|
||||
if (settings)
|
||||
settingsObj.AttachTo(*settings);
|
||||
// Translate param: no_javascript_access; type: bool_byaddr
|
||||
bool no_javascript_accessBool = (
|
||||
no_javascript_access && *no_javascript_access)?true:false;
|
||||
bool no_javascript_accessBool =
|
||||
(no_javascript_access && *no_javascript_access) ? true : false;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefLifeSpanHandlerCppToC::Get(self)->OnBeforePopup(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefString(target_url),
|
||||
CefString(target_frame_name),
|
||||
target_disposition,
|
||||
user_gesture?true:false,
|
||||
popupFeaturesObj,
|
||||
windowInfoObj,
|
||||
clientPtr,
|
||||
settingsObj,
|
||||
&no_javascript_accessBool);
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefString(target_url), CefString(target_frame_name), target_disposition,
|
||||
user_gesture ? true : false, popupFeaturesObj, windowInfoObj, clientPtr,
|
||||
settingsObj, &no_javascript_accessBool);
|
||||
|
||||
// Restore param: windowInfo; type: struct_byref
|
||||
if (windowInfo)
|
||||
@ -116,14 +115,15 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
|
||||
settingsObj.DetachTo(*settings);
|
||||
// Restore param: no_javascript_access; type: bool_byaddr
|
||||
if (no_javascript_access)
|
||||
*no_javascript_access = no_javascript_accessBool?true:false;
|
||||
*no_javascript_access = no_javascript_accessBool ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK life_span_handler_on_after_created(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
void CEF_CALLBACK
|
||||
life_span_handler_on_after_created(struct _cef_life_span_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +139,9 @@ void CEF_CALLBACK life_span_handler_on_after_created(
|
||||
CefBrowserCToCpp::Wrap(browser));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK life_span_handler_do_close(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
int CEF_CALLBACK
|
||||
life_span_handler_do_close(struct _cef_life_span_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -159,8 +160,9 @@ int CEF_CALLBACK life_span_handler_do_close(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK life_span_handler_on_before_close(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
void CEF_CALLBACK
|
||||
life_span_handler_on_before_close(struct _cef_life_span_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -178,7 +180,6 @@ void CEF_CALLBACK life_span_handler_on_before_close(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefLifeSpanHandlerCppToC::CefLifeSpanHandlerCppToC() {
|
||||
@ -188,18 +189,26 @@ CefLifeSpanHandlerCppToC::CefLifeSpanHandlerCppToC() {
|
||||
GetStruct()->on_before_close = life_span_handler_on_before_close;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefLifeSpanHandler> CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler, cef_life_span_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_life_span_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefLifeSpanHandler> CefCppToCRefCounted<
|
||||
CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_life_span_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler, cef_life_span_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler, cef_life_span_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>::kWrapperType =
|
||||
WT_LIFE_SPAN_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=7e5510914468cb8a93de0e297bf897ff8459340b$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
|
||||
@ -18,17 +20,18 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_life_span_handler.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/capi/cef_life_span_handler_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
#include "include/cef_life_span_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 CefLifeSpanHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefLifeSpanHandlerCppToC, CefLifeSpanHandler,
|
||||
cef_life_span_handler_t> {
|
||||
: public CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
|
||||
CefLifeSpanHandler,
|
||||
cef_life_span_handler_t> {
|
||||
public:
|
||||
CefLifeSpanHandlerCppToC();
|
||||
};
|
||||
|
@ -9,13 +9,14 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=115f89a2489929f54c8cf1565dadbd2b470cf6a4$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/value_cpptoc.h"
|
||||
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_list_value_t* cef_list_value_create() {
|
||||
@ -28,7 +29,6 @@ CEF_EXPORT cef_list_value_t* cef_list_value_create() {
|
||||
return CefListValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
@ -76,7 +76,7 @@ int CEF_CALLBACK list_value_is_read_only(struct _cef_list_value_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_is_same(struct _cef_list_value_t* self,
|
||||
struct _cef_list_value_t* that) {
|
||||
struct _cef_list_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -88,15 +88,15 @@ int CEF_CALLBACK list_value_is_same(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->IsSame(
|
||||
CefListValueCppToC::Unwrap(that));
|
||||
bool _retval =
|
||||
CefListValueCppToC::Get(self)->IsSame(CefListValueCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self,
|
||||
struct _cef_list_value_t* that) {
|
||||
struct _cef_list_value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -108,15 +108,15 @@ int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->IsEqual(
|
||||
CefListValueCppToC::Unwrap(that));
|
||||
bool _retval =
|
||||
CefListValueCppToC::Get(self)->IsEqual(CefListValueCppToC::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_list_value_t* CEF_CALLBACK list_value_copy(
|
||||
struct _cef_list_value_t* self) {
|
||||
struct _cef_list_value_t* CEF_CALLBACK
|
||||
list_value_copy(struct _cef_list_value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,7 +131,7 @@ struct _cef_list_value_t* CEF_CALLBACK list_value_copy(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_size(struct _cef_list_value_t* self,
|
||||
size_t size) {
|
||||
size_t size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +139,7 @@ int CEF_CALLBACK list_value_set_size(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetSize(
|
||||
size);
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetSize(size);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -175,7 +174,7 @@ int CEF_CALLBACK list_value_clear(struct _cef_list_value_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -183,15 +182,14 @@ int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->Remove(
|
||||
index);
|
||||
bool _retval = CefListValueCppToC::Get(self)->Remove(index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_value_type_t CEF_CALLBACK list_value_get_type(
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
cef_value_type_t CEF_CALLBACK
|
||||
list_value_get_type(struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -199,15 +197,14 @@ cef_value_type_t CEF_CALLBACK list_value_get_type(
|
||||
return VTYPE_INVALID;
|
||||
|
||||
// Execute
|
||||
cef_value_type_t _retval = CefListValueCppToC::Get(self)->GetType(
|
||||
index);
|
||||
cef_value_type_t _retval = CefListValueCppToC::Get(self)->GetType(index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -215,15 +212,14 @@ cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefValue> _retval = CefListValueCppToC::Get(self)->GetValue(
|
||||
index);
|
||||
CefRefPtr<CefValue> _retval = CefListValueCppToC::Get(self)->GetValue(index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -231,15 +227,14 @@ int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->GetBool(
|
||||
index);
|
||||
bool _retval = CefListValueCppToC::Get(self)->GetBool(index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -247,15 +242,14 @@ int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
int _retval = CefListValueCppToC::Get(self)->GetInt(
|
||||
index);
|
||||
int _retval = CefListValueCppToC::Get(self)->GetInt(index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -263,15 +257,14 @@ double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
double _retval = CefListValueCppToC::Get(self)->GetDouble(
|
||||
index);
|
||||
double _retval = CefListValueCppToC::Get(self)->GetDouble(index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK list_value_get_string(
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
list_value_get_string(struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -279,15 +272,14 @@ cef_string_userfree_t CEF_CALLBACK list_value_get_string(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefString _retval = CefListValueCppToC::Get(self)->GetString(
|
||||
index);
|
||||
CefString _retval = CefListValueCppToC::Get(self)->GetString(index);
|
||||
|
||||
// Return type: string
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_binary_value_t* CEF_CALLBACK list_value_get_binary(
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
cef_binary_value_t* CEF_CALLBACK
|
||||
list_value_get_binary(struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -295,15 +287,15 @@ cef_binary_value_t* CEF_CALLBACK list_value_get_binary(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefBinaryValue> _retval = CefListValueCppToC::Get(self)->GetBinary(
|
||||
index);
|
||||
CefRefPtr<CefBinaryValue> _retval =
|
||||
CefListValueCppToC::Get(self)->GetBinary(index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_dictionary_value_t* CEF_CALLBACK list_value_get_dictionary(
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
cef_dictionary_value_t* CEF_CALLBACK
|
||||
list_value_get_dictionary(struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -311,16 +303,15 @@ cef_dictionary_value_t* CEF_CALLBACK list_value_get_dictionary(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefDictionaryValue> _retval = CefListValueCppToC::Get(
|
||||
self)->GetDictionary(
|
||||
index);
|
||||
CefRefPtr<CefDictionaryValue> _retval =
|
||||
CefListValueCppToC::Get(self)->GetDictionary(index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDictionaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
struct _cef_list_value_t* CEF_CALLBACK list_value_get_list(
|
||||
struct _cef_list_value_t* self, size_t index) {
|
||||
struct _cef_list_value_t* CEF_CALLBACK
|
||||
list_value_get_list(struct _cef_list_value_t* self, size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -328,15 +319,16 @@ struct _cef_list_value_t* CEF_CALLBACK list_value_get_list(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefListValue> _retval = CefListValueCppToC::Get(self)->GetList(
|
||||
index);
|
||||
CefRefPtr<CefListValue> _retval =
|
||||
CefListValueCppToC::Get(self)->GetList(index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefListValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self,
|
||||
size_t index, cef_value_t* value) {
|
||||
size_t index,
|
||||
cef_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -349,15 +341,14 @@ int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetValue(
|
||||
index,
|
||||
CefValueCppToC::Unwrap(value));
|
||||
index, CefValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
|
||||
size_t index) {
|
||||
size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -365,15 +356,15 @@ int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetNull(
|
||||
index);
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetNull(index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self,
|
||||
size_t index, int value) {
|
||||
size_t index,
|
||||
int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -381,16 +372,16 @@ int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetBool(
|
||||
index,
|
||||
value?true:false);
|
||||
bool _retval =
|
||||
CefListValueCppToC::Get(self)->SetBool(index, value ? true : false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self,
|
||||
size_t index, int value) {
|
||||
size_t index,
|
||||
int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -398,16 +389,15 @@ int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetInt(
|
||||
index,
|
||||
value);
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetInt(index, value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self,
|
||||
size_t index, double value) {
|
||||
size_t index,
|
||||
double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -415,16 +405,15 @@ int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetDouble(
|
||||
index,
|
||||
value);
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetDouble(index, value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self,
|
||||
size_t index, const cef_string_t* value) {
|
||||
size_t index,
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -433,16 +422,16 @@ int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self,
|
||||
// Unverified params: value
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetString(
|
||||
index,
|
||||
CefString(value));
|
||||
bool _retval =
|
||||
CefListValueCppToC::Get(self)->SetString(index, CefString(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self,
|
||||
size_t index, cef_binary_value_t* value) {
|
||||
size_t index,
|
||||
cef_binary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -455,15 +444,15 @@ int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetBinary(
|
||||
index,
|
||||
CefBinaryValueCppToC::Unwrap(value));
|
||||
index, CefBinaryValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self,
|
||||
size_t index, cef_dictionary_value_t* value) {
|
||||
size_t index,
|
||||
cef_dictionary_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -476,15 +465,15 @@ int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetDictionary(
|
||||
index,
|
||||
CefDictionaryValueCppToC::Unwrap(value));
|
||||
index, CefDictionaryValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self,
|
||||
size_t index, struct _cef_list_value_t* value) {
|
||||
size_t index,
|
||||
struct _cef_list_value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -497,8 +486,7 @@ int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefListValueCppToC::Get(self)->SetList(
|
||||
index,
|
||||
CefListValueCppToC::Unwrap(value));
|
||||
index, CefListValueCppToC::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -506,7 +494,6 @@ int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefListValueCppToC::CefListValueCppToC() {
|
||||
@ -540,17 +527,23 @@ CefListValueCppToC::CefListValueCppToC() {
|
||||
GetStruct()->set_list = list_value_set_list;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefListValue> CefCppToCRefCounted<CefListValueCppToC,
|
||||
CefListValue, cef_list_value_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_list_value_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefListValue>
|
||||
CefCppToCRefCounted<CefListValueCppToC, CefListValue, cef_list_value_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_list_value_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefListValueCppToC,
|
||||
CefListValue, cef_list_value_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefListValueCppToC,
|
||||
CefListValue,
|
||||
cef_list_value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefListValueCppToC, CefListValue,
|
||||
cef_list_value_t>::kWrapperType = WT_LIST_VALUE;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefListValueCppToC,
|
||||
CefListValue,
|
||||
cef_list_value_t>::kWrapperType =
|
||||
WT_LIST_VALUE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=0964c097463bec4d9ef7e12fafda123e0535fd1b$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_values.h"
|
||||
#include "include/capi/cef_values_capi.h"
|
||||
#include "include/cef_values.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 CefListValueCppToC
|
||||
: public CefCppToCRefCounted<CefListValueCppToC, CefListValue,
|
||||
cef_list_value_t> {
|
||||
class CefListValueCppToC : public CefCppToCRefCounted<CefListValueCppToC,
|
||||
CefListValue,
|
||||
cef_list_value_t> {
|
||||
public:
|
||||
CefListValueCppToC();
|
||||
};
|
||||
|
@ -9,19 +9,23 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=48f3eb139316785cc31cb70a1af280f2355a228b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/load_handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK load_handler_on_loading_state_change(
|
||||
struct _cef_load_handler_t* self, cef_browser_t* browser, int isLoading,
|
||||
int canGoBack, int canGoForward) {
|
||||
void CEF_CALLBACK
|
||||
load_handler_on_loading_state_change(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
int isLoading,
|
||||
int canGoBack,
|
||||
int canGoForward) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -34,15 +38,15 @@ void CEF_CALLBACK load_handler_on_loading_state_change(
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadingStateChange(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
isLoading?true:false,
|
||||
canGoBack?true:false,
|
||||
canGoForward?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), isLoading ? true : false,
|
||||
canGoBack ? true : false, canGoForward ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_load_start(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame,
|
||||
cef_transition_type_t transition_type) {
|
||||
void CEF_CALLBACK
|
||||
load_handler_on_load_start(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_transition_type_t transition_type) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -58,14 +62,15 @@ void CEF_CALLBACK load_handler_on_load_start(struct _cef_load_handler_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadStart(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
transition_type);
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadStart(CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
transition_type);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame, int httpStatusCode) {
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
int httpStatusCode) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,15 +86,17 @@ void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self,
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadEnd(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
httpStatusCode);
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadEnd(CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
httpStatusCode);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame, cef_errorcode_t errorCode,
|
||||
const cef_string_t* errorText, const cef_string_t* failedUrl) {
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_errorcode_t errorCode,
|
||||
const cef_string_t* errorText,
|
||||
const cef_string_t* failedUrl) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -111,16 +118,12 @@ void CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnLoadError(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
errorCode,
|
||||
CefString(errorText),
|
||||
CefString(failedUrl));
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame), errorCode,
|
||||
CefString(errorText), CefString(failedUrl));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefLoadHandlerCppToC::CefLoadHandlerCppToC() {
|
||||
@ -130,17 +133,23 @@ CefLoadHandlerCppToC::CefLoadHandlerCppToC() {
|
||||
GetStruct()->on_load_error = load_handler_on_load_error;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefLoadHandler> CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler, cef_load_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_load_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefLoadHandler>
|
||||
CefCppToCRefCounted<CefLoadHandlerCppToC, CefLoadHandler, cef_load_handler_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_load_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler, cef_load_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler,
|
||||
cef_load_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler, cef_load_handler_t>::kWrapperType = WT_LOAD_HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler,
|
||||
cef_load_handler_t>::kWrapperType =
|
||||
WT_LOAD_HANDLER;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b3b3b51c5601ee1723a814723adde564a584f6c8$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_load_handler.h"
|
||||
#include "include/capi/cef_load_handler_capi.h"
|
||||
#include "include/cef_load_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 CefLoadHandlerCppToC
|
||||
: public CefCppToCRefCounted<CefLoadHandlerCppToC, CefLoadHandler,
|
||||
cef_load_handler_t> {
|
||||
class CefLoadHandlerCppToC : public CefCppToCRefCounted<CefLoadHandlerCppToC,
|
||||
CefLoadHandler,
|
||||
cef_load_handler_t> {
|
||||
public:
|
||||
CefLoadHandlerCppToC();
|
||||
};
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=335b8e71be56de8f0b5e9788c787bf63a91d1e46$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_CPPTOC_H_
|
||||
@ -18,15 +20,15 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_menu_model.h"
|
||||
#include "include/capi/cef_menu_model_capi.h"
|
||||
#include "include/cef_menu_model.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 CefMenuModelCppToC
|
||||
: public CefCppToCRefCounted<CefMenuModelCppToC, CefMenuModel,
|
||||
cef_menu_model_t> {
|
||||
class CefMenuModelCppToC : public CefCppToCRefCounted<CefMenuModelCppToC,
|
||||
CefMenuModel,
|
||||
cef_menu_model_t> {
|
||||
public:
|
||||
CefMenuModelCppToC();
|
||||
};
|
||||
|
@ -9,18 +9,21 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8df90eb582df20061513fb80264da53b9d97849b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/menu_model_delegate_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/menu_model_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_execute_command(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model,
|
||||
int command_id, cef_event_flags_t event_flags) {
|
||||
void CEF_CALLBACK
|
||||
menu_model_delegate_execute_command(struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model,
|
||||
int command_id,
|
||||
cef_event_flags_t event_flags) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,14 +36,13 @@ void CEF_CALLBACK menu_model_delegate_execute_command(
|
||||
|
||||
// Execute
|
||||
CefMenuModelDelegateCppToC::Get(self)->ExecuteCommand(
|
||||
CefMenuModelCToCpp::Wrap(menu_model),
|
||||
command_id,
|
||||
event_flags);
|
||||
CefMenuModelCToCpp::Wrap(menu_model), command_id, event_flags);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_mouse_outside_menu(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model,
|
||||
const cef_point_t* screen_point) {
|
||||
void CEF_CALLBACK
|
||||
menu_model_delegate_mouse_outside_menu(struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model,
|
||||
const cef_point_t* screen_point) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,16 +58,16 @@ void CEF_CALLBACK menu_model_delegate_mouse_outside_menu(
|
||||
return;
|
||||
|
||||
// Translate param: screen_point; type: simple_byref_const
|
||||
CefPoint screen_pointVal = screen_point?*screen_point:CefPoint();
|
||||
CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
|
||||
|
||||
// Execute
|
||||
CefMenuModelDelegateCppToC::Get(self)->MouseOutsideMenu(
|
||||
CefMenuModelCToCpp::Wrap(menu_model),
|
||||
screen_pointVal);
|
||||
CefMenuModelCToCpp::Wrap(menu_model), screen_pointVal);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_unhandled_open_submenu(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model,
|
||||
struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model,
|
||||
int is_rtl) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -79,12 +81,12 @@ void CEF_CALLBACK menu_model_delegate_unhandled_open_submenu(
|
||||
|
||||
// Execute
|
||||
CefMenuModelDelegateCppToC::Get(self)->UnhandledOpenSubmenu(
|
||||
CefMenuModelCToCpp::Wrap(menu_model),
|
||||
is_rtl?true:false);
|
||||
CefMenuModelCToCpp::Wrap(menu_model), is_rtl ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_unhandled_close_submenu(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model,
|
||||
struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model,
|
||||
int is_rtl) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -98,12 +100,12 @@ void CEF_CALLBACK menu_model_delegate_unhandled_close_submenu(
|
||||
|
||||
// Execute
|
||||
CefMenuModelDelegateCppToC::Get(self)->UnhandledCloseSubmenu(
|
||||
CefMenuModelCToCpp::Wrap(menu_model),
|
||||
is_rtl?true:false);
|
||||
CefMenuModelCToCpp::Wrap(menu_model), is_rtl ? true : false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_menu_will_show(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) {
|
||||
void CEF_CALLBACK
|
||||
menu_model_delegate_menu_will_show(struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -119,8 +121,9 @@ void CEF_CALLBACK menu_model_delegate_menu_will_show(
|
||||
CefMenuModelCToCpp::Wrap(menu_model));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_model_delegate_menu_closed(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) {
|
||||
void CEF_CALLBACK
|
||||
menu_model_delegate_menu_closed(struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -136,9 +139,10 @@ void CEF_CALLBACK menu_model_delegate_menu_closed(
|
||||
CefMenuModelCToCpp::Wrap(menu_model));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK menu_model_delegate_format_label(
|
||||
struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model,
|
||||
cef_string_t* label) {
|
||||
int CEF_CALLBACK
|
||||
menu_model_delegate_format_label(struct _cef_menu_model_delegate_t* self,
|
||||
cef_menu_model_t* menu_model,
|
||||
cef_string_t* label) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -158,8 +162,7 @@ int CEF_CALLBACK menu_model_delegate_format_label(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefMenuModelDelegateCppToC::Get(self)->FormatLabel(
|
||||
CefMenuModelCToCpp::Wrap(menu_model),
|
||||
labelStr);
|
||||
CefMenuModelCToCpp::Wrap(menu_model), labelStr);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -167,7 +170,6 @@ int CEF_CALLBACK menu_model_delegate_format_label(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefMenuModelDelegateCppToC::CefMenuModelDelegateCppToC() {
|
||||
@ -182,18 +184,26 @@ CefMenuModelDelegateCppToC::CefMenuModelDelegateCppToC() {
|
||||
GetStruct()->format_label = menu_model_delegate_format_label;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefMenuModelDelegate> CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate, cef_menu_model_delegate_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_menu_model_delegate_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefMenuModelDelegate> CefCppToCRefCounted<
|
||||
CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate,
|
||||
cef_menu_model_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_menu_model_delegate_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate, cef_menu_model_delegate_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate,
|
||||
cef_menu_model_delegate_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate, cef_menu_model_delegate_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate,
|
||||
cef_menu_model_delegate_t>::kWrapperType =
|
||||
WT_MENU_MODEL_DELEGATE;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f046a87603438be01105085cccbf6bb65838a495$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_DELEGATE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_DELEGATE_CPPTOC_H_
|
||||
@ -18,17 +20,18 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_menu_model_delegate.h"
|
||||
#include "include/capi/cef_menu_model_capi.h"
|
||||
#include "include/capi/cef_menu_model_delegate_capi.h"
|
||||
#include "include/cef_menu_model.h"
|
||||
#include "include/capi/cef_menu_model_capi.h"
|
||||
#include "include/cef_menu_model_delegate.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 CefMenuModelDelegateCppToC
|
||||
: public CefCppToCRefCounted<CefMenuModelDelegateCppToC,
|
||||
CefMenuModelDelegate, cef_menu_model_delegate_t> {
|
||||
CefMenuModelDelegate,
|
||||
cef_menu_model_delegate_t> {
|
||||
public:
|
||||
CefMenuModelDelegateCppToC();
|
||||
};
|
||||
|
@ -9,17 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=621ee97874f724bf57e27cfcfd4731c161d0b353$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/sslstatus_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK navigation_entry_is_valid(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
int CEF_CALLBACK
|
||||
navigation_entry_is_valid(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +34,8 @@ int CEF_CALLBACK navigation_entry_is_valid(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_url(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
navigation_entry_get_url(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -48,8 +49,8 @@ cef_string_userfree_t CEF_CALLBACK navigation_entry_get_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_display_url(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
navigation_entry_get_display_url(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -63,8 +64,8 @@ cef_string_userfree_t CEF_CALLBACK navigation_entry_get_display_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_original_url(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
navigation_entry_get_original_url(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -78,8 +79,8 @@ cef_string_userfree_t CEF_CALLBACK navigation_entry_get_original_url(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_title(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
navigation_entry_get_title(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -93,8 +94,8 @@ cef_string_userfree_t CEF_CALLBACK navigation_entry_get_title(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_transition_type_t CEF_CALLBACK navigation_entry_get_transition_type(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_transition_type_t CEF_CALLBACK
|
||||
navigation_entry_get_transition_type(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -102,15 +103,15 @@ cef_transition_type_t CEF_CALLBACK navigation_entry_get_transition_type(
|
||||
return TT_EXPLICIT;
|
||||
|
||||
// Execute
|
||||
cef_transition_type_t _retval = CefNavigationEntryCppToC::Get(
|
||||
self)->GetTransitionType();
|
||||
cef_transition_type_t _retval =
|
||||
CefNavigationEntryCppToC::Get(self)->GetTransitionType();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK navigation_entry_has_post_data(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
int CEF_CALLBACK
|
||||
navigation_entry_has_post_data(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -124,8 +125,8 @@ int CEF_CALLBACK navigation_entry_has_post_data(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK navigation_entry_get_completion_time(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
cef_time_t CEF_CALLBACK
|
||||
navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +140,8 @@ cef_time_t CEF_CALLBACK navigation_entry_get_completion_time(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK navigation_entry_get_http_status_code(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
int CEF_CALLBACK
|
||||
navigation_entry_get_http_status_code(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -154,8 +155,8 @@ int CEF_CALLBACK navigation_entry_get_http_status_code(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_sslstatus_t* CEF_CALLBACK navigation_entry_get_sslstatus(
|
||||
struct _cef_navigation_entry_t* self) {
|
||||
struct _cef_sslstatus_t* CEF_CALLBACK
|
||||
navigation_entry_get_sslstatus(struct _cef_navigation_entry_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -163,8 +164,8 @@ struct _cef_sslstatus_t* CEF_CALLBACK navigation_entry_get_sslstatus(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefSSLStatus> _retval = CefNavigationEntryCppToC::Get(
|
||||
self)->GetSSLStatus();
|
||||
CefRefPtr<CefSSLStatus> _retval =
|
||||
CefNavigationEntryCppToC::Get(self)->GetSSLStatus();
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefSSLStatusCppToC::Wrap(_retval);
|
||||
@ -172,7 +173,6 @@ struct _cef_sslstatus_t* CEF_CALLBACK navigation_entry_get_sslstatus(
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefNavigationEntryCppToC::CefNavigationEntryCppToC() {
|
||||
@ -188,18 +188,26 @@ CefNavigationEntryCppToC::CefNavigationEntryCppToC() {
|
||||
GetStruct()->get_sslstatus = navigation_entry_get_sslstatus;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefNavigationEntry> CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry, cef_navigation_entry_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_navigation_entry_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefNavigationEntry> CefCppToCRefCounted<
|
||||
CefNavigationEntryCppToC,
|
||||
CefNavigationEntry,
|
||||
cef_navigation_entry_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_navigation_entry_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry, cef_navigation_entry_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry,
|
||||
cef_navigation_entry_t>::DebugObjCt =
|
||||
0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry, cef_navigation_entry_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry,
|
||||
cef_navigation_entry_t>::kWrapperType =
|
||||
WT_NAVIGATION_ENTRY;
|
||||
|
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=d94f81d5783a21213bb748ae7797705fabba46b5$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_CPPTOC_H_
|
||||
@ -18,15 +20,16 @@
|
||||
#error This file can be included DLL-side only
|
||||
#endif
|
||||
|
||||
#include "include/cef_navigation_entry.h"
|
||||
#include "include/capi/cef_navigation_entry_capi.h"
|
||||
#include "include/cef_navigation_entry.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 CefNavigationEntryCppToC
|
||||
: public CefCppToCRefCounted<CefNavigationEntryCppToC, CefNavigationEntry,
|
||||
cef_navigation_entry_t> {
|
||||
: public CefCppToCRefCounted<CefNavigationEntryCppToC,
|
||||
CefNavigationEntry,
|
||||
cef_navigation_entry_t> {
|
||||
public:
|
||||
CefNavigationEntryCppToC();
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user