diff --git a/cef_paths2.gypi b/cef_paths2.gypi index 371c67412..6db04c12c 100644 --- a/cef_paths2.gypi +++ b/cef_paths2.gypi @@ -103,6 +103,8 @@ 'libcef_dll/libcef_dll2.cc', 'libcef_dll/ptr_util.h', 'libcef_dll/resource.h', + 'libcef_dll/shutdown_checker.cc', + 'libcef_dll/shutdown_checker.h', 'libcef_dll/transfer_util.cc', 'libcef_dll/transfer_util.h', 'libcef_dll/wrapper_types.h', @@ -130,6 +132,8 @@ 'libcef_dll/ctocpp/ctocpp_ref_counted.h', 'libcef_dll/ctocpp/ctocpp_scoped.h', 'libcef_dll/ptr_util.h', + 'libcef_dll/shutdown_checker.cc', + 'libcef_dll/shutdown_checker.h', 'libcef_dll/transfer_util.cc', 'libcef_dll/transfer_util.h', 'libcef_dll/wrapper_types.h', diff --git a/include/cef_browser_process_handler.h b/include/cef_browser_process_handler.h index fb770997b..f4fb6620a 100644 --- a/include/cef_browser_process_handler.h +++ b/include/cef_browser_process_handler.h @@ -47,7 +47,7 @@ // Class used to implement browser process callbacks. The methods of this class // will be called on the browser process main thread unless otherwise indicated. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefBrowserProcessHandler : public virtual CefBaseRefCounted { public: /// diff --git a/include/cef_render_process_handler.h b/include/cef_render_process_handler.h index 52709b59d..ad08c2380 100644 --- a/include/cef_render_process_handler.h +++ b/include/cef_render_process_handler.h @@ -52,7 +52,7 @@ // will be called on the render process main thread (TID_RENDERER) unless // otherwise indicated. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefRenderProcessHandler : public virtual CefBaseRefCounted { public: typedef cef_navigation_type_t NavigationType; diff --git a/include/cef_scheme.h b/include/cef_scheme.h index fa83ec47f..da66f4297 100644 --- a/include/cef_scheme.h +++ b/include/cef_scheme.h @@ -158,7 +158,7 @@ class CefSchemeRegistrar : public CefBaseScoped { // Class that creates CefResourceHandler instances for handling scheme requests. // The methods of this class will always be called on the IO thread. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefSchemeHandlerFactory : public virtual CefBaseRefCounted { public: /// diff --git a/include/cef_task.h b/include/cef_task.h index a892d3953..642c69eb6 100644 --- a/include/cef_task.h +++ b/include/cef_task.h @@ -49,7 +49,7 @@ typedef cef_thread_id_t CefThreadId; // the target thread. For this reason be cautious when performing work in the // task object destructor. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefTask : public virtual CefBaseRefCounted { public: /// diff --git a/include/cef_v8.h b/include/cef_v8.h index 2886d35f4..8bbc0288a 100644 --- a/include/cef_v8.h +++ b/include/cef_v8.h @@ -120,7 +120,7 @@ bool CefRegisterExtension(const CefString& extension_name, // A task runner for posting tasks on the associated thread can be retrieved via // the CefV8Context::GetTaskRunner() method. /// -/*--cef(source=library)--*/ +/*--cef(source=library,no_debugct_check)--*/ class CefV8Context : public virtual CefBaseRefCounted { public: /// @@ -224,7 +224,7 @@ typedef std::vector> CefV8ValueList; // Interface that should be implemented to handle V8 function calls. The methods // of this class will be called on the thread associated with the V8 function. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefV8Handler : public virtual CefBaseRefCounted { public: /// @@ -247,7 +247,7 @@ class CefV8Handler : public virtual CefBaseRefCounted { // identifiers are registered by calling CefV8Value::SetValue(). The methods // of this class will be called on the thread associated with the V8 accessor. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefV8Accessor : public virtual CefBaseRefCounted { public: /// @@ -285,7 +285,7 @@ class CefV8Accessor : public virtual CefBaseRefCounted { // handlers (with first argument of type int) are called when object is indexed // by integer. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefV8Interceptor : public virtual CefBaseRefCounted { public: /// @@ -349,7 +349,7 @@ class CefV8Interceptor : public virtual CefBaseRefCounted { // Class representing a V8 exception. The methods of this class may be called on // any render process thread. /// -/*--cef(source=library)--*/ +/*--cef(source=library,no_debugct_check)--*/ class CefV8Exception : public virtual CefBaseRefCounted { public: /// @@ -410,7 +410,7 @@ class CefV8Exception : public virtual CefBaseRefCounted { /// // Callback interface that is passed to CefV8Value::CreateArrayBuffer. /// -/*--cef(source=client)--*/ +/*--cef(source=client,no_debugct_check)--*/ class CefV8ArrayBufferReleaseCallback : public virtual CefBaseRefCounted { public: /// @@ -429,7 +429,7 @@ class CefV8ArrayBufferReleaseCallback : public virtual CefBaseRefCounted { // A task runner for posting tasks on the associated thread can be retrieved via // the CefV8Context::GetTaskRunner() method. /// -/*--cef(source=library)--*/ +/*--cef(source=library,no_debugct_check)--*/ class CefV8Value : public virtual CefBaseRefCounted { public: typedef cef_v8_accesscontrol_t AccessControl; @@ -938,7 +938,7 @@ class CefV8StackTrace : public virtual CefBaseRefCounted { // threads. A task runner for posting tasks on the associated thread can be // retrieved via the CefV8Context::GetTaskRunner() method. /// -/*--cef(source=library)--*/ +/*--cef(source=library,no_debugct_check)--*/ class CefV8StackFrame : public virtual CefBaseRefCounted { public: /// diff --git a/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc b/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc index f4be9fcdd..4fc35422d 100644 --- a/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/accessibility_handler_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=39933d7b184df9c48a64f3aeabd4be6d8365b44a$ +// $hash=5524afc164e5f8baf765fa91e5064105dd34b212$ // #include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h" #include "libcef_dll/ctocpp/value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { void CEF_CALLBACK accessibility_handler_on_accessibility_tree_change( struct _cef_accessibility_handler_t* self, struct _cef_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -40,6 +43,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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -66,6 +71,12 @@ CefAccessibilityHandlerCppToC::CefAccessibilityHandlerCppToC() { accessibility_handler_on_accessibility_location_change; } +// DESTRUCTOR - Do not edit by hand. + +CefAccessibilityHandlerCppToC::~CefAccessibilityHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefAccessibilityHandlerCppToC, diff --git a/libcef_dll/cpptoc/accessibility_handler_cpptoc.h b/libcef_dll/cpptoc/accessibility_handler_cpptoc.h index c520ea612..4967eaebd 100644 --- a/libcef_dll/cpptoc/accessibility_handler_cpptoc.h +++ b/libcef_dll/cpptoc/accessibility_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a7bd53b0f936750abeded7f96d1bd9b08743b210$ +// $hash=9e3dc01d67ab9ee155d338f458363e8a3025d733$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefAccessibilityHandlerCppToC cef_accessibility_handler_t> { public: CefAccessibilityHandlerCppToC(); + virtual ~CefAccessibilityHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/app_cpptoc.cc b/libcef_dll/cpptoc/app_cpptoc.cc index 27a3c9879..96c9fdf29 100644 --- a/libcef_dll/cpptoc/app_cpptoc.cc +++ b/libcef_dll/cpptoc/app_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=717cb62ab007871b500dc42b4ec07ee898ecd9af$ +// $hash=7a1d9167c083721572cedc99f89ace69364abca8$ // #include "libcef_dll/cpptoc/app_cpptoc.h" @@ -125,6 +125,10 @@ CefAppCppToC::CefAppCppToC() { GetStruct()->get_render_process_handler = app_get_render_process_handler; } +// DESTRUCTOR - Do not edit by hand. + +CefAppCppToC::~CefAppCppToC() {} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/app_cpptoc.h b/libcef_dll/cpptoc/app_cpptoc.h index 128d810a0..db4ec3e90 100644 --- a/libcef_dll/cpptoc/app_cpptoc.h +++ b/libcef_dll/cpptoc/app_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3bc80135e0d4ddbfcd992b0f611ce2de9217819f$ +// $hash=157d19ebda820053932102f3c69eff9415d628ad$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefAppCppToC : public CefCppToCRefCounted { public: CefAppCppToC(); + virtual ~CefAppCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/auth_callback_cpptoc.cc b/libcef_dll/cpptoc/auth_callback_cpptoc.cc index 85c22d2cd..4b4bb3861 100644 --- a/libcef_dll/cpptoc/auth_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/auth_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=97fbe821be0b86728980f0694894a66d4bb7afc2$ +// $hash=103cb371ed4b96f94928587d464f1c5b459ca24c$ // #include "libcef_dll/cpptoc/auth_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self, const cef_string_t* username, const cef_string_t* password) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -34,6 +37,8 @@ void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self, } void CEF_CALLBACK auth_callback_cancel(struct _cef_auth_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,12 @@ CefAuthCallbackCppToC::CefAuthCallbackCppToC() { GetStruct()->cancel = auth_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefAuthCallbackCppToC::~CefAuthCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefAuthCallbackCppToC, diff --git a/libcef_dll/cpptoc/auth_callback_cpptoc.h b/libcef_dll/cpptoc/auth_callback_cpptoc.h index f1c929767..2bdddb8da 100644 --- a/libcef_dll/cpptoc/auth_callback_cpptoc.h +++ b/libcef_dll/cpptoc/auth_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f653271e88b2c40b1fcfc331a4dc54f4b77b5921$ +// $hash=0d2e25f73053bccb5dee306ed2f71473b43eb3ab$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefAuthCallbackCppToC : public CefCppToCRefCounted { public: CefAuthCallbackCppToC(); + virtual ~CefAuthCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/before_download_callback_cpptoc.cc b/libcef_dll/cpptoc/before_download_callback_cpptoc.cc index fae2b7559..58d418061 100644 --- a/libcef_dll/cpptoc/before_download_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/before_download_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dc4a3c132fd8fd1c82998a7da135ed672b93b6cc$ +// $hash=65ff24a6eea2a6f55773a4e8117fd56ecb8d5d8a$ // #include "libcef_dll/cpptoc/before_download_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ void CEF_CALLBACK before_download_callback_cont(struct _cef_before_download_callback_t* self, const cef_string_t* download_path, int show_dialog) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,12 @@ CefBeforeDownloadCallbackCppToC::CefBeforeDownloadCallbackCppToC() { GetStruct()->cont = before_download_callback_cont; } +// DESTRUCTOR - Do not edit by hand. + +CefBeforeDownloadCallbackCppToC::~CefBeforeDownloadCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefBeforeDownloadCallbackCppToC(); + virtual ~CefBeforeDownloadCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/binary_value_cpptoc.cc b/libcef_dll/cpptoc/binary_value_cpptoc.cc index 8f443854d..413ae9f35 100644 --- a/libcef_dll/cpptoc/binary_value_cpptoc.cc +++ b/libcef_dll/cpptoc/binary_value_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ed48afaf59f8bb35ad3f437e2b4617d6eb631de5$ +// $hash=1a09058e8a846ec1ecb223d7883d44e6d36600f1$ // #include "libcef_dll/cpptoc/binary_value_cpptoc.h" +#include "libcef_dll/shutdown_checker.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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: data; type: simple_byaddr @@ -37,6 +40,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK binary_value_is_valid(struct _cef_binary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ int CEF_CALLBACK binary_value_is_valid(struct _cef_binary_value_t* self) { } int CEF_CALLBACK binary_value_is_owned(struct _cef_binary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -66,6 +73,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -86,6 +95,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -106,6 +117,8 @@ int CEF_CALLBACK binary_value_is_equal(struct _cef_binary_value_t* self, struct _cef_binary_value_t* CEF_CALLBACK binary_value_copy(struct _cef_binary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -120,6 +133,8 @@ binary_value_copy(struct _cef_binary_value_t* self) { } size_t CEF_CALLBACK binary_value_get_size(struct _cef_binary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -137,6 +152,8 @@ size_t CEF_CALLBACK binary_value_get_data(struct _cef_binary_value_t* self, void* buffer, size_t buffer_size, size_t data_offset) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -169,6 +186,12 @@ CefBinaryValueCppToC::CefBinaryValueCppToC() { GetStruct()->get_data = binary_value_get_data; } +// DESTRUCTOR - Do not edit by hand. + +CefBinaryValueCppToC::~CefBinaryValueCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/binary_value_cpptoc.h b/libcef_dll/cpptoc/binary_value_cpptoc.h index d0063bfa9..2e343856c 100644 --- a/libcef_dll/cpptoc/binary_value_cpptoc.h +++ b/libcef_dll/cpptoc/binary_value_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1573678e3b5bc9179346a871cd944046719b2875$ +// $hash=1a8a2164afef6788e2adf5705ee3a247daa1c09e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefBinaryValueCppToC : public CefCppToCRefCounted { public: CefBinaryValueCppToC(); + virtual ~CefBinaryValueCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/browser_cpptoc.cc b/libcef_dll/cpptoc/browser_cpptoc.cc index 143f77541..eac4287f8 100644 --- a/libcef_dll/cpptoc/browser_cpptoc.cc +++ b/libcef_dll/cpptoc/browser_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3234ba2fa2ca9fcb4e5062ad1e8f048cee0a2043$ +// $hash=d670b45c86f780e4113755c97679cafe089680fb$ // #include "libcef_dll/cpptoc/browser_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/cpptoc/browser_host_cpptoc.h" #include "libcef_dll/cpptoc/frame_cpptoc.h" #include "libcef_dll/cpptoc/process_message_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -25,6 +26,8 @@ namespace { struct _cef_browser_host_t* CEF_CALLBACK browser_get_host(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,8 @@ browser_get_host(struct _cef_browser_t* self) { } int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,8 @@ int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self) { } void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +71,8 @@ void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self) { } int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -78,6 +87,8 @@ int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self) { } void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +100,8 @@ void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self) { } int CEF_CALLBACK browser_is_loading(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -103,6 +116,8 @@ int CEF_CALLBACK browser_is_loading(struct _cef_browser_t* self) { } void CEF_CALLBACK browser_reload(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -114,6 +129,8 @@ void CEF_CALLBACK browser_reload(struct _cef_browser_t* self) { } void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -125,6 +142,8 @@ void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self) { } void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -136,6 +155,8 @@ void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self) { } int CEF_CALLBACK browser_get_identifier(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +172,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -170,6 +193,8 @@ int CEF_CALLBACK browser_is_same(struct _cef_browser_t* self, } int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -184,6 +209,8 @@ int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self) { } int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -199,6 +226,8 @@ int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self) { struct _cef_frame_t* CEF_CALLBACK browser_get_main_frame(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -214,6 +243,8 @@ browser_get_main_frame(struct _cef_browser_t* self) { struct _cef_frame_t* CEF_CALLBACK browser_get_focused_frame(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -229,6 +260,8 @@ browser_get_focused_frame(struct _cef_browser_t* self) { struct _cef_frame_t* CEF_CALLBACK browser_get_frame_byident(struct _cef_browser_t* self, int64 identifier) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +278,8 @@ browser_get_frame_byident(struct _cef_browser_t* self, int64 identifier) { struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -261,6 +296,8 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self, } size_t CEF_CALLBACK browser_get_frame_count(struct _cef_browser_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -277,6 +314,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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -311,6 +350,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -337,6 +378,8 @@ int CEF_CALLBACK browser_send_process_message(struct _cef_browser_t* self, cef_process_id_t target_process, struct _cef_process_message_t* message) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -383,6 +426,12 @@ CefBrowserCppToC::CefBrowserCppToC() { GetStruct()->send_process_message = browser_send_process_message; } +// DESTRUCTOR - Do not edit by hand. + +CefBrowserCppToC::~CefBrowserCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/browser_cpptoc.h b/libcef_dll/cpptoc/browser_cpptoc.h index f1cb897a7..957a0041e 100644 --- a/libcef_dll/cpptoc/browser_cpptoc.h +++ b/libcef_dll/cpptoc/browser_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c01a93eb2a8e099475939d20b060b6ff9faeb591$ +// $hash=6c9c804c068f1bf40184f7564b48a874a1668f3c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefBrowserCppToC : public CefCppToCRefCounted { public: CefBrowserCppToC(); + virtual ~CefBrowserCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/browser_host_cpptoc.cc b/libcef_dll/cpptoc/browser_host_cpptoc.cc index fc2f3762d..13d1b0b56 100644 --- a/libcef_dll/cpptoc/browser_host_cpptoc.cc +++ b/libcef_dll/cpptoc/browser_host_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=24122606bad0381fccb91003b12c14fc24f355de$ +// $hash=40639710b864280e2288d7532309f327c92f2216$ // #include "libcef_dll/cpptoc/browser_host_cpptoc.h" @@ -23,6 +23,7 @@ #include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h" #include "libcef_dll/ctocpp/pdf_print_callback_ctocpp.h" #include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -33,6 +34,8 @@ CEF_EXPORT int cef_browser_host_create_browser( const cef_string_t* url, const struct _cef_browser_settings_t* settings, struct _cef_request_context_t* request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: windowInfo; type: struct_byref_const @@ -69,6 +72,8 @@ CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync( const cef_string_t* url, const struct _cef_browser_settings_t* settings, struct _cef_request_context_t* request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: windowInfo; type: struct_byref_const @@ -105,6 +110,8 @@ namespace { cef_browser_t* CEF_CALLBACK browser_host_get_browser(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -120,6 +127,8 @@ browser_host_get_browser(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self, int force_close) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -132,6 +141,8 @@ void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self, int CEF_CALLBACK browser_host_try_close_browser(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -147,6 +158,8 @@ browser_host_try_close_browser(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self, int focus) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -159,6 +172,8 @@ void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self, cef_window_handle_t CEF_CALLBACK browser_host_get_window_handle(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -175,6 +190,8 @@ browser_host_get_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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -190,6 +207,8 @@ browser_host_get_opener_window_handle(struct _cef_browser_host_t* self) { } int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -205,6 +224,8 @@ int CEF_CALLBACK browser_host_has_view(struct _cef_browser_host_t* self) { struct _cef_client_t* CEF_CALLBACK browser_host_get_client(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -220,6 +241,8 @@ browser_host_get_client(struct _cef_browser_host_t* self) { struct _cef_request_context_t* CEF_CALLBACK browser_host_get_request_context(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -236,6 +259,8 @@ browser_host_get_request_context(struct _cef_browser_host_t* self) { double CEF_CALLBACK browser_host_get_zoom_level(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -251,6 +276,8 @@ browser_host_get_zoom_level(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_set_zoom_level(struct _cef_browser_host_t* self, double zoomLevel) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -269,6 +296,8 @@ browser_host_run_file_dialog(struct _cef_browser_host_t* self, cef_string_list_t accept_filters, int selected_accept_filter, cef_run_file_dialog_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -296,6 +325,8 @@ browser_host_run_file_dialog(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_start_download(struct _cef_browser_host_t* self, const cef_string_t* url) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -317,6 +348,8 @@ browser_host_download_image(struct _cef_browser_host_t* self, uint32 max_image_size, int bypass_cache, cef_download_image_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -339,6 +372,8 @@ browser_host_download_image(struct _cef_browser_host_t* self, } void CEF_CALLBACK browser_host_print(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -354,6 +389,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -385,6 +422,8 @@ void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self, int forward, int matchCase, int findNext) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -403,6 +442,8 @@ void CEF_CALLBACK browser_host_find(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_stop_finding(struct _cef_browser_host_t* self, int clearSelection) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -419,6 +460,8 @@ browser_host_show_dev_tools(struct _cef_browser_host_t* self, struct _cef_client_t* client, const struct _cef_browser_settings_t* settings, const cef_point_t* inspect_element_at) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -446,6 +489,8 @@ browser_host_show_dev_tools(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_close_dev_tools(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -457,6 +502,8 @@ browser_host_close_dev_tools(struct _cef_browser_host_t* self) { } int CEF_CALLBACK browser_host_has_dev_tools(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -474,6 +521,8 @@ void CEF_CALLBACK browser_host_get_navigation_entries(struct _cef_browser_host_t* self, cef_navigation_entry_visitor_t* visitor, int current_only) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -493,6 +542,8 @@ browser_host_get_navigation_entries(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_set_mouse_cursor_change_disabled(struct _cef_browser_host_t* self, int disabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -506,6 +557,8 @@ browser_host_set_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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -522,6 +575,8 @@ browser_host_is_mouse_cursor_change_disabled(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_replace_misspelling(struct _cef_browser_host_t* self, const cef_string_t* word) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -539,6 +594,8 @@ browser_host_replace_misspelling(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self, const cef_string_t* word) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -555,6 +612,8 @@ browser_host_add_word_to_dictionary(struct _cef_browser_host_t* self, int CEF_CALLBACK browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -569,6 +628,8 @@ browser_host_is_window_rendering_disabled(struct _cef_browser_host_t* self) { } void CEF_CALLBACK browser_host_was_resized(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -581,6 +642,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -593,6 +656,8 @@ void CEF_CALLBACK browser_host_was_hidden(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -605,6 +670,8 @@ browser_host_notify_screen_info_changed(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self, cef_paint_element_type_t type) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -617,6 +684,8 @@ void CEF_CALLBACK browser_host_invalidate(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_send_external_begin_frame(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -630,6 +699,8 @@ browser_host_send_external_begin_frame(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_send_key_event(struct _cef_browser_host_t* self, const struct _cef_key_event_t* event) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -655,6 +726,8 @@ browser_host_send_mouse_click_event(struct _cef_browser_host_t* self, cef_mouse_button_type_t type, int mouseUp, int clickCount) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -679,6 +752,8 @@ void CEF_CALLBACK browser_host_send_mouse_move_event(struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event, int mouseLeave) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -704,6 +779,8 @@ browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event, int deltaX, int deltaY) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -726,6 +803,8 @@ browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_send_focus_event(struct _cef_browser_host_t* self, int setFocus) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -738,6 +817,8 @@ browser_host_send_focus_event(struct _cef_browser_host_t* self, int setFocus) { void CEF_CALLBACK browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -750,6 +831,8 @@ browser_host_send_capture_lost_event(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -762,6 +845,8 @@ browser_host_notify_move_or_resize_started(struct _cef_browser_host_t* self) { int CEF_CALLBACK browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -778,6 +863,8 @@ browser_host_get_windowless_frame_rate(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_set_windowless_frame_rate(struct _cef_browser_host_t* self, int frame_rate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -795,6 +882,8 @@ browser_host_ime_set_composition(struct _cef_browser_host_t* self, cef_composition_underline_t const* underlines, const cef_range_t* replacement_range, const cef_range_t* selection_range) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -835,6 +924,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -858,6 +949,8 @@ browser_host_ime_commit_text(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self, int keep_selection) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -871,6 +964,8 @@ browser_host_ime_finish_composing_text(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_ime_cancel_composition(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -886,6 +981,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -914,6 +1011,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -935,6 +1034,8 @@ browser_host_drag_target_drag_over(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -948,6 +1049,8 @@ browser_host_drag_target_drag_leave(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_drag_target_drop(struct _cef_browser_host_t* self, const struct _cef_mouse_event_t* event) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -972,6 +1075,8 @@ browser_host_drag_source_ended_at(struct _cef_browser_host_t* self, int x, int y, cef_drag_operations_mask_t op) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -984,6 +1089,8 @@ browser_host_drag_source_ended_at(struct _cef_browser_host_t* self, void CEF_CALLBACK browser_host_drag_source_system_drag_ended(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -996,6 +1103,8 @@ browser_host_drag_source_system_drag_ended(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1013,6 +1122,8 @@ browser_host_get_visible_navigation_entry(struct _cef_browser_host_t* self) { void CEF_CALLBACK browser_host_set_accessibility_state(struct _cef_browser_host_t* self, cef_state_t accessibility_state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1028,6 +1139,8 @@ browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self, int enabled, const cef_size_t* min_size, const cef_size_t* max_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1054,6 +1167,8 @@ browser_host_set_auto_resize_enabled(struct _cef_browser_host_t* self, struct _cef_extension_t* CEF_CALLBACK browser_host_get_extension(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1070,6 +1185,8 @@ browser_host_get_extension(struct _cef_browser_host_t* self) { int CEF_CALLBACK browser_host_is_background_host(struct _cef_browser_host_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1157,6 +1274,12 @@ CefBrowserHostCppToC::CefBrowserHostCppToC() { GetStruct()->is_background_host = browser_host_is_background_host; } +// DESTRUCTOR - Do not edit by hand. + +CefBrowserHostCppToC::~CefBrowserHostCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/browser_host_cpptoc.h b/libcef_dll/cpptoc/browser_host_cpptoc.h index c9b6c6302..bd7cac5ce 100644 --- a/libcef_dll/cpptoc/browser_host_cpptoc.h +++ b/libcef_dll/cpptoc/browser_host_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=df7d4e0f16542d5ffc5589ce39e92abef23c1fda$ +// $hash=2928fe609c5ae619c6b6db81a62688900b440f20$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_ @@ -33,6 +33,7 @@ class CefBrowserHostCppToC : public CefCppToCRefCounted { public: CefBrowserHostCppToC(); + virtual ~CefBrowserHostCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/browser_process_handler_cpptoc.cc b/libcef_dll/cpptoc/browser_process_handler_cpptoc.cc index 523735134..394deaabc 100644 --- a/libcef_dll/cpptoc/browser_process_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/browser_process_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d74f2b562f5b8276bef67003cdc641bd6b0dc5b3$ +// $hash=90d9d5420cb532a187a78fba2a29dc9e2933b114$ // #include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h" @@ -116,6 +116,10 @@ CefBrowserProcessHandlerCppToC::CefBrowserProcessHandlerCppToC() { browser_process_handler_on_schedule_message_pump_work; } +// DESTRUCTOR - Do not edit by hand. + +CefBrowserProcessHandlerCppToC::~CefBrowserProcessHandlerCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefBrowserProcessHandlerCppToC, diff --git a/libcef_dll/cpptoc/browser_process_handler_cpptoc.h b/libcef_dll/cpptoc/browser_process_handler_cpptoc.h index 703b86deb..ddefd6a25 100644 --- a/libcef_dll/cpptoc/browser_process_handler_cpptoc.h +++ b/libcef_dll/cpptoc/browser_process_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bf4d037daf01402a27da95a1804ac7ee659178ef$ +// $hash=379bec786c84a6b1ea1060a10a9a277369dc35ea$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefBrowserProcessHandlerCppToC cef_browser_process_handler_t> { public: CefBrowserProcessHandlerCppToC(); + virtual ~CefBrowserProcessHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/callback_cpptoc.cc b/libcef_dll/cpptoc/callback_cpptoc.cc index c29d8f67d..b196de800 100644 --- a/libcef_dll/cpptoc/callback_cpptoc.cc +++ b/libcef_dll/cpptoc/callback_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=334f209cf51e0659c0b0ab9196f7a404f01461e5$ +// $hash=6703175d02d6a1fbbbe931ebc000081e037fb507$ // #include "libcef_dll/cpptoc/callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { // MEMBER FUNCTIONS - Body may be edited by hand. void CEF_CALLBACK callback_cont(struct _cef_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -30,6 +33,8 @@ void CEF_CALLBACK callback_cont(struct _cef_callback_t* self) { } void CEF_CALLBACK callback_cancel(struct _cef_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +54,12 @@ CefCallbackCppToC::CefCallbackCppToC() { GetStruct()->cancel = callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefCallbackCppToC::~CefCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/callback_cpptoc.h b/libcef_dll/cpptoc/callback_cpptoc.h index 960dd0f3d..0d4d1b9d8 100644 --- a/libcef_dll/cpptoc/callback_cpptoc.h +++ b/libcef_dll/cpptoc/callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=223d6219bab467db783dd58463a34444dd513ae2$ +// $hash=c48abc409ae9bae3a8d47647db107320d543b528$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefCallbackCppToC : public CefCppToCRefCounted { public: CefCallbackCppToC(); + virtual ~CefCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/client_cpptoc.cc b/libcef_dll/cpptoc/client_cpptoc.cc index d466a90b1..8fd256e82 100644 --- a/libcef_dll/cpptoc/client_cpptoc.cc +++ b/libcef_dll/cpptoc/client_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9a46adab7d328c9d33c759cc02f28d15fb23e2c2$ +// $hash=ddbd026586c4d4cac686b8e046891d1d4363549b$ // #include "libcef_dll/cpptoc/client_cpptoc.h" @@ -290,6 +290,10 @@ CefClientCppToC::CefClientCppToC() { GetStruct()->on_process_message_received = client_on_process_message_received; } +// DESTRUCTOR - Do not edit by hand. + +CefClientCppToC::~CefClientCppToC() {} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/client_cpptoc.h b/libcef_dll/cpptoc/client_cpptoc.h index 6a026355c..32422ab95 100644 --- a/libcef_dll/cpptoc/client_cpptoc.h +++ b/libcef_dll/cpptoc/client_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9ac6fdead48b09acbc98b6f6fd3bbb8e194afb96$ +// $hash=5d4c102c7afa917066d0a76cb41f758e86571b71$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefClientCppToC : public CefCppToCRefCounted { public: CefClientCppToC(); + virtual ~CefClientCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/command_line_cpptoc.cc b/libcef_dll/cpptoc/command_line_cpptoc.cc index e43f317db..334a2130a 100644 --- a/libcef_dll/cpptoc/command_line_cpptoc.cc +++ b/libcef_dll/cpptoc/command_line_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=97b50ed12b43f9807b67f716089da2477b58310a$ +// $hash=745c869d4a8bb07633e5aff8a313a642503bd84f$ // #include "libcef_dll/cpptoc/command_line_cpptoc.h" @@ -413,6 +413,10 @@ CefCommandLineCppToC::CefCommandLineCppToC() { GetStruct()->prepend_wrapper = command_line_prepend_wrapper; } +// DESTRUCTOR - Do not edit by hand. + +CefCommandLineCppToC::~CefCommandLineCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/command_line_cpptoc.h b/libcef_dll/cpptoc/command_line_cpptoc.h index 1021dc30f..77ef5c5f0 100644 --- a/libcef_dll/cpptoc/command_line_cpptoc.h +++ b/libcef_dll/cpptoc/command_line_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=562f3031673d13d45e465c300a1a8237197cccb0$ +// $hash=0023e5e8ad31eb9b11590cc7d8b6d7da45db245c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefCommandLineCppToC : public CefCppToCRefCounted { public: CefCommandLineCppToC(); + virtual ~CefCommandLineCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/completion_callback_cpptoc.cc b/libcef_dll/cpptoc/completion_callback_cpptoc.cc index e8e5e2c75..acd5ac447 100644 --- a/libcef_dll/cpptoc/completion_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/completion_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=db9319896cf61ca39a127c00f4d6b0ee801d7938$ +// $hash=e483812d8e14d27960b8b3ab2d4d8e9968c0bc5b$ // #include "libcef_dll/cpptoc/completion_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { void CEF_CALLBACK completion_callback_on_complete(struct _cef_completion_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,12 @@ CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() { GetStruct()->on_complete = completion_callback_on_complete; } +// DESTRUCTOR - Do not edit by hand. + +CefCompletionCallbackCppToC::~CefCompletionCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefCompletionCallbackCppToC, diff --git a/libcef_dll/cpptoc/completion_callback_cpptoc.h b/libcef_dll/cpptoc/completion_callback_cpptoc.h index 19cc1afea..172169057 100644 --- a/libcef_dll/cpptoc/completion_callback_cpptoc.h +++ b/libcef_dll/cpptoc/completion_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=268e0ee06157955b28718ffa2e77eb71cf7ef9da$ +// $hash=cbc3105e5384f038d4dd174438e0b054437c5114$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefCompletionCallbackCppToC cef_completion_callback_t> { public: CefCompletionCallbackCppToC(); + virtual ~CefCompletionCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/context_menu_handler_cpptoc.cc b/libcef_dll/cpptoc/context_menu_handler_cpptoc.cc index 348b9e9b3..0c29b4fb3 100644 --- a/libcef_dll/cpptoc/context_menu_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/context_menu_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=fd97694fbfe9825b3d62200ae27fa0c4d1925791$ +// $hash=e37ed0bb1da97f687f27b923ef1c3f9f3a5d2e21$ // #include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h" @@ -18,6 +18,7 @@ #include "libcef_dll/ctocpp/frame_ctocpp.h" #include "libcef_dll/ctocpp/menu_model_ctocpp.h" #include "libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -29,6 +30,8 @@ void CEF_CALLBACK context_menu_handler_on_before_context_menu( struct _cef_frame_t* frame, struct _cef_context_menu_params_t* params, struct _cef_menu_model_t* model) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -65,6 +68,8 @@ int CEF_CALLBACK context_menu_handler_run_context_menu( struct _cef_context_menu_params_t* params, struct _cef_menu_model_t* model, cef_run_context_menu_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -108,6 +113,8 @@ int CEF_CALLBACK context_menu_handler_on_context_menu_command( struct _cef_context_menu_params_t* params, int command_id, cef_event_flags_t event_flags) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -139,6 +146,8 @@ void CEF_CALLBACK context_menu_handler_on_context_menu_dismissed( struct _cef_context_menu_handler_t* self, cef_browser_t* browser, struct _cef_frame_t* frame) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -172,6 +181,12 @@ CefContextMenuHandlerCppToC::CefContextMenuHandlerCppToC() { context_menu_handler_on_context_menu_dismissed; } +// DESTRUCTOR - Do not edit by hand. + +CefContextMenuHandlerCppToC::~CefContextMenuHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefContextMenuHandlerCppToC, diff --git a/libcef_dll/cpptoc/context_menu_handler_cpptoc.h b/libcef_dll/cpptoc/context_menu_handler_cpptoc.h index e089d2855..b931197af 100644 --- a/libcef_dll/cpptoc/context_menu_handler_cpptoc.h +++ b/libcef_dll/cpptoc/context_menu_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2a398bf6e1a3ad03fae156e3ce4a06f752062c9d$ +// $hash=bd182d62d1138afebe9555f38206758c9c642ef3$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefContextMenuHandlerCppToC cef_context_menu_handler_t> { public: CefContextMenuHandlerCppToC(); + virtual ~CefContextMenuHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/context_menu_params_cpptoc.cc b/libcef_dll/cpptoc/context_menu_params_cpptoc.cc index 51283db02..f83845213 100644 --- a/libcef_dll/cpptoc/context_menu_params_cpptoc.cc +++ b/libcef_dll/cpptoc/context_menu_params_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=428dea2f985aca5c8be568c2d5b58d5dd51ee208$ +// $hash=b87f239858f915302b4922cb145021520e7ec6bc$ // #include "libcef_dll/cpptoc/context_menu_params_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -21,6 +22,8 @@ namespace { int CEF_CALLBACK context_menu_params_get_xcoord(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ context_menu_params_get_xcoord(struct _cef_context_menu_params_t* self) { int CEF_CALLBACK context_menu_params_get_ycoord(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ context_menu_params_get_ycoord(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +74,8 @@ context_menu_params_get_type_flags(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +91,8 @@ context_menu_params_get_link_url(struct _cef_context_menu_params_t* self) { cef_string_userfree_t CEF_CALLBACK context_menu_params_get_unfiltered_link_url( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -98,6 +109,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_unfiltered_link_url( cef_string_userfree_t CEF_CALLBACK context_menu_params_get_source_url(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -113,6 +126,8 @@ context_menu_params_get_source_url(struct _cef_context_menu_params_t* self) { int CEF_CALLBACK context_menu_params_has_image_contents( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -128,6 +143,8 @@ int CEF_CALLBACK context_menu_params_has_image_contents( cef_string_userfree_t CEF_CALLBACK context_menu_params_get_title_text(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -143,6 +160,8 @@ context_menu_params_get_title_text(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -158,6 +177,8 @@ context_menu_params_get_page_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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -173,6 +194,8 @@ context_menu_params_get_frame_url(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -188,6 +211,8 @@ context_menu_params_get_frame_charset(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -205,6 +230,8 @@ context_menu_params_get_media_type(struct _cef_context_menu_params_t* self) { cef_context_menu_media_state_flags_t CEF_CALLBACK context_menu_params_get_media_state_flags( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -221,6 +248,8 @@ context_menu_params_get_media_state_flags( cef_string_userfree_t CEF_CALLBACK context_menu_params_get_selection_text( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -236,6 +265,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_selection_text( cef_string_userfree_t CEF_CALLBACK context_menu_params_get_misspelled_word( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -253,6 +284,8 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_misspelled_word( int CEF_CALLBACK context_menu_params_get_dictionary_suggestions( struct _cef_context_menu_params_t* self, cef_string_list_t suggestions) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -282,6 +315,8 @@ int CEF_CALLBACK context_menu_params_get_dictionary_suggestions( int CEF_CALLBACK context_menu_params_is_editable(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -297,6 +332,8 @@ context_menu_params_is_editable(struct _cef_context_menu_params_t* self) { int CEF_CALLBACK context_menu_params_is_spell_check_enabled( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -313,6 +350,8 @@ int CEF_CALLBACK context_menu_params_is_spell_check_enabled( cef_context_menu_edit_state_flags_t CEF_CALLBACK context_menu_params_get_edit_state_flags( struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -329,6 +368,8 @@ context_menu_params_get_edit_state_flags( int CEF_CALLBACK context_menu_params_is_custom_menu(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -344,6 +385,8 @@ context_menu_params_is_custom_menu(struct _cef_context_menu_params_t* self) { int CEF_CALLBACK context_menu_params_is_pepper_menu(struct _cef_context_menu_params_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -389,6 +432,12 @@ CefContextMenuParamsCppToC::CefContextMenuParamsCppToC() { GetStruct()->is_pepper_menu = context_menu_params_is_pepper_menu; } +// DESTRUCTOR - Do not edit by hand. + +CefContextMenuParamsCppToC::~CefContextMenuParamsCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefContextMenuParamsCppToC, diff --git a/libcef_dll/cpptoc/context_menu_params_cpptoc.h b/libcef_dll/cpptoc/context_menu_params_cpptoc.h index a0d10abd3..f667ef421 100644 --- a/libcef_dll/cpptoc/context_menu_params_cpptoc.h +++ b/libcef_dll/cpptoc/context_menu_params_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b44164cc5471bfa19045cc8fb47f1cd402d10f9f$ +// $hash=d8b0ff4ef1493f3e9bb536ea3c88b568a0dbf1ac$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefContextMenuParamsCppToC cef_context_menu_params_t> { public: CefContextMenuParamsCppToC(); + virtual ~CefContextMenuParamsCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/cookie_manager_cpptoc.cc b/libcef_dll/cpptoc/cookie_manager_cpptoc.cc index 77a6f0612..e2eb401c1 100644 --- a/libcef_dll/cpptoc/cookie_manager_cpptoc.cc +++ b/libcef_dll/cpptoc/cookie_manager_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9928411a0fa0c4b8423e7bec6d42c5e6c291efb6$ +// $hash=208b31bc64dd9d47ac6272304bce2dab1686f071$ // #include "libcef_dll/cpptoc/cookie_manager_cpptoc.h" @@ -246,6 +246,10 @@ CefCookieManagerCppToC::CefCookieManagerCppToC() { GetStruct()->flush_store = cookie_manager_flush_store; } +// DESTRUCTOR - Do not edit by hand. + +CefCookieManagerCppToC::~CefCookieManagerCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefCookieManagerCppToC, diff --git a/libcef_dll/cpptoc/cookie_manager_cpptoc.h b/libcef_dll/cpptoc/cookie_manager_cpptoc.h index f02215752..aea4a053b 100644 --- a/libcef_dll/cpptoc/cookie_manager_cpptoc.h +++ b/libcef_dll/cpptoc/cookie_manager_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7d38f1590643afacc25127d79938ef0bbcba6317$ +// $hash=5504193da129ccc183f585b0ae640cd4e32ce733$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefCookieManagerCppToC cef_cookie_manager_t> { public: CefCookieManagerCppToC(); + virtual ~CefCookieManagerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/cookie_visitor_cpptoc.cc b/libcef_dll/cpptoc/cookie_visitor_cpptoc.cc index 5dcef98fb..2c5274777 100644 --- a/libcef_dll/cpptoc/cookie_visitor_cpptoc.cc +++ b/libcef_dll/cpptoc/cookie_visitor_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ed863426c415b3afc459808cca150e7c4b60f29b$ +// $hash=393d7d0a8816b40c26ee5fd8fb4d50664d606131$ // #include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self, int count, int total, int* deleteCookie) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +67,12 @@ CefCookieVisitorCppToC::CefCookieVisitorCppToC() { GetStruct()->visit = cookie_visitor_visit; } +// DESTRUCTOR - Do not edit by hand. + +CefCookieVisitorCppToC::~CefCookieVisitorCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefCookieVisitorCppToC, diff --git a/libcef_dll/cpptoc/cookie_visitor_cpptoc.h b/libcef_dll/cpptoc/cookie_visitor_cpptoc.h index bc6772388..c12484060 100644 --- a/libcef_dll/cpptoc/cookie_visitor_cpptoc.h +++ b/libcef_dll/cpptoc/cookie_visitor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=03763939a0ae7a4bed1368b21f76b33e6380640b$ +// $hash=ca18debaaeb991a553ea497359b6c3a07ce504a3$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefCookieVisitorCppToC cef_cookie_visitor_t> { public: CefCookieVisitorCppToC(); + virtual ~CefCookieVisitorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.cc b/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.cc index ebed30ea3..1a4c29c21 100644 --- a/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1064107d05675f032c5b64fb376f301af01e03c8$ +// $hash=0c57a2898a260d61342066e6e923d2ae60007680$ // #include "libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK delete_cookies_callback_on_complete(struct _cef_delete_cookies_callback_t* self, int num_deleted) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,12 @@ CefDeleteCookiesCallbackCppToC::CefDeleteCookiesCallbackCppToC() { GetStruct()->on_complete = delete_cookies_callback_on_complete; } +// DESTRUCTOR - Do not edit by hand. + +CefDeleteCookiesCallbackCppToC::~CefDeleteCookiesCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDeleteCookiesCallbackCppToC, diff --git a/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h b/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h index f79dee277..a6777929d 100644 --- a/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h +++ b/libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=eb833faeb559cbe9df0e45ba6893c9697e8c16df$ +// $hash=fab2c4ba9d7170490d22b785b7f6f125c79e7a3b$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDeleteCookiesCallbackCppToC cef_delete_cookies_callback_t> { public: CefDeleteCookiesCallbackCppToC(); + virtual ~CefDeleteCookiesCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/dialog_handler_cpptoc.cc b/libcef_dll/cpptoc/dialog_handler_cpptoc.cc index 7630da6a3..1c5b805a2 100644 --- a/libcef_dll/cpptoc/dialog_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/dialog_handler_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3b87898a5d6b6e4c7ee74b63280a1599f8d1b16b$ +// $hash=c9420b059e61e810cde99f46f1f162450c5e83c5$ // #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/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -30,6 +31,8 @@ dialog_handler_on_file_dialog(struct _cef_dialog_handler_t* self, cef_string_list_t accept_filters, int selected_accept_filter, cef_file_dialog_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +74,12 @@ CefDialogHandlerCppToC::CefDialogHandlerCppToC() { GetStruct()->on_file_dialog = dialog_handler_on_file_dialog; } +// DESTRUCTOR - Do not edit by hand. + +CefDialogHandlerCppToC::~CefDialogHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDialogHandlerCppToC, diff --git a/libcef_dll/cpptoc/dialog_handler_cpptoc.h b/libcef_dll/cpptoc/dialog_handler_cpptoc.h index e7450613c..8f6480d16 100644 --- a/libcef_dll/cpptoc/dialog_handler_cpptoc.h +++ b/libcef_dll/cpptoc/dialog_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=80b4a3a136c90bb0cecb745af603b60cb16ebb2d$ +// $hash=149ef0ad3cd29c210c3ddfa923d546b3b1663be0$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDialogHandlerCppToC cef_dialog_handler_t> { public: CefDialogHandlerCppToC(); + virtual ~CefDialogHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/dictionary_value_cpptoc.cc b/libcef_dll/cpptoc/dictionary_value_cpptoc.cc index f7c3c7a93..5e8528248 100644 --- a/libcef_dll/cpptoc/dictionary_value_cpptoc.cc +++ b/libcef_dll/cpptoc/dictionary_value_cpptoc.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1fb303e08bb1bae37cd3e15947815d0f0020f663$ +// $hash=5d4ac15bce882a74bb53fb52c0203475d596a2f7$ // #include "libcef_dll/cpptoc/dictionary_value_cpptoc.h" #include "libcef_dll/cpptoc/binary_value_cpptoc.h" #include "libcef_dll/cpptoc/list_value_cpptoc.h" #include "libcef_dll/cpptoc/value_cpptoc.h" +#include "libcef_dll/shutdown_checker.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() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -36,6 +39,8 @@ namespace { int CEF_CALLBACK dictionary_value_is_valid(struct _cef_dictionary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ dictionary_value_is_valid(struct _cef_dictionary_value_t* self) { int CEF_CALLBACK dictionary_value_is_owned(struct _cef_dictionary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -66,6 +73,8 @@ dictionary_value_is_owned(struct _cef_dictionary_value_t* self) { int CEF_CALLBACK dictionary_value_is_read_only(struct _cef_dictionary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +91,8 @@ dictionary_value_is_read_only(struct _cef_dictionary_value_t* self) { int CEF_CALLBACK dictionary_value_is_same(struct _cef_dictionary_value_t* self, struct _cef_dictionary_value_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -103,6 +114,8 @@ dictionary_value_is_same(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_is_equal(struct _cef_dictionary_value_t* self, struct _cef_dictionary_value_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +137,8 @@ dictionary_value_is_equal(struct _cef_dictionary_value_t* self, struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_copy(struct _cef_dictionary_value_t* self, int exclude_empty_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -141,6 +156,8 @@ dictionary_value_copy(struct _cef_dictionary_value_t* self, size_t CEF_CALLBACK dictionary_value_get_size(struct _cef_dictionary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -155,6 +172,8 @@ dictionary_value_get_size(struct _cef_dictionary_value_t* self) { } int CEF_CALLBACK dictionary_value_clear(struct _cef_dictionary_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -170,6 +189,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -189,6 +210,8 @@ int CEF_CALLBACK dictionary_value_has_key(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self, cef_string_list_t keys) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -216,6 +239,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -236,6 +261,8 @@ int CEF_CALLBACK dictionary_value_remove(struct _cef_dictionary_value_t* self, cef_value_type_t CEF_CALLBACK dictionary_value_get_type(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -257,6 +284,8 @@ dictionary_value_get_type(struct _cef_dictionary_value_t* self, cef_value_t* CEF_CALLBACK dictionary_value_get_value(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -277,6 +306,8 @@ dictionary_value_get_value(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -296,6 +327,8 @@ int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -316,6 +349,8 @@ int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self, double CEF_CALLBACK dictionary_value_get_double(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -337,6 +372,8 @@ dictionary_value_get_double(struct _cef_dictionary_value_t* self, cef_string_userfree_t CEF_CALLBACK dictionary_value_get_string(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -358,6 +395,8 @@ dictionary_value_get_string(struct _cef_dictionary_value_t* self, cef_binary_value_t* CEF_CALLBACK dictionary_value_get_binary(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -379,6 +418,8 @@ dictionary_value_get_binary(struct _cef_dictionary_value_t* self, struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_get_dictionary(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -400,6 +441,8 @@ dictionary_value_get_dictionary(struct _cef_dictionary_value_t* self, struct _cef_list_value_t* CEF_CALLBACK dictionary_value_get_list(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -422,6 +465,8 @@ int CEF_CALLBACK dictionary_value_set_value(struct _cef_dictionary_value_t* self, const cef_string_t* key, cef_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -446,6 +491,8 @@ dictionary_value_set_value(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self, const cef_string_t* key) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -466,6 +513,8 @@ int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self, const cef_string_t* key, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -487,6 +536,8 @@ int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_set_int(struct _cef_dictionary_value_t* self, const cef_string_t* key, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -509,6 +560,8 @@ int CEF_CALLBACK dictionary_value_set_double(struct _cef_dictionary_value_t* self, const cef_string_t* key, double value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -531,6 +584,8 @@ int CEF_CALLBACK dictionary_value_set_string(struct _cef_dictionary_value_t* self, const cef_string_t* key, const cef_string_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -554,6 +609,8 @@ int CEF_CALLBACK dictionary_value_set_binary(struct _cef_dictionary_value_t* self, const cef_string_t* key, cef_binary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -580,6 +637,8 @@ int CEF_CALLBACK dictionary_value_set_dictionary(struct _cef_dictionary_value_t* self, const cef_string_t* key, struct _cef_dictionary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -605,6 +664,8 @@ dictionary_value_set_dictionary(struct _cef_dictionary_value_t* self, int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self, const cef_string_t* key, struct _cef_list_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -663,6 +724,12 @@ CefDictionaryValueCppToC::CefDictionaryValueCppToC() { GetStruct()->set_list = dictionary_value_set_list; } +// DESTRUCTOR - Do not edit by hand. + +CefDictionaryValueCppToC::~CefDictionaryValueCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDictionaryValueCppToC, diff --git a/libcef_dll/cpptoc/dictionary_value_cpptoc.h b/libcef_dll/cpptoc/dictionary_value_cpptoc.h index a8f4475e7..cca550947 100644 --- a/libcef_dll/cpptoc/dictionary_value_cpptoc.h +++ b/libcef_dll/cpptoc/dictionary_value_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ca1032baec7333c9b8565b481350ec1b73086790$ +// $hash=2463eae0214d2f52564dbb760957c3141750fcbf$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDictionaryValueCppToC cef_dictionary_value_t> { public: CefDictionaryValueCppToC(); + virtual ~CefDictionaryValueCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/display_handler_cpptoc.cc b/libcef_dll/cpptoc/display_handler_cpptoc.cc index d9d7fc6f9..852828e67 100644 --- a/libcef_dll/cpptoc/display_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/display_handler_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=07ae3c3e3960a9dce5b6186173f76f765c564bc8$ +// $hash=350b86d1f5e2912141666328a21b2d4498424cca$ // #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/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -26,6 +27,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -54,6 +57,8 @@ void CEF_CALLBACK display_handler_on_title_change(struct _cef_display_handler_t* self, cef_browser_t* browser, const cef_string_t* title) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -74,6 +79,8 @@ void CEF_CALLBACK display_handler_on_favicon_urlchange(struct _cef_display_handler_t* self, cef_browser_t* browser, cef_string_list_t icon_urls) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -98,6 +105,8 @@ void CEF_CALLBACK display_handler_on_fullscreen_mode_change(struct _cef_display_handler_t* self, cef_browser_t* browser, int fullscreen) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -116,6 +125,8 @@ display_handler_on_fullscreen_mode_change(struct _cef_display_handler_t* self, int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self, cef_browser_t* browser, cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -142,6 +153,8 @@ void CEF_CALLBACK display_handler_on_status_message(struct _cef_display_handler_t* self, cef_browser_t* browser, const cef_string_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -165,6 +178,8 @@ display_handler_on_console_message(struct _cef_display_handler_t* self, const cef_string_t* message, const cef_string_t* source, int line) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -189,6 +204,8 @@ int CEF_CALLBACK display_handler_on_auto_resize(struct _cef_display_handler_t* self, cef_browser_t* browser, const cef_size_t* new_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -218,6 +235,8 @@ void CEF_CALLBACK display_handler_on_loading_progress_change(struct _cef_display_handler_t* self, cef_browser_t* browser, double progress) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -251,6 +270,12 @@ CefDisplayHandlerCppToC::CefDisplayHandlerCppToC() { display_handler_on_loading_progress_change; } +// DESTRUCTOR - Do not edit by hand. + +CefDisplayHandlerCppToC::~CefDisplayHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDisplayHandlerCppToC, diff --git a/libcef_dll/cpptoc/display_handler_cpptoc.h b/libcef_dll/cpptoc/display_handler_cpptoc.h index ca4fca636..13404cc50 100644 --- a/libcef_dll/cpptoc/display_handler_cpptoc.h +++ b/libcef_dll/cpptoc/display_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=94521cae896c3bafe81737cc4d42de4447767a46$ +// $hash=7cfb499516b7e7d9872fe6b91cbc8802d56ebe07$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDisplayHandlerCppToC cef_display_handler_t> { public: CefDisplayHandlerCppToC(); + virtual ~CefDisplayHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/domdocument_cpptoc.cc b/libcef_dll/cpptoc/domdocument_cpptoc.cc index 28ebfda7f..350151ae6 100644 --- a/libcef_dll/cpptoc/domdocument_cpptoc.cc +++ b/libcef_dll/cpptoc/domdocument_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=42a6d8df317712c8365e14536639f6df2012c6a4$ +// $hash=b3574eb0dc0a5e5debb7428d24b799dac3a5bf9f$ // #include "libcef_dll/cpptoc/domdocument_cpptoc.h" #include "libcef_dll/cpptoc/domnode_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ domdocument_get_type(struct _cef_domdocument_t* self) { struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +57,8 @@ domdocument_get_document(struct _cef_domdocument_t* self) { struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +74,8 @@ domdocument_get_body(struct _cef_domdocument_t* self) { struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +91,8 @@ domdocument_get_head(struct _cef_domdocument_t* self) { cef_string_userfree_t CEF_CALLBACK domdocument_get_title(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -98,6 +109,8 @@ domdocument_get_title(struct _cef_domdocument_t* self) { struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(struct _cef_domdocument_t* self, const cef_string_t* id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -118,6 +131,8 @@ domdocument_get_element_by_id(struct _cef_domdocument_t* self, struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -133,6 +148,8 @@ domdocument_get_focused_node(struct _cef_domdocument_t* self) { } int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -148,6 +165,8 @@ int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) { int CEF_CALLBACK domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -163,6 +182,8 @@ domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) { int CEF_CALLBACK domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +199,8 @@ domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) { cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -193,6 +216,8 @@ domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) { cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -208,6 +233,8 @@ domdocument_get_selection_as_text(struct _cef_domdocument_t* self) { cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(struct _cef_domdocument_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -224,6 +251,8 @@ domdocument_get_base_url(struct _cef_domdocument_t* self) { cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(struct _cef_domdocument_t* self, const cef_string_t* partialURL) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -264,6 +293,12 @@ CefDOMDocumentCppToC::CefDOMDocumentCppToC() { GetStruct()->get_complete_url = domdocument_get_complete_url; } +// DESTRUCTOR - Do not edit by hand. + +CefDOMDocumentCppToC::~CefDOMDocumentCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/domdocument_cpptoc.h b/libcef_dll/cpptoc/domdocument_cpptoc.h index 7cc70596a..1516f6fc2 100644 --- a/libcef_dll/cpptoc/domdocument_cpptoc.h +++ b/libcef_dll/cpptoc/domdocument_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3965ee5c93c1e186b58dbbc28db91e1ad1274f97$ +// $hash=1e63ea8bd5144f92f0f7d6f029b34a2672f337ae$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefDOMDocumentCppToC : public CefCppToCRefCounted { public: CefDOMDocumentCppToC(); + virtual ~CefDOMDocumentCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/domnode_cpptoc.cc b/libcef_dll/cpptoc/domnode_cpptoc.cc index 913ea62fd..a06daa0ae 100644 --- a/libcef_dll/cpptoc/domnode_cpptoc.cc +++ b/libcef_dll/cpptoc/domnode_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=fc5da1278ab101281eb914ebdbaadaaa6e13a5c5$ +// $hash=a91cb2886c5b13c7d55d7700595ca7e9f60b07d4$ // #include "libcef_dll/cpptoc/domnode_cpptoc.h" #include "libcef_dll/cpptoc/domdocument_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -21,6 +22,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. cef_dom_node_type_t CEF_CALLBACK domnode_get_type(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -35,6 +38,8 @@ cef_dom_node_type_t CEF_CALLBACK domnode_get_type(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +54,8 @@ int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -63,6 +70,8 @@ int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_is_editable(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +86,8 @@ int CEF_CALLBACK domnode_is_editable(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -92,6 +103,8 @@ int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) { cef_string_userfree_t CEF_CALLBACK domnode_get_form_control_element_type(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -107,6 +120,8 @@ domnode_get_form_control_element_type(struct _cef_domnode_t* self) { int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self, struct _cef_domnode_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +142,8 @@ int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self, cef_string_userfree_t CEF_CALLBACK domnode_get_name(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -142,6 +159,8 @@ domnode_get_name(struct _cef_domnode_t* self) { cef_string_userfree_t CEF_CALLBACK domnode_get_value(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -157,6 +176,8 @@ domnode_get_value(struct _cef_domnode_t* self) { int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self, const cef_string_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -176,6 +197,8 @@ int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self, cef_string_userfree_t CEF_CALLBACK domnode_get_as_markup(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -191,6 +214,8 @@ domnode_get_as_markup(struct _cef_domnode_t* self) { cef_domdocument_t* CEF_CALLBACK domnode_get_document(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -207,6 +232,8 @@ domnode_get_document(struct _cef_domnode_t* self) { struct _cef_domnode_t* CEF_CALLBACK domnode_get_parent(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -222,6 +249,8 @@ domnode_get_parent(struct _cef_domnode_t* self) { struct _cef_domnode_t* CEF_CALLBACK domnode_get_previous_sibling(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -238,6 +267,8 @@ domnode_get_previous_sibling(struct _cef_domnode_t* self) { struct _cef_domnode_t* CEF_CALLBACK domnode_get_next_sibling(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -252,6 +283,8 @@ domnode_get_next_sibling(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -267,6 +300,8 @@ int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) { struct _cef_domnode_t* CEF_CALLBACK domnode_get_first_child(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -282,6 +317,8 @@ domnode_get_first_child(struct _cef_domnode_t* self) { struct _cef_domnode_t* CEF_CALLBACK domnode_get_last_child(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -297,6 +334,8 @@ domnode_get_last_child(struct _cef_domnode_t* self) { cef_string_userfree_t CEF_CALLBACK domnode_get_element_tag_name(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -311,6 +350,8 @@ domnode_get_element_tag_name(struct _cef_domnode_t* self) { } int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -326,6 +367,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -347,6 +390,8 @@ int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self, cef_string_userfree_t CEF_CALLBACK domnode_get_element_attribute(struct _cef_domnode_t* self, const cef_string_t* attrName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -367,6 +412,8 @@ domnode_get_element_attribute(struct _cef_domnode_t* self, void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self, cef_string_map_t attrMap) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -392,6 +439,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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -416,6 +465,8 @@ int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self, cef_string_userfree_t CEF_CALLBACK domnode_get_element_inner_text(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -431,6 +482,8 @@ domnode_get_element_inner_text(struct _cef_domnode_t* self) { cef_rect_t CEF_CALLBACK domnode_get_element_bounds(struct _cef_domnode_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -478,6 +531,12 @@ CefDOMNodeCppToC::CefDOMNodeCppToC() { GetStruct()->get_element_bounds = domnode_get_element_bounds; } +// DESTRUCTOR - Do not edit by hand. + +CefDOMNodeCppToC::~CefDOMNodeCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/domnode_cpptoc.h b/libcef_dll/cpptoc/domnode_cpptoc.h index 714831c7e..3d1708b2b 100644 --- a/libcef_dll/cpptoc/domnode_cpptoc.h +++ b/libcef_dll/cpptoc/domnode_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ecd9741ad425bb313338dda911e05c785bc675d3$ +// $hash=9f0cbd07c9499d106cce04e8c942e07b8ea68db4$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefDOMNodeCppToC : public CefCppToCRefCounted { public: CefDOMNodeCppToC(); + virtual ~CefDOMNodeCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/domvisitor_cpptoc.cc b/libcef_dll/cpptoc/domvisitor_cpptoc.cc index 840adc6fe..4f067a4b2 100644 --- a/libcef_dll/cpptoc/domvisitor_cpptoc.cc +++ b/libcef_dll/cpptoc/domvisitor_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c3c67e360c98b7c1e94bfd50717acdcbee63d38c$ +// $hash=57874472aeb7e1ba3d8fd2d1a5a8cd0a3a3d496f$ // #include "libcef_dll/cpptoc/domvisitor_cpptoc.h" #include "libcef_dll/ctocpp/domdocument_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self, struct _cef_domdocument_t* document) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,12 @@ CefDOMVisitorCppToC::CefDOMVisitorCppToC() { GetStruct()->visit = domvisitor_visit; } +// DESTRUCTOR - Do not edit by hand. + +CefDOMVisitorCppToC::~CefDOMVisitorCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/domvisitor_cpptoc.h b/libcef_dll/cpptoc/domvisitor_cpptoc.h index 8b782bd52..b0ac158b0 100644 --- a/libcef_dll/cpptoc/domvisitor_cpptoc.h +++ b/libcef_dll/cpptoc/domvisitor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c2a7ebb82765531e5de28cacfe52213f3890c57d$ +// $hash=f30290b82fb925e9ac6cc7927d23d7d1fa929592$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefDOMVisitorCppToC : public CefCppToCRefCounted { public: CefDOMVisitorCppToC(); + virtual ~CefDOMVisitorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/download_handler_cpptoc.cc b/libcef_dll/cpptoc/download_handler_cpptoc.cc index 783b65d3c..ca7a6dfb9 100644 --- a/libcef_dll/cpptoc/download_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/download_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=16902e43fbf58ed599ea8ff3c97129fa02d4dbf8$ +// $hash=b6003acc60ff3f4271abc37847707254ddd5dd98$ // #include "libcef_dll/cpptoc/download_handler_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/download_item_callback_ctocpp.h" #include "libcef_dll/ctocpp/download_item_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -28,6 +29,8 @@ download_handler_on_before_download(struct _cef_download_handler_t* self, struct _cef_download_item_t* download_item, const cef_string_t* suggested_name, cef_before_download_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +65,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -96,6 +101,12 @@ CefDownloadHandlerCppToC::CefDownloadHandlerCppToC() { GetStruct()->on_download_updated = download_handler_on_download_updated; } +// DESTRUCTOR - Do not edit by hand. + +CefDownloadHandlerCppToC::~CefDownloadHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDownloadHandlerCppToC, diff --git a/libcef_dll/cpptoc/download_handler_cpptoc.h b/libcef_dll/cpptoc/download_handler_cpptoc.h index 9d850e807..78eca9b07 100644 --- a/libcef_dll/cpptoc/download_handler_cpptoc.h +++ b/libcef_dll/cpptoc/download_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=27520878d8fae88d096cb8f2507a733b4e90cfc1$ +// $hash=b4fc76252c6f97753ee46df6d4d5cd198cca82ff$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDownloadHandlerCppToC cef_download_handler_t> { public: CefDownloadHandlerCppToC(); + virtual ~CefDownloadHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/download_image_callback_cpptoc.cc b/libcef_dll/cpptoc/download_image_callback_cpptoc.cc index 7d48909fa..5209782b8 100644 --- a/libcef_dll/cpptoc/download_image_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/download_image_callback_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dad73b1e53163b971788f9f7c9a79fa1159218e8$ +// $hash=6851cc688ae36e0355eb16cc6ef73c8273bed44e$ // #include "libcef_dll/cpptoc/download_image_callback_cpptoc.h" #include "libcef_dll/ctocpp/image_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ void CEF_CALLBACK download_image_callback_on_download_image_finished( const cef_string_t* image_url, int http_status_code, struct _cef_image_t* image) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +52,12 @@ CefDownloadImageCallbackCppToC::CefDownloadImageCallbackCppToC() { download_image_callback_on_download_image_finished; } +// DESTRUCTOR - Do not edit by hand. + +CefDownloadImageCallbackCppToC::~CefDownloadImageCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDownloadImageCallbackCppToC, diff --git a/libcef_dll/cpptoc/download_image_callback_cpptoc.h b/libcef_dll/cpptoc/download_image_callback_cpptoc.h index fef162177..95cbe25bd 100644 --- a/libcef_dll/cpptoc/download_image_callback_cpptoc.h +++ b/libcef_dll/cpptoc/download_image_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9b7f62192b7558b5fa9c4677b9bfdf1fb4a6e611$ +// $hash=3f80fd4918db4d002c07c5bd6a4ea4a98c3d884a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefDownloadImageCallbackCppToC cef_download_image_callback_t> { public: CefDownloadImageCallbackCppToC(); + virtual ~CefDownloadImageCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/download_item_callback_cpptoc.cc b/libcef_dll/cpptoc/download_item_callback_cpptoc.cc index 779936f40..e93cef44e 100644 --- a/libcef_dll/cpptoc/download_item_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/download_item_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=078b2fa07434acfcc3b9d604bd6bc26ca8feb2f6$ +// $hash=078411b74defc684f7f7a56d04658585053e3683$ // #include "libcef_dll/cpptoc/download_item_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { void CEF_CALLBACK download_item_callback_cancel(struct _cef_download_item_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -32,6 +35,8 @@ download_item_callback_cancel(struct _cef_download_item_callback_t* self) { void CEF_CALLBACK download_item_callback_pause(struct _cef_download_item_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -44,6 +49,8 @@ download_item_callback_pause(struct _cef_download_item_callback_t* self) { void CEF_CALLBACK download_item_callback_resume(struct _cef_download_item_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +71,12 @@ CefDownloadItemCallbackCppToC::CefDownloadItemCallbackCppToC() { GetStruct()->resume = download_item_callback_resume; } +// DESTRUCTOR - Do not edit by hand. + +CefDownloadItemCallbackCppToC::~CefDownloadItemCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDownloadItemCallbackCppToC, diff --git a/libcef_dll/cpptoc/download_item_callback_cpptoc.h b/libcef_dll/cpptoc/download_item_callback_cpptoc.h index d1cc5e287..65ec1c1c4 100644 --- a/libcef_dll/cpptoc/download_item_callback_cpptoc.h +++ b/libcef_dll/cpptoc/download_item_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=74ba8e3f96bc4f5fc58a2bab1d7449e3cfbb66de$ +// $hash=167bb15eca8cd99005d04fc00ce1dde863eaeeab$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefDownloadItemCallbackCppToC cef_download_item_callback_t> { public: CefDownloadItemCallbackCppToC(); + virtual ~CefDownloadItemCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/download_item_cpptoc.cc b/libcef_dll/cpptoc/download_item_cpptoc.cc index 940c2dd75..a9ef831c1 100644 --- a/libcef_dll/cpptoc/download_item_cpptoc.cc +++ b/libcef_dll/cpptoc/download_item_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ff23ba3ab91188294f816fcadee929a0316846fc$ +// $hash=904cfa3f93325c49918233b16163c7334beb454f$ // #include "libcef_dll/cpptoc/download_item_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK download_item_is_valid(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -34,6 +37,8 @@ int CEF_CALLBACK download_item_is_valid(struct _cef_download_item_t* self) { int CEF_CALLBACK download_item_is_in_progress(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -48,6 +53,8 @@ download_item_is_in_progress(struct _cef_download_item_t* self) { } int CEF_CALLBACK download_item_is_complete(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +69,8 @@ int CEF_CALLBACK download_item_is_complete(struct _cef_download_item_t* self) { } int CEF_CALLBACK download_item_is_canceled(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +86,8 @@ int CEF_CALLBACK download_item_is_canceled(struct _cef_download_item_t* self) { int64 CEF_CALLBACK download_item_get_current_speed(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -92,6 +103,8 @@ download_item_get_current_speed(struct _cef_download_item_t* self) { int CEF_CALLBACK download_item_get_percent_complete(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -107,6 +120,8 @@ download_item_get_percent_complete(struct _cef_download_item_t* self) { int64 CEF_CALLBACK download_item_get_total_bytes(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -122,6 +137,8 @@ download_item_get_total_bytes(struct _cef_download_item_t* self) { int64 CEF_CALLBACK download_item_get_received_bytes(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -137,6 +154,8 @@ download_item_get_received_bytes(struct _cef_download_item_t* self) { cef_time_t CEF_CALLBACK download_item_get_start_time(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -152,6 +171,8 @@ download_item_get_start_time(struct _cef_download_item_t* self) { cef_time_t CEF_CALLBACK download_item_get_end_time(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -167,6 +188,8 @@ download_item_get_end_time(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_full_path(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -181,6 +204,8 @@ download_item_get_full_path(struct _cef_download_item_t* self) { } uint32 CEF_CALLBACK download_item_get_id(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -196,6 +221,8 @@ uint32 CEF_CALLBACK download_item_get_id(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_url(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -211,6 +238,8 @@ download_item_get_url(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_original_url(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -226,6 +255,8 @@ download_item_get_original_url(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_suggested_file_name(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -241,6 +272,8 @@ download_item_get_suggested_file_name(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_content_disposition(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -256,6 +289,8 @@ download_item_get_content_disposition(struct _cef_download_item_t* self) { cef_string_userfree_t CEF_CALLBACK download_item_get_mime_type(struct _cef_download_item_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -293,6 +328,12 @@ CefDownloadItemCppToC::CefDownloadItemCppToC() { GetStruct()->get_mime_type = download_item_get_mime_type; } +// DESTRUCTOR - Do not edit by hand. + +CefDownloadItemCppToC::~CefDownloadItemCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefDownloadItemCppToC, diff --git a/libcef_dll/cpptoc/download_item_cpptoc.h b/libcef_dll/cpptoc/download_item_cpptoc.h index c97eb2c57..62c4e8033 100644 --- a/libcef_dll/cpptoc/download_item_cpptoc.h +++ b/libcef_dll/cpptoc/download_item_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bdc5428227801593f7ba0073207cc57ffd3a3765$ +// $hash=9476e0585d9889fc9e51bc2e1ba837a43e16adb4$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefDownloadItemCppToC : public CefCppToCRefCounted { public: CefDownloadItemCppToC(); + virtual ~CefDownloadItemCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/drag_data_cpptoc.cc b/libcef_dll/cpptoc/drag_data_cpptoc.cc index 34e3a3ae8..cb8d7da34 100644 --- a/libcef_dll/cpptoc/drag_data_cpptoc.cc +++ b/libcef_dll/cpptoc/drag_data_cpptoc.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b1cc282e9de9329406c9a2197a2d251d28412928$ +// $hash=c61826a0c2b4f67e7c70b7dd7c734d0fc66062f8$ // #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/shutdown_checker.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() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -35,6 +38,8 @@ namespace { struct _cef_drag_data_t* CEF_CALLBACK drag_data_clone(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +54,8 @@ drag_data_clone(struct _cef_drag_data_t* self) { } int CEF_CALLBACK drag_data_is_read_only(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -63,6 +70,8 @@ int CEF_CALLBACK drag_data_is_read_only(struct _cef_drag_data_t* self) { } int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +86,8 @@ int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self) { } int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -91,6 +102,8 @@ int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self) { } int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -106,6 +119,8 @@ int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_link_url(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -121,6 +136,8 @@ drag_data_get_link_url(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_link_title(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -136,6 +153,8 @@ drag_data_get_link_title(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_link_metadata(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +170,8 @@ drag_data_get_link_metadata(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_text(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -166,6 +187,8 @@ drag_data_get_fragment_text(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_html(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -181,6 +204,8 @@ drag_data_get_fragment_html(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_base_url(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -196,6 +221,8 @@ drag_data_get_fragment_base_url(struct _cef_drag_data_t* self) { cef_string_userfree_t CEF_CALLBACK drag_data_get_file_name(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -212,6 +239,8 @@ drag_data_get_file_name(struct _cef_drag_data_t* self) { size_t CEF_CALLBACK drag_data_get_file_contents(struct _cef_drag_data_t* self, struct _cef_stream_writer_t* writer) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -229,6 +258,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -256,6 +287,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -269,6 +302,8 @@ void CEF_CALLBACK drag_data_set_link_url(struct _cef_drag_data_t* self, void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self, const cef_string_t* title) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -282,6 +317,8 @@ void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self, void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self, const cef_string_t* data) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -295,6 +332,8 @@ void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self, void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -308,6 +347,8 @@ void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self, void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self, const cef_string_t* html) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -322,6 +363,8 @@ void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self, void CEF_CALLBACK drag_data_set_fragment_base_url(struct _cef_drag_data_t* self, const cef_string_t* base_url) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -334,6 +377,8 @@ drag_data_set_fragment_base_url(struct _cef_drag_data_t* self, } void CEF_CALLBACK drag_data_reset_file_contents(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -347,6 +392,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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -365,6 +412,8 @@ void CEF_CALLBACK drag_data_add_file(struct _cef_drag_data_t* self, struct _cef_image_t* CEF_CALLBACK drag_data_get_image(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -380,6 +429,8 @@ drag_data_get_image(struct _cef_drag_data_t* self) { cef_point_t CEF_CALLBACK drag_data_get_image_hotspot(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -394,6 +445,8 @@ drag_data_get_image_hotspot(struct _cef_drag_data_t* self) { } int CEF_CALLBACK drag_data_has_image(struct _cef_drag_data_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -439,6 +492,12 @@ CefDragDataCppToC::CefDragDataCppToC() { GetStruct()->has_image = drag_data_has_image; } +// DESTRUCTOR - Do not edit by hand. + +CefDragDataCppToC::~CefDragDataCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/drag_data_cpptoc.h b/libcef_dll/cpptoc/drag_data_cpptoc.h index 2431bdbcd..59c6d83ac 100644 --- a/libcef_dll/cpptoc/drag_data_cpptoc.h +++ b/libcef_dll/cpptoc/drag_data_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1e1a8174dc3c0655245c12da94b57c2133d134b5$ +// $hash=af7662cb4499269d80ca8d8ac73a4a73d856c689$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefDragDataCppToC : public CefCppToCRefCounted { public: CefDragDataCppToC(); + virtual ~CefDragDataCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/drag_handler_cpptoc.cc b/libcef_dll/cpptoc/drag_handler_cpptoc.cc index 8f5312269..bc7431589 100644 --- a/libcef_dll/cpptoc/drag_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/drag_handler_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b267b6f6b92f40479ba91e67f0981bd05063a29c$ +// $hash=cc6ff684cc894dc40ea04848eb61ac4f3b87da20$ // #include "libcef_dll/cpptoc/drag_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/drag_data_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +54,8 @@ void CEF_CALLBACK drag_handler_on_draggable_regions_changed( cef_browser_t* browser, size_t regionsCount, cef_draggable_region_t const* regions) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +94,12 @@ CefDragHandlerCppToC::CefDragHandlerCppToC() { drag_handler_on_draggable_regions_changed; } +// DESTRUCTOR - Do not edit by hand. + +CefDragHandlerCppToC::~CefDragHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/drag_handler_cpptoc.h b/libcef_dll/cpptoc/drag_handler_cpptoc.h index aa16dcccc..a0c2b89b0 100644 --- a/libcef_dll/cpptoc/drag_handler_cpptoc.h +++ b/libcef_dll/cpptoc/drag_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8f56aeb476b2f1e8c13d448f24557eb91d9b7e68$ +// $hash=1d41c5fb4e26863326fd9597789afb7c0b33438f$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefDragHandlerCppToC : public CefCppToCRefCounted { public: CefDragHandlerCppToC(); + virtual ~CefDragHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/end_tracing_callback_cpptoc.cc b/libcef_dll/cpptoc/end_tracing_callback_cpptoc.cc index b25d1879b..8777cdfab 100644 --- a/libcef_dll/cpptoc/end_tracing_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/end_tracing_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a19cac14ca6d1a334920a83e092ff2accb7a0d4c$ +// $hash=be2c5bdbd772cac7345acb05b976a3cf2e05b8b0$ // #include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete( struct _cef_end_tracing_callback_t* self, const cef_string_t* tracing_file) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,12 @@ CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() { end_tracing_callback_on_end_tracing_complete; } +// DESTRUCTOR - Do not edit by hand. + +CefEndTracingCallbackCppToC::~CefEndTracingCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefEndTracingCallbackCppToC, diff --git a/libcef_dll/cpptoc/end_tracing_callback_cpptoc.h b/libcef_dll/cpptoc/end_tracing_callback_cpptoc.h index e40e4a191..8d30b7a3d 100644 --- a/libcef_dll/cpptoc/end_tracing_callback_cpptoc.h +++ b/libcef_dll/cpptoc/end_tracing_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ce1ac67bb16419c5f4f80ff7af7c06e87fae6c77$ +// $hash=575d2bda3e2c0b6a811b102511e7444fcdc5f955$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefEndTracingCallbackCppToC cef_end_tracing_callback_t> { public: CefEndTracingCallbackCppToC(); + virtual ~CefEndTracingCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/extension_cpptoc.cc b/libcef_dll/cpptoc/extension_cpptoc.cc index e45739751..0055fa844 100644 --- a/libcef_dll/cpptoc/extension_cpptoc.cc +++ b/libcef_dll/cpptoc/extension_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b56766a3f166ad3191d37815d12f83bd9da0690e$ +// $hash=4527ed93583d01dd187f5f40e2adce17c613ca42$ // #include "libcef_dll/cpptoc/extension_cpptoc.h" #include "libcef_dll/cpptoc/dictionary_value_cpptoc.h" #include "libcef_dll/cpptoc/request_context_cpptoc.h" #include "libcef_dll/ctocpp/extension_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { cef_string_userfree_t CEF_CALLBACK extension_get_identifier(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,8 @@ extension_get_identifier(struct _cef_extension_t* self) { cef_string_userfree_t CEF_CALLBACK extension_get_path(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,8 @@ extension_get_path(struct _cef_extension_t* self) { struct _cef_dictionary_value_t* CEF_CALLBACK extension_get_manifest(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +76,8 @@ extension_get_manifest(struct _cef_extension_t* self) { int CEF_CALLBACK extension_is_same(struct _cef_extension_t* self, struct _cef_extension_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +98,8 @@ int CEF_CALLBACK extension_is_same(struct _cef_extension_t* self, struct _cef_extension_handler_t* CEF_CALLBACK extension_get_handler(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -105,6 +116,8 @@ extension_get_handler(struct _cef_extension_t* self) { struct _cef_request_context_t* CEF_CALLBACK extension_get_loader_context(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -120,6 +133,8 @@ extension_get_loader_context(struct _cef_extension_t* self) { } int CEF_CALLBACK extension_is_loaded(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -134,6 +149,8 @@ int CEF_CALLBACK extension_is_loaded(struct _cef_extension_t* self) { } void CEF_CALLBACK extension_unload(struct _cef_extension_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -159,6 +176,12 @@ CefExtensionCppToC::CefExtensionCppToC() { GetStruct()->unload = extension_unload; } +// DESTRUCTOR - Do not edit by hand. + +CefExtensionCppToC::~CefExtensionCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/extension_cpptoc.h b/libcef_dll/cpptoc/extension_cpptoc.h index 24033f1e6..9924acef1 100644 --- a/libcef_dll/cpptoc/extension_cpptoc.h +++ b/libcef_dll/cpptoc/extension_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dc3a7d0122346963b281f1e49d193c02ca09d4b4$ +// $hash=905a73e6a0d3dc3a860a51d51d57ae0d11e5cabe$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_EXTENSION_CPPTOC_H_ @@ -35,6 +35,7 @@ class CefExtensionCppToC : public CefCppToCRefCounted { public: CefExtensionCppToC(); + virtual ~CefExtensionCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_EXTENSION_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/extension_handler_cpptoc.cc b/libcef_dll/cpptoc/extension_handler_cpptoc.cc index 158ff902a..69eda0c12 100644 --- a/libcef_dll/cpptoc/extension_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/extension_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b74169ee8c5e71b8694165115c8d27a309ee8cfc$ +// $hash=b8d389ef550832084c478aa5fd6844f8cd09e3ef$ // #include "libcef_dll/cpptoc/extension_handler_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/extension_ctocpp.h" #include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -25,6 +26,8 @@ namespace { void CEF_CALLBACK extension_handler_on_extension_load_failed( struct _cef_extension_handler_t* self, cef_errorcode_t result) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,8 @@ void CEF_CALLBACK extension_handler_on_extension_load_failed( void CEF_CALLBACK extension_handler_on_extension_loaded(struct _cef_extension_handler_t* self, cef_extension_t* extension) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ extension_handler_on_extension_loaded(struct _cef_extension_handler_t* self, void CEF_CALLBACK extension_handler_on_extension_unloaded(struct _cef_extension_handler_t* self, cef_extension_t* extension) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +84,8 @@ int CEF_CALLBACK extension_handler_on_before_background_browser( const cef_string_t* url, cef_client_t** client, struct _cef_browser_settings_t* settings) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +153,8 @@ extension_handler_on_before_browser(struct _cef_extension_handler_t* self, cef_window_info_t* windowInfo, cef_client_t** client, struct _cef_browser_settings_t* settings) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -224,6 +235,8 @@ extension_handler_get_active_browser(struct _cef_extension_handler_t* self, cef_extension_t* extension, cef_browser_t* browser, int include_incognito) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -254,6 +267,8 @@ extension_handler_can_access_browser(struct _cef_extension_handler_t* self, cef_browser_t* browser, int include_incognito, cef_browser_t* target_browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -287,6 +302,8 @@ int CEF_CALLBACK extension_handler_get_extension_resource( cef_browser_t* browser, const cef_string_t* file, cef_get_extension_resource_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +353,12 @@ CefExtensionHandlerCppToC::CefExtensionHandlerCppToC() { extension_handler_get_extension_resource; } +// DESTRUCTOR - Do not edit by hand. + +CefExtensionHandlerCppToC::~CefExtensionHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefExtensionHandlerCppToC, diff --git a/libcef_dll/cpptoc/extension_handler_cpptoc.h b/libcef_dll/cpptoc/extension_handler_cpptoc.h index a364a8ec8..7beeaf00e 100644 --- a/libcef_dll/cpptoc/extension_handler_cpptoc.h +++ b/libcef_dll/cpptoc/extension_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=750e896f7b97f8de103e420e4698ee30f8d8399d$ +// $hash=c1afd088ce7dd292c2d4e057bac6050e8da00880$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_EXTENSION_HANDLER_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefExtensionHandlerCppToC cef_extension_handler_t> { public: CefExtensionHandlerCppToC(); + virtual ~CefExtensionHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_EXTENSION_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/file_dialog_callback_cpptoc.cc b/libcef_dll/cpptoc/file_dialog_callback_cpptoc.cc index c6d661e64..f472ba57c 100644 --- a/libcef_dll/cpptoc/file_dialog_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/file_dialog_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b3e7dd73edf957adb75d82ef517e242561212cc7$ +// $hash=b5a14bd3df9a4712d5cb68686bac8c4dfb3bfeba$ // #include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -23,6 +24,8 @@ void CEF_CALLBACK file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self, int selected_accept_filter, cef_string_list_t file_paths) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,8 @@ file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self, void CEF_CALLBACK file_dialog_callback_cancel(struct _cef_file_dialog_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +69,12 @@ CefFileDialogCallbackCppToC::CefFileDialogCallbackCppToC() { GetStruct()->cancel = file_dialog_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefFileDialogCallbackCppToC::~CefFileDialogCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefFileDialogCallbackCppToC, diff --git a/libcef_dll/cpptoc/file_dialog_callback_cpptoc.h b/libcef_dll/cpptoc/file_dialog_callback_cpptoc.h index 193cfed95..3ff33c715 100644 --- a/libcef_dll/cpptoc/file_dialog_callback_cpptoc.h +++ b/libcef_dll/cpptoc/file_dialog_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e702a6fb33fcb57d66cdedfa0e3e6eea0db20b2f$ +// $hash=87b1e03f22df20330840330bfd6b9e873b57753e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefFileDialogCallbackCppToC cef_file_dialog_callback_t> { public: CefFileDialogCallbackCppToC(); + virtual ~CefFileDialogCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/find_handler_cpptoc.cc b/libcef_dll/cpptoc/find_handler_cpptoc.cc index 7a657cd19..56eddf2e2 100644 --- a/libcef_dll/cpptoc/find_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/find_handler_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a4f6021bc0bdc310c849364e52dad35ccb82dd6d$ +// $hash=1030036a2a5b321e8fd22f7913c827c5b7b9cea1$ // #include "libcef_dll/cpptoc/find_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -26,6 +27,8 @@ void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self, const cef_rect_t* selectionRect, int activeMatchOrdinal, int finalUpdate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -57,6 +60,12 @@ CefFindHandlerCppToC::CefFindHandlerCppToC() { GetStruct()->on_find_result = find_handler_on_find_result; } +// DESTRUCTOR - Do not edit by hand. + +CefFindHandlerCppToC::~CefFindHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/find_handler_cpptoc.h b/libcef_dll/cpptoc/find_handler_cpptoc.h index 9bd7207a6..af0aaba13 100644 --- a/libcef_dll/cpptoc/find_handler_cpptoc.h +++ b/libcef_dll/cpptoc/find_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a057b8eb4034f0729ae4bc116f9551dbad8b0c83$ +// $hash=b86619b4f41af3789ebda417d82762b7e53fb1c5$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefFindHandlerCppToC : public CefCppToCRefCounted { public: CefFindHandlerCppToC(); + virtual ~CefFindHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/focus_handler_cpptoc.cc b/libcef_dll/cpptoc/focus_handler_cpptoc.cc index 757acd312..1a9a76dfc 100644 --- a/libcef_dll/cpptoc/focus_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/focus_handler_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=461272d12d9d2eff32f8a7d04c8177efb6c0b6a0$ +// $hash=f20894b110772883b57dbb90bf2361525c2669aa$ // #include "libcef_dll/cpptoc/focus_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self, cef_browser_t* browser, int next) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -40,6 +43,8 @@ void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self, int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self, cef_browser_t* browser, cef_focus_source_t source) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +65,8 @@ int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self, void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -84,6 +91,12 @@ CefFocusHandlerCppToC::CefFocusHandlerCppToC() { GetStruct()->on_got_focus = focus_handler_on_got_focus; } +// DESTRUCTOR - Do not edit by hand. + +CefFocusHandlerCppToC::~CefFocusHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefFocusHandlerCppToC, diff --git a/libcef_dll/cpptoc/focus_handler_cpptoc.h b/libcef_dll/cpptoc/focus_handler_cpptoc.h index 106ca7cc6..fbccbe3e7 100644 --- a/libcef_dll/cpptoc/focus_handler_cpptoc.h +++ b/libcef_dll/cpptoc/focus_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b201e99260bd005c9821dab9e9b6148e4561cfa6$ +// $hash=194e063e6eeec677a002179d90340efcdbc05744$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefFocusHandlerCppToC : public CefCppToCRefCounted { public: CefFocusHandlerCppToC(); + virtual ~CefFocusHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/frame_cpptoc.cc b/libcef_dll/cpptoc/frame_cpptoc.cc index 6ba458afd..7d0d82791 100644 --- a/libcef_dll/cpptoc/frame_cpptoc.cc +++ b/libcef_dll/cpptoc/frame_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=12cd68fcf89a3cdccf4651f709796357f0159fa8$ +// $hash=aaaa5a4d0301d39b0a7c4c8f5dcf49b3ac899d9c$ // #include "libcef_dll/cpptoc/frame_cpptoc.h" @@ -18,12 +18,15 @@ #include "libcef_dll/cpptoc/v8context_cpptoc.h" #include "libcef_dll/ctocpp/domvisitor_ctocpp.h" #include "libcef_dll/ctocpp/string_visitor_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK frame_is_valid(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,8 @@ int CEF_CALLBACK frame_is_valid(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_undo(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +54,8 @@ void CEF_CALLBACK frame_undo(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_redo(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +67,8 @@ void CEF_CALLBACK frame_redo(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_cut(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +80,8 @@ void CEF_CALLBACK frame_cut(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_copy(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +93,8 @@ void CEF_CALLBACK frame_copy(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_paste(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -93,6 +106,8 @@ void CEF_CALLBACK frame_paste(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_del(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +119,8 @@ void CEF_CALLBACK frame_del(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +132,8 @@ void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self) { } void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +146,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -143,6 +164,8 @@ void CEF_CALLBACK frame_get_source(struct _cef_frame_t* self, void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self, struct _cef_string_visitor_t* visitor) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -159,6 +182,8 @@ void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self, void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self, struct _cef_request_t* request) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -175,6 +200,8 @@ void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self, void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self, const cef_string_t* url) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -192,6 +219,8 @@ void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self, void CEF_CALLBACK frame_load_string(struct _cef_frame_t* self, const cef_string_t* string_val, const cef_string_t* url) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -214,6 +243,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -231,6 +262,8 @@ void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self, } int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +278,8 @@ int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) { } int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -259,6 +294,8 @@ int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self) { } cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -273,6 +310,8 @@ cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self) { } int64 CEF_CALLBACK frame_get_identifier(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -287,6 +326,8 @@ int64 CEF_CALLBACK frame_get_identifier(struct _cef_frame_t* self) { } struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -301,6 +342,8 @@ struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self) { } cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -315,6 +358,8 @@ cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self) { } cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -330,6 +375,8 @@ cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) { struct _cef_v8context_t* CEF_CALLBACK frame_get_v8context(struct _cef_frame_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -345,6 +392,8 @@ frame_get_v8context(struct _cef_frame_t* self) { void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self, cef_domvisitor_t* visitor) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -390,6 +439,12 @@ CefFrameCppToC::CefFrameCppToC() { GetStruct()->visit_dom = frame_visit_dom; } +// DESTRUCTOR - Do not edit by hand. + +CefFrameCppToC::~CefFrameCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/frame_cpptoc.h b/libcef_dll/cpptoc/frame_cpptoc.h index f66a259b8..d9e87a4ee 100644 --- a/libcef_dll/cpptoc/frame_cpptoc.h +++ b/libcef_dll/cpptoc/frame_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=43922eb5a9740a37e20f35cacf4771beefe34ef2$ +// $hash=44a73e5a0632c0d3d3c4b1e5f3f929cf4834f054$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefFrameCppToC : public CefCppToCRefCounted { public: CefFrameCppToC(); + virtual ~CefFrameCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.cc b/libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.cc index 5e2c4e5cc..43d688080 100644 --- a/libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cd6b32c4ac1068b054fa977b3833f2d80b042bfb$ +// $hash=967b251d6a1cc2488facf53dfd2c2183c3c61b43$ // #include "libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.h" #include "libcef_dll/cpptoc/stream_reader_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { void CEF_CALLBACK get_extension_resource_callback_cont( struct _cef_get_extension_resource_callback_t* self, struct _cef_stream_reader_t* stream) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ void CEF_CALLBACK get_extension_resource_callback_cont( void CEF_CALLBACK get_extension_resource_callback_cancel( struct _cef_get_extension_resource_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -55,6 +60,13 @@ CefGetExtensionResourceCallbackCppToC::CefGetExtensionResourceCallbackCppToC() { GetStruct()->cancel = get_extension_resource_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefGetExtensionResourceCallbackCppToC:: + ~CefGetExtensionResourceCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefGetExtensionResourceCallbackCppToC(); + virtual ~CefGetExtensionResourceCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_GET_EXTENSION_RESOURCE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/image_cpptoc.cc b/libcef_dll/cpptoc/image_cpptoc.cc index eb2f467d8..9717b2dcd 100644 --- a/libcef_dll/cpptoc/image_cpptoc.cc +++ b/libcef_dll/cpptoc/image_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a4c54b863e3e144dc9a3cfa2911c5f842c84247c$ +// $hash=c5faaf475b1cf107d5b7df2e976ff29607401549$ // #include "libcef_dll/cpptoc/image_cpptoc.h" #include "libcef_dll/cpptoc/binary_value_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_image_t* cef_image_create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK image_is_empty(struct _cef_image_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -47,6 +52,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -73,6 +80,8 @@ int CEF_CALLBACK image_add_bitmap(struct _cef_image_t* self, cef_alpha_type_t alpha_type, const void* pixel_data, size_t pixel_data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -96,6 +105,8 @@ int CEF_CALLBACK image_add_png(struct _cef_image_t* self, float scale_factor, const void* png_data, size_t png_data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -118,6 +129,8 @@ int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self, float scale_factor, const void* jpeg_data, size_t jpeg_data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -137,6 +150,8 @@ int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self, } size_t CEF_CALLBACK image_get_width(struct _cef_image_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +166,8 @@ size_t CEF_CALLBACK image_get_width(struct _cef_image_t* self) { } size_t CEF_CALLBACK image_get_height(struct _cef_image_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -166,6 +183,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -181,6 +200,8 @@ int CEF_CALLBACK image_has_representation(struct _cef_image_t* self, int CEF_CALLBACK image_remove_representation(struct _cef_image_t* self, float scale_factor) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -199,6 +220,8 @@ int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self, float* actual_scale_factor, int* pixel_width, int* pixel_height) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -249,6 +272,8 @@ image_get_as_bitmap(struct _cef_image_t* self, cef_alpha_type_t alpha_type, int* pixel_width, int* pixel_height) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -289,6 +314,8 @@ image_get_as_png(struct _cef_image_t* self, int with_transparency, int* pixel_width, int* pixel_height) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -330,6 +357,8 @@ image_get_as_jpeg(struct _cef_image_t* self, int quality, int* pixel_width, int* pixel_height) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -384,6 +413,12 @@ CefImageCppToC::CefImageCppToC() { GetStruct()->get_as_jpeg = image_get_as_jpeg; } +// DESTRUCTOR - Do not edit by hand. + +CefImageCppToC::~CefImageCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/image_cpptoc.h b/libcef_dll/cpptoc/image_cpptoc.h index 5e6a8d4eb..ba470bde2 100644 --- a/libcef_dll/cpptoc/image_cpptoc.h +++ b/libcef_dll/cpptoc/image_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=65d358de7621307bf3babe90b447c45bc4866eac$ +// $hash=be4a097e4a08f7b3101401dadc9d77465dcfc14d$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefImageCppToC : public CefCppToCRefCounted { public: CefImageCppToC(); + virtual ~CefImageCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/jsdialog_callback_cpptoc.cc b/libcef_dll/cpptoc/jsdialog_callback_cpptoc.cc index 3fc737f8a..6577fa07f 100644 --- a/libcef_dll/cpptoc/jsdialog_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/jsdialog_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=31a3da96b7a9021bec0cd6ceda39773afcb6a93f$ +// $hash=8f763ca4fc24cb5d5f4189b685e1b7662b5e7824$ // #include "libcef_dll/cpptoc/jsdialog_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK jsdialog_callback_cont(struct _cef_jsdialog_callback_t* self, int success, const cef_string_t* user_input) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -41,6 +44,12 @@ CefJSDialogCallbackCppToC::CefJSDialogCallbackCppToC() { GetStruct()->cont = jsdialog_callback_cont; } +// DESTRUCTOR - Do not edit by hand. + +CefJSDialogCallbackCppToC::~CefJSDialogCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefJSDialogCallbackCppToC, diff --git a/libcef_dll/cpptoc/jsdialog_callback_cpptoc.h b/libcef_dll/cpptoc/jsdialog_callback_cpptoc.h index 6d4c6773a..9802764e6 100644 --- a/libcef_dll/cpptoc/jsdialog_callback_cpptoc.h +++ b/libcef_dll/cpptoc/jsdialog_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d692048ad6d97b5353c4c019c56be916aedd6126$ +// $hash=5001150c8cfb85270eee1da2f2fa1a0dc57d2728$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefJSDialogCallbackCppToC cef_jsdialog_callback_t> { public: CefJSDialogCallbackCppToC(); + virtual ~CefJSDialogCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/jsdialog_handler_cpptoc.cc b/libcef_dll/cpptoc/jsdialog_handler_cpptoc.cc index ffc2fa155..ce0b73643 100644 --- a/libcef_dll/cpptoc/jsdialog_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/jsdialog_handler_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dcb4befb6077f91893895ff5ab844d1b2572278b$ +// $hash=40e0a9efeebef0613823c2fb04eef6102fc331f0$ // #include "libcef_dll/cpptoc/jsdialog_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -29,6 +30,8 @@ jsdialog_handler_on_jsdialog(struct _cef_jsdialog_handler_t* self, const cef_string_t* default_prompt_text, cef_jsdialog_callback_t* callback, int* suppress_message) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -72,6 +75,8 @@ jsdialog_handler_on_before_unload_dialog(struct _cef_jsdialog_handler_t* self, const cef_string_t* message_text, int is_reload, cef_jsdialog_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -99,6 +104,8 @@ jsdialog_handler_on_before_unload_dialog(struct _cef_jsdialog_handler_t* self, void CEF_CALLBACK jsdialog_handler_on_reset_dialog_state(struct _cef_jsdialog_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +124,8 @@ jsdialog_handler_on_reset_dialog_state(struct _cef_jsdialog_handler_t* self, void CEF_CALLBACK jsdialog_handler_on_dialog_closed(struct _cef_jsdialog_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +153,12 @@ CefJSDialogHandlerCppToC::CefJSDialogHandlerCppToC() { GetStruct()->on_dialog_closed = jsdialog_handler_on_dialog_closed; } +// DESTRUCTOR - Do not edit by hand. + +CefJSDialogHandlerCppToC::~CefJSDialogHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefJSDialogHandlerCppToC, diff --git a/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h b/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h index 159134fad..f5ba22cef 100644 --- a/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h +++ b/libcef_dll/cpptoc/jsdialog_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=88887f8f5df0688904bd938f857a02123c5598f9$ +// $hash=db45a94d5d69b3f6abf9d304d1e87bcfe1f2f6ab$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefJSDialogHandlerCppToC cef_jsdialog_handler_t> { public: CefJSDialogHandlerCppToC(); + virtual ~CefJSDialogHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/keyboard_handler_cpptoc.cc b/libcef_dll/cpptoc/keyboard_handler_cpptoc.cc index 3af390631..6944d5390 100644 --- a/libcef_dll/cpptoc/keyboard_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/keyboard_handler_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b25ff95e39d77a42daa4be355bbfaafc0d0e9e53$ +// $hash=0ce2ec6db857aedcf142792f764fb1720e112ce1$ // #include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -25,6 +26,8 @@ keyboard_handler_on_pre_key_event(struct _cef_keyboard_handler_t* self, const struct _cef_key_event_t* event, cef_event_handle_t os_event, int* is_keyboard_shortcut) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +72,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -105,6 +110,12 @@ CefKeyboardHandlerCppToC::CefKeyboardHandlerCppToC() { GetStruct()->on_key_event = keyboard_handler_on_key_event; } +// DESTRUCTOR - Do not edit by hand. + +CefKeyboardHandlerCppToC::~CefKeyboardHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefKeyboardHandlerCppToC, diff --git a/libcef_dll/cpptoc/keyboard_handler_cpptoc.h b/libcef_dll/cpptoc/keyboard_handler_cpptoc.h index cbe459901..91e1940ef 100644 --- a/libcef_dll/cpptoc/keyboard_handler_cpptoc.h +++ b/libcef_dll/cpptoc/keyboard_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=15f3db777d4fc5a1438f4e4d4b3a65433d778898$ +// $hash=58d79612910145862a792650dd380246fa1ebb02$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefKeyboardHandlerCppToC cef_keyboard_handler_t> { public: CefKeyboardHandlerCppToC(); + virtual ~CefKeyboardHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/life_span_handler_cpptoc.cc b/libcef_dll/cpptoc/life_span_handler_cpptoc.cc index 305571507..4afe6726c 100644 --- a/libcef_dll/cpptoc/life_span_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/life_span_handler_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e63407d8b685d6ec0d5786c18bbe48345165f15f$ +// $hash=a5715373212cdcfb2c42cb520b3e11a6d90a71cf$ // #include "libcef_dll/cpptoc/life_span_handler_cpptoc.h" #include "libcef_dll/cpptoc/client_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/frame_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -34,6 +35,8 @@ int CEF_CALLBACK life_span_handler_on_before_popup( cef_client_t** client, struct _cef_browser_settings_t* settings, int* no_javascript_access) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +127,8 @@ int CEF_CALLBACK life_span_handler_on_before_popup( void CEF_CALLBACK life_span_handler_on_after_created(struct _cef_life_span_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -142,6 +147,8 @@ life_span_handler_on_after_created(struct _cef_life_span_handler_t* self, int CEF_CALLBACK life_span_handler_do_close(struct _cef_life_span_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -163,6 +170,8 @@ life_span_handler_do_close(struct _cef_life_span_handler_t* self, void CEF_CALLBACK life_span_handler_on_before_close(struct _cef_life_span_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -189,6 +198,12 @@ CefLifeSpanHandlerCppToC::CefLifeSpanHandlerCppToC() { GetStruct()->on_before_close = life_span_handler_on_before_close; } +// DESTRUCTOR - Do not edit by hand. + +CefLifeSpanHandlerCppToC::~CefLifeSpanHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefLifeSpanHandlerCppToC, diff --git a/libcef_dll/cpptoc/life_span_handler_cpptoc.h b/libcef_dll/cpptoc/life_span_handler_cpptoc.h index 9f43c63d4..1dae66fad 100644 --- a/libcef_dll/cpptoc/life_span_handler_cpptoc.h +++ b/libcef_dll/cpptoc/life_span_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d6d093665566c71dea6728edf89cc61ff7c5f98d$ +// $hash=f9df484aca7313808ce702bcf13691498934a47e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefLifeSpanHandlerCppToC cef_life_span_handler_t> { public: CefLifeSpanHandlerCppToC(); + virtual ~CefLifeSpanHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/list_value_cpptoc.cc b/libcef_dll/cpptoc/list_value_cpptoc.cc index 398df0507..7f185e83c 100644 --- a/libcef_dll/cpptoc/list_value_cpptoc.cc +++ b/libcef_dll/cpptoc/list_value_cpptoc.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=85599d79d6225f6c7f9d5c1bd6c2ba20820b0f26$ +// $hash=7f04c8da6105e3e52b804b4c029db0e23cf41de1$ // #include "libcef_dll/cpptoc/list_value_cpptoc.h" #include "libcef_dll/cpptoc/binary_value_cpptoc.h" #include "libcef_dll/cpptoc/dictionary_value_cpptoc.h" #include "libcef_dll/cpptoc/value_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_list_value_t* cef_list_value_create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -34,6 +37,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK list_value_is_valid(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -48,6 +53,8 @@ int CEF_CALLBACK list_value_is_valid(struct _cef_list_value_t* self) { } int CEF_CALLBACK list_value_is_owned(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +69,8 @@ int CEF_CALLBACK list_value_is_owned(struct _cef_list_value_t* self) { } int CEF_CALLBACK list_value_is_read_only(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +86,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +108,8 @@ int CEF_CALLBACK list_value_is_same(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self, struct _cef_list_value_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +130,8 @@ int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self, struct _cef_list_value_t* CEF_CALLBACK list_value_copy(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -132,6 +147,8 @@ list_value_copy(struct _cef_list_value_t* self) { int CEF_CALLBACK list_value_set_size(struct _cef_list_value_t* self, size_t size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -146,6 +163,8 @@ int CEF_CALLBACK list_value_set_size(struct _cef_list_value_t* self, } size_t CEF_CALLBACK list_value_get_size(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -160,6 +179,8 @@ size_t CEF_CALLBACK list_value_get_size(struct _cef_list_value_t* self) { } int CEF_CALLBACK list_value_clear(struct _cef_list_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -175,6 +196,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -190,6 +213,8 @@ int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self, cef_value_type_t CEF_CALLBACK list_value_get_type(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -205,6 +230,8 @@ list_value_get_type(struct _cef_list_value_t* self, size_t index) { cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -220,6 +247,8 @@ cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -235,6 +264,8 @@ int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -250,6 +281,8 @@ int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self, double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -265,6 +298,8 @@ double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self, cef_string_userfree_t CEF_CALLBACK list_value_get_string(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -280,6 +315,8 @@ list_value_get_string(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -296,6 +333,8 @@ list_value_get_binary(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -312,6 +351,8 @@ list_value_get_dictionary(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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -329,6 +370,8 @@ list_value_get_list(struct _cef_list_value_t* self, size_t index) { int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self, size_t index, cef_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -349,6 +392,8 @@ int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self, size_t index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -365,6 +410,8 @@ int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self, size_t index, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -382,6 +429,8 @@ int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self, size_t index, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -398,6 +447,8 @@ int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self, size_t index, double value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -414,6 +465,8 @@ int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self, size_t index, const cef_string_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -432,6 +485,8 @@ int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self, size_t index, cef_binary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -453,6 +508,8 @@ int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self, size_t index, cef_dictionary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -474,6 +531,8 @@ int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self, int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self, size_t index, struct _cef_list_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -527,6 +586,12 @@ CefListValueCppToC::CefListValueCppToC() { GetStruct()->set_list = list_value_set_list; } +// DESTRUCTOR - Do not edit by hand. + +CefListValueCppToC::~CefListValueCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/list_value_cpptoc.h b/libcef_dll/cpptoc/list_value_cpptoc.h index e96a953fd..61010b001 100644 --- a/libcef_dll/cpptoc/list_value_cpptoc.h +++ b/libcef_dll/cpptoc/list_value_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4e5a3db05bd12fb79573b3720ecffccc99edc25c$ +// $hash=6f8d6c3662ecb1250541f839dfa983cc3468ae3e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefListValueCppToC : public CefCppToCRefCounted { public: CefListValueCppToC(); + virtual ~CefListValueCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/load_handler_cpptoc.cc b/libcef_dll/cpptoc/load_handler_cpptoc.cc index e76d1bf30..7730f62a5 100644 --- a/libcef_dll/cpptoc/load_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/load_handler_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b907849cab5f5cdad0cde846fefd817cf038b689$ +// $hash=95bad04c5c95d2f881790ffda4c65d28d0baf373$ // #include "libcef_dll/cpptoc/load_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/frame_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -26,6 +27,8 @@ load_handler_on_loading_state_change(struct _cef_load_handler_t* self, int isLoading, int canGoBack, int canGoForward) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -47,6 +50,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +76,8 @@ void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, int httpStatusCode) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +104,8 @@ void CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self, cef_errorcode_t errorCode, const cef_string_t* errorText, const cef_string_t* failedUrl) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -133,6 +142,12 @@ CefLoadHandlerCppToC::CefLoadHandlerCppToC() { GetStruct()->on_load_error = load_handler_on_load_error; } +// DESTRUCTOR - Do not edit by hand. + +CefLoadHandlerCppToC::~CefLoadHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/load_handler_cpptoc.h b/libcef_dll/cpptoc/load_handler_cpptoc.h index 2495bfbc7..0a953b769 100644 --- a/libcef_dll/cpptoc/load_handler_cpptoc.h +++ b/libcef_dll/cpptoc/load_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7fe148a4c53b451455dc998d5beb9ecdd9c5d0e3$ +// $hash=1e6e0c693130e141b71f292682143041aac0e7d9$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefLoadHandlerCppToC : public CefCppToCRefCounted { public: CefLoadHandlerCppToC(); + virtual ~CefLoadHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/menu_model_cpptoc.cc b/libcef_dll/cpptoc/menu_model_cpptoc.cc index a54016fbc..801c4d980 100644 --- a/libcef_dll/cpptoc/menu_model_cpptoc.cc +++ b/libcef_dll/cpptoc/menu_model_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=af455c2ea1993a68bf51a9190cbb255ac2bb04aa$ +// $hash=6aec9fa30221da4367b29f99a1091833c311d3dd$ // #include "libcef_dll/cpptoc/menu_model_cpptoc.h" #include "libcef_dll/ctocpp/menu_model_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_menu_model_t* cef_menu_model_create( struct _cef_menu_model_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -39,6 +42,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK menu_model_is_sub_menu(struct _cef_menu_model_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,8 @@ int CEF_CALLBACK menu_model_is_sub_menu(struct _cef_menu_model_t* self) { } int CEF_CALLBACK menu_model_clear(struct _cef_menu_model_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +74,8 @@ int CEF_CALLBACK menu_model_clear(struct _cef_menu_model_t* self) { } int CEF_CALLBACK menu_model_get_count(struct _cef_menu_model_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -81,6 +90,8 @@ int CEF_CALLBACK menu_model_get_count(struct _cef_menu_model_t* self) { } int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +108,8 @@ int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self) { int CEF_CALLBACK menu_model_add_item(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -118,6 +131,8 @@ int CEF_CALLBACK menu_model_add_item(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_add_check_item(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -140,6 +155,8 @@ int CEF_CALLBACK menu_model_add_radio_item(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +179,8 @@ struct _cef_menu_model_t* CEF_CALLBACK menu_model_add_sub_menu(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -182,6 +201,8 @@ menu_model_add_sub_menu(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_insert_separator_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -199,6 +220,8 @@ int CEF_CALLBACK menu_model_insert_item_at(struct _cef_menu_model_t* self, int index, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -221,6 +244,8 @@ int CEF_CALLBACK menu_model_insert_check_item_at(struct _cef_menu_model_t* self, int index, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -244,6 +269,8 @@ int CEF_CALLBACK menu_model_insert_radio_item_at(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -267,6 +294,8 @@ menu_model_insert_sub_menu_at(struct _cef_menu_model_t* self, int index, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -288,6 +317,8 @@ menu_model_insert_sub_menu_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_remove(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -303,6 +334,8 @@ int CEF_CALLBACK menu_model_remove(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_remove_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -318,6 +351,8 @@ int CEF_CALLBACK menu_model_remove_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_get_index_of(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -333,6 +368,8 @@ int CEF_CALLBACK menu_model_get_index_of(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_get_command_id_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -349,6 +386,8 @@ int CEF_CALLBACK menu_model_get_command_id_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_command_id_at(struct _cef_menu_model_t* self, int index, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -365,6 +404,8 @@ int CEF_CALLBACK menu_model_set_command_id_at(struct _cef_menu_model_t* self, cef_string_userfree_t CEF_CALLBACK menu_model_get_label(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -380,6 +421,8 @@ menu_model_get_label(struct _cef_menu_model_t* self, int command_id) { cef_string_userfree_t CEF_CALLBACK menu_model_get_label_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -396,6 +439,8 @@ menu_model_get_label_at(struct _cef_menu_model_t* self, int index) { int CEF_CALLBACK menu_model_set_label(struct _cef_menu_model_t* self, int command_id, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -417,6 +462,8 @@ int CEF_CALLBACK menu_model_set_label(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_label_at(struct _cef_menu_model_t* self, int index, const cef_string_t* label) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -437,6 +484,8 @@ int CEF_CALLBACK menu_model_set_label_at(struct _cef_menu_model_t* self, cef_menu_item_type_t CEF_CALLBACK menu_model_get_type(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -453,6 +502,8 @@ menu_model_get_type(struct _cef_menu_model_t* self, int command_id) { cef_menu_item_type_t CEF_CALLBACK menu_model_get_type_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -469,6 +520,8 @@ menu_model_get_type_at(struct _cef_menu_model_t* self, int index) { int CEF_CALLBACK menu_model_get_group_id(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -484,6 +537,8 @@ int CEF_CALLBACK menu_model_get_group_id(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_get_group_id_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -500,6 +555,8 @@ int CEF_CALLBACK menu_model_get_group_id_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_group_id(struct _cef_menu_model_t* self, int command_id, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -517,6 +574,8 @@ int CEF_CALLBACK menu_model_set_group_id(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_group_id_at(struct _cef_menu_model_t* self, int index, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -532,6 +591,8 @@ int CEF_CALLBACK menu_model_set_group_id_at(struct _cef_menu_model_t* self, struct _cef_menu_model_t* CEF_CALLBACK menu_model_get_sub_menu(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -548,6 +609,8 @@ menu_model_get_sub_menu(struct _cef_menu_model_t* self, int command_id) { struct _cef_menu_model_t* CEF_CALLBACK menu_model_get_sub_menu_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -564,6 +627,8 @@ menu_model_get_sub_menu_at(struct _cef_menu_model_t* self, int index) { int CEF_CALLBACK menu_model_is_visible(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -579,6 +644,8 @@ int CEF_CALLBACK menu_model_is_visible(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_is_visible_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -595,6 +662,8 @@ int CEF_CALLBACK menu_model_is_visible_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_visible(struct _cef_menu_model_t* self, int command_id, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -612,6 +681,8 @@ int CEF_CALLBACK menu_model_set_visible(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_visible_at(struct _cef_menu_model_t* self, int index, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -628,6 +699,8 @@ int CEF_CALLBACK menu_model_set_visible_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_is_enabled(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -643,6 +716,8 @@ int CEF_CALLBACK menu_model_is_enabled(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_is_enabled_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -659,6 +734,8 @@ int CEF_CALLBACK menu_model_is_enabled_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_enabled(struct _cef_menu_model_t* self, int command_id, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -676,6 +753,8 @@ int CEF_CALLBACK menu_model_set_enabled(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_enabled_at(struct _cef_menu_model_t* self, int index, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -692,6 +771,8 @@ int CEF_CALLBACK menu_model_set_enabled_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_is_checked(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -707,6 +788,8 @@ int CEF_CALLBACK menu_model_is_checked(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_is_checked_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -723,6 +806,8 @@ int CEF_CALLBACK menu_model_is_checked_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_checked(struct _cef_menu_model_t* self, int command_id, int checked) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -740,6 +825,8 @@ int CEF_CALLBACK menu_model_set_checked(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_checked_at(struct _cef_menu_model_t* self, int index, int checked) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -756,6 +843,8 @@ int CEF_CALLBACK menu_model_set_checked_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_has_accelerator(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -771,6 +860,8 @@ int CEF_CALLBACK menu_model_has_accelerator(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_has_accelerator_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -790,6 +881,8 @@ int CEF_CALLBACK menu_model_set_accelerator(struct _cef_menu_model_t* self, int shift_pressed, int ctrl_pressed, int alt_pressed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -811,6 +904,8 @@ int CEF_CALLBACK menu_model_set_accelerator_at(struct _cef_menu_model_t* self, int shift_pressed, int ctrl_pressed, int alt_pressed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -828,6 +923,8 @@ int CEF_CALLBACK menu_model_set_accelerator_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_remove_accelerator(struct _cef_menu_model_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -843,6 +940,8 @@ int CEF_CALLBACK menu_model_remove_accelerator(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_remove_accelerator_at(struct _cef_menu_model_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -862,6 +961,8 @@ int CEF_CALLBACK menu_model_get_accelerator(struct _cef_menu_model_t* self, int* shift_pressed, int* ctrl_pressed, int* alt_pressed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -921,6 +1022,8 @@ int CEF_CALLBACK menu_model_get_accelerator_at(struct _cef_menu_model_t* self, int* shift_pressed, int* ctrl_pressed, int* alt_pressed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -977,6 +1080,8 @@ int CEF_CALLBACK menu_model_set_color(struct _cef_menu_model_t* self, int command_id, cef_menu_color_type_t color_type, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -995,6 +1100,8 @@ int CEF_CALLBACK menu_model_set_color_at(struct _cef_menu_model_t* self, int index, cef_menu_color_type_t color_type, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1013,6 +1120,8 @@ int CEF_CALLBACK menu_model_get_color(struct _cef_menu_model_t* self, int command_id, cef_menu_color_type_t color_type, cef_color_t* color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1042,6 +1151,8 @@ int CEF_CALLBACK menu_model_get_color_at(struct _cef_menu_model_t* self, int index, cef_menu_color_type_t color_type, cef_color_t* color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1070,6 +1181,8 @@ int CEF_CALLBACK menu_model_get_color_at(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_font_list(struct _cef_menu_model_t* self, int command_id, const cef_string_t* font_list) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1088,6 +1201,8 @@ int CEF_CALLBACK menu_model_set_font_list(struct _cef_menu_model_t* self, int CEF_CALLBACK menu_model_set_font_list_at(struct _cef_menu_model_t* self, int index, const cef_string_t* font_list) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1166,6 +1281,12 @@ CefMenuModelCppToC::CefMenuModelCppToC() { GetStruct()->set_font_list_at = menu_model_set_font_list_at; } +// DESTRUCTOR - Do not edit by hand. + +CefMenuModelCppToC::~CefMenuModelCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/menu_model_cpptoc.h b/libcef_dll/cpptoc/menu_model_cpptoc.h index 11ad244fd..51fa90b11 100644 --- a/libcef_dll/cpptoc/menu_model_cpptoc.h +++ b/libcef_dll/cpptoc/menu_model_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f391ec2d2223565671f949504580a0bfba7dc4df$ +// $hash=da4c3ebdb697ea98d11d5bd2744641cb94818711$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefMenuModelCppToC : public CefCppToCRefCounted { public: CefMenuModelCppToC(); + virtual ~CefMenuModelCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/menu_model_delegate_cpptoc.cc b/libcef_dll/cpptoc/menu_model_delegate_cpptoc.cc index f75ad946f..d5584a042 100644 --- a/libcef_dll/cpptoc/menu_model_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/menu_model_delegate_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d724378fed459f63276c4177c77b5de98ad33178$ +// $hash=442e82aaa1bff33b07278869c3bee2354ce9e8f1$ // #include "libcef_dll/cpptoc/menu_model_delegate_cpptoc.h" #include "libcef_dll/ctocpp/menu_model_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +74,8 @@ void CEF_CALLBACK menu_model_delegate_unhandled_open_submenu( struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model, int is_rtl) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -88,6 +95,8 @@ void CEF_CALLBACK menu_model_delegate_unhandled_close_submenu( struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model, int is_rtl) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -106,6 +115,8 @@ void CEF_CALLBACK menu_model_delegate_unhandled_close_submenu( void CEF_CALLBACK menu_model_delegate_menu_will_show(struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +135,8 @@ menu_model_delegate_menu_will_show(struct _cef_menu_model_delegate_t* self, void CEF_CALLBACK menu_model_delegate_menu_closed(struct _cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -143,6 +156,8 @@ 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) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -184,6 +199,12 @@ CefMenuModelDelegateCppToC::CefMenuModelDelegateCppToC() { GetStruct()->format_label = menu_model_delegate_format_label; } +// DESTRUCTOR - Do not edit by hand. + +CefMenuModelDelegateCppToC::~CefMenuModelDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefMenuModelDelegateCppToC, diff --git a/libcef_dll/cpptoc/menu_model_delegate_cpptoc.h b/libcef_dll/cpptoc/menu_model_delegate_cpptoc.h index a029a4708..eb65618d5 100644 --- a/libcef_dll/cpptoc/menu_model_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/menu_model_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ad375d5c311806aa03a3ba6704f5da15d41c814a$ +// $hash=68e89d0007b514afff57809cd615f16d36beb952$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_DELEGATE_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefMenuModelDelegateCppToC cef_menu_model_delegate_t> { public: CefMenuModelDelegateCppToC(); + virtual ~CefMenuModelDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_MENU_MODEL_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/navigation_entry_cpptoc.cc b/libcef_dll/cpptoc/navigation_entry_cpptoc.cc index b3e4ac54f..7b96de30e 100644 --- a/libcef_dll/cpptoc/navigation_entry_cpptoc.cc +++ b/libcef_dll/cpptoc/navigation_entry_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=184c2b8b8a3e7a33d4f2f8682659d07b9778cb61$ +// $hash=d8f94042ef236d6db05e5d1b7ea680c22a5faf0e$ // #include "libcef_dll/cpptoc/navigation_entry_cpptoc.h" #include "libcef_dll/cpptoc/sslstatus_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { int CEF_CALLBACK navigation_entry_is_valid(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ navigation_entry_is_valid(struct _cef_navigation_entry_t* self) { cef_string_userfree_t CEF_CALLBACK navigation_entry_get_url(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ navigation_entry_get_url(struct _cef_navigation_entry_t* self) { cef_string_userfree_t CEF_CALLBACK navigation_entry_get_display_url(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -66,6 +73,8 @@ navigation_entry_get_display_url(struct _cef_navigation_entry_t* self) { cef_string_userfree_t CEF_CALLBACK navigation_entry_get_original_url(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -81,6 +90,8 @@ navigation_entry_get_original_url(struct _cef_navigation_entry_t* self) { cef_string_userfree_t CEF_CALLBACK navigation_entry_get_title(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -96,6 +107,8 @@ navigation_entry_get_title(struct _cef_navigation_entry_t* self) { cef_transition_type_t CEF_CALLBACK navigation_entry_get_transition_type(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -112,6 +125,8 @@ navigation_entry_get_transition_type(struct _cef_navigation_entry_t* self) { int CEF_CALLBACK navigation_entry_has_post_data(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +142,8 @@ navigation_entry_has_post_data(struct _cef_navigation_entry_t* self) { cef_time_t CEF_CALLBACK navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -142,6 +159,8 @@ navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) { int CEF_CALLBACK navigation_entry_get_http_status_code(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -157,6 +176,8 @@ navigation_entry_get_http_status_code(struct _cef_navigation_entry_t* self) { struct _cef_sslstatus_t* CEF_CALLBACK navigation_entry_get_sslstatus(struct _cef_navigation_entry_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -188,6 +209,12 @@ CefNavigationEntryCppToC::CefNavigationEntryCppToC() { GetStruct()->get_sslstatus = navigation_entry_get_sslstatus; } +// DESTRUCTOR - Do not edit by hand. + +CefNavigationEntryCppToC::~CefNavigationEntryCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefNavigationEntryCppToC, diff --git a/libcef_dll/cpptoc/navigation_entry_cpptoc.h b/libcef_dll/cpptoc/navigation_entry_cpptoc.h index c9c2377f2..86fc49da4 100644 --- a/libcef_dll/cpptoc/navigation_entry_cpptoc.h +++ b/libcef_dll/cpptoc/navigation_entry_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=64d606fe81c821bbbdf9d149e807172aeb45a1ec$ +// $hash=e771cbc54e0080ff4da0f913641a499ede33d39c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefNavigationEntryCppToC cef_navigation_entry_t> { public: CefNavigationEntryCppToC(); + virtual ~CefNavigationEntryCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.cc b/libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.cc index 04d77c7ec..32632b980 100644 --- a/libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.cc +++ b/libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ec3c7ec133dc954dc3f61081f6a765b375fcc9bf$ +// $hash=64deb213617efb32c6c092dc6cca900f67322b68$ // #include "libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.h" #include "libcef_dll/ctocpp/navigation_entry_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -25,6 +26,8 @@ navigation_entry_visitor_visit(struct _cef_navigation_entry_visitor_t* self, int current, int index, int total) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +55,12 @@ CefNavigationEntryVisitorCppToC::CefNavigationEntryVisitorCppToC() { GetStruct()->visit = navigation_entry_visitor_visit; } +// DESTRUCTOR - Do not edit by hand. + +CefNavigationEntryVisitorCppToC::~CefNavigationEntryVisitorCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefNavigationEntryVisitorCppToC(); + virtual ~CefNavigationEntryVisitorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_NAVIGATION_ENTRY_VISITOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/pdf_print_callback_cpptoc.cc b/libcef_dll/cpptoc/pdf_print_callback_cpptoc.cc index 5e888475c..a45650bfd 100644 --- a/libcef_dll/cpptoc/pdf_print_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/pdf_print_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7314e990762cfec272aa0cb3226ad7a053c5a89d$ +// $hash=dfc3c17cbe81e73f1f9fea2bde9bb863e7c7edb6$ // #include "libcef_dll/cpptoc/pdf_print_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ void CEF_CALLBACK pdf_print_callback_on_pdf_print_finished(struct _cef_pdf_print_callback_t* self, const cef_string_t* path, int ok) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,12 @@ CefPdfPrintCallbackCppToC::CefPdfPrintCallbackCppToC() { GetStruct()->on_pdf_print_finished = pdf_print_callback_on_pdf_print_finished; } +// DESTRUCTOR - Do not edit by hand. + +CefPdfPrintCallbackCppToC::~CefPdfPrintCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPdfPrintCallbackCppToC, diff --git a/libcef_dll/cpptoc/pdf_print_callback_cpptoc.h b/libcef_dll/cpptoc/pdf_print_callback_cpptoc.h index 1ae257a3c..839ff13fe 100644 --- a/libcef_dll/cpptoc/pdf_print_callback_cpptoc.h +++ b/libcef_dll/cpptoc/pdf_print_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e13e8b205c875f6b82e96d84c2502e7f73c61140$ +// $hash=adc26e22596ed1cd45c88bfa2a7c59b2ddf8e7fe$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PDF_PRINT_CALLBACK_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefPdfPrintCallbackCppToC cef_pdf_print_callback_t> { public: CefPdfPrintCallbackCppToC(); + virtual ~CefPdfPrintCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PDF_PRINT_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/post_data_cpptoc.cc b/libcef_dll/cpptoc/post_data_cpptoc.cc index 857a4d353..5aff8edc4 100644 --- a/libcef_dll/cpptoc/post_data_cpptoc.cc +++ b/libcef_dll/cpptoc/post_data_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0304b9dba958be2bc7b35ed0396c6ded437898f2$ +// $hash=d16df738599a1e71e96f4d3cc1afaa206b666d7b$ // #include "libcef_dll/cpptoc/post_data_cpptoc.h" @@ -178,6 +178,10 @@ CefPostDataCppToC::CefPostDataCppToC() { GetStruct()->remove_elements = post_data_remove_elements; } +// DESTRUCTOR - Do not edit by hand. + +CefPostDataCppToC::~CefPostDataCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/post_data_cpptoc.h b/libcef_dll/cpptoc/post_data_cpptoc.h index 3efd6fad6..f8c3da783 100644 --- a/libcef_dll/cpptoc/post_data_cpptoc.h +++ b/libcef_dll/cpptoc/post_data_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=66c36ea44bc2b8c14f11d6f8641acd87f1cca7c2$ +// $hash=64428da94522d39fa83c604866c9162a70456fbf$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_POST_DATA_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefPostDataCppToC : public CefCppToCRefCounted { public: CefPostDataCppToC(); + virtual ~CefPostDataCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_POST_DATA_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/post_data_element_cpptoc.cc b/libcef_dll/cpptoc/post_data_element_cpptoc.cc index 108de1bb3..840959c50 100644 --- a/libcef_dll/cpptoc/post_data_element_cpptoc.cc +++ b/libcef_dll/cpptoc/post_data_element_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3d19f31088ea54b780a85fb2edca690600879aaa$ +// $hash=e18fcb63ca6b094867221ea99b7a3efed1433200$ // #include "libcef_dll/cpptoc/post_data_element_cpptoc.h" @@ -174,6 +174,10 @@ CefPostDataElementCppToC::CefPostDataElementCppToC() { GetStruct()->get_bytes = post_data_element_get_bytes; } +// DESTRUCTOR - Do not edit by hand. + +CefPostDataElementCppToC::~CefPostDataElementCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefPostDataElementCppToC, diff --git a/libcef_dll/cpptoc/post_data_element_cpptoc.h b/libcef_dll/cpptoc/post_data_element_cpptoc.h index e469ddd2f..a2f728c4e 100644 --- a/libcef_dll/cpptoc/post_data_element_cpptoc.h +++ b/libcef_dll/cpptoc/post_data_element_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c4f45d6ab409176c8ef5c395502607998b5e0d2f$ +// $hash=93064da792b47d7eca6f6b8fba73baa07fbe16ab$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_POST_DATA_ELEMENT_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefPostDataElementCppToC cef_post_data_element_t> { public: CefPostDataElementCppToC(); + virtual ~CefPostDataElementCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_POST_DATA_ELEMENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/print_dialog_callback_cpptoc.cc b/libcef_dll/cpptoc/print_dialog_callback_cpptoc.cc index 1f8de43ea..b9143b07b 100644 --- a/libcef_dll/cpptoc/print_dialog_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/print_dialog_callback_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c876f88d1d07661bd2578c0b4f54f923f2215773$ +// $hash=ff7b4fdefa520e80c9a84e165e23e916409fb441$ // #include "libcef_dll/cpptoc/print_dialog_callback_cpptoc.h" #include "libcef_dll/cpptoc/print_settings_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { void CEF_CALLBACK print_dialog_callback_cont(struct _cef_print_dialog_callback_t* self, struct _cef_print_settings_t* settings) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,8 @@ print_dialog_callback_cont(struct _cef_print_dialog_callback_t* self, void CEF_CALLBACK print_dialog_callback_cancel(struct _cef_print_dialog_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -58,6 +63,12 @@ CefPrintDialogCallbackCppToC::CefPrintDialogCallbackCppToC() { GetStruct()->cancel = print_dialog_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefPrintDialogCallbackCppToC::~CefPrintDialogCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPrintDialogCallbackCppToC, diff --git a/libcef_dll/cpptoc/print_dialog_callback_cpptoc.h b/libcef_dll/cpptoc/print_dialog_callback_cpptoc.h index 5fdf95b38..e5955ab5c 100644 --- a/libcef_dll/cpptoc/print_dialog_callback_cpptoc.h +++ b/libcef_dll/cpptoc/print_dialog_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f8159bd9c97f68a45faf3c797b4441d6344357ca$ +// $hash=f4f8c6ede01fbe93a60b731e26ce3c727e7df6af$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_DIALOG_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefPrintDialogCallbackCppToC cef_print_dialog_callback_t> { public: CefPrintDialogCallbackCppToC(); + virtual ~CefPrintDialogCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_DIALOG_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/print_handler_cpptoc.cc b/libcef_dll/cpptoc/print_handler_cpptoc.cc index 101ff6b7d..7e9622eb9 100644 --- a/libcef_dll/cpptoc/print_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/print_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=684a87e946ab4d8739be2ce0152b2cfe68f42efc$ +// $hash=9e244dc913b52c3b7691da16788ee40014b922b9$ // #include "libcef_dll/cpptoc/print_handler_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/print_dialog_callback_ctocpp.h" #include "libcef_dll/ctocpp/print_job_callback_ctocpp.h" #include "libcef_dll/ctocpp/print_settings_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -25,6 +26,8 @@ namespace { void CEF_CALLBACK print_handler_on_print_start(struct _cef_print_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,8 @@ print_handler_on_print_settings(struct _cef_print_handler_t* self, cef_browser_t* browser, struct _cef_print_settings_t* settings, int get_defaults) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -70,6 +75,8 @@ print_handler_on_print_dialog(struct _cef_print_handler_t* self, cef_browser_t* browser, int has_selection, cef_print_dialog_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -99,6 +106,8 @@ print_handler_on_print_job(struct _cef_print_handler_t* self, const cef_string_t* document_name, const cef_string_t* pdf_file_path, cef_print_job_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -133,6 +142,8 @@ print_handler_on_print_job(struct _cef_print_handler_t* self, void CEF_CALLBACK print_handler_on_print_reset(struct _cef_print_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +162,8 @@ print_handler_on_print_reset(struct _cef_print_handler_t* self, cef_size_t CEF_CALLBACK print_handler_get_pdf_paper_size(struct _cef_print_handler_t* self, int device_units_per_inch) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +191,12 @@ CefPrintHandlerCppToC::CefPrintHandlerCppToC() { GetStruct()->get_pdf_paper_size = print_handler_get_pdf_paper_size; } +// DESTRUCTOR - Do not edit by hand. + +CefPrintHandlerCppToC::~CefPrintHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPrintHandlerCppToC, diff --git a/libcef_dll/cpptoc/print_handler_cpptoc.h b/libcef_dll/cpptoc/print_handler_cpptoc.h index 594be983f..48f8f2baf 100644 --- a/libcef_dll/cpptoc/print_handler_cpptoc.h +++ b/libcef_dll/cpptoc/print_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5570a3bae3b8b0dc9ead66a6ba86c76f11fe6872$ +// $hash=bddd5a95a7868c9bf8bc45e53a2bb75aa1890fc0$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefPrintHandlerCppToC : public CefCppToCRefCounted { public: CefPrintHandlerCppToC(); + virtual ~CefPrintHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/print_job_callback_cpptoc.cc b/libcef_dll/cpptoc/print_job_callback_cpptoc.cc index 7f922fe4a..155c46321 100644 --- a/libcef_dll/cpptoc/print_job_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/print_job_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=55f242d9e8ad072130b55f2f0b308934a3a23284$ +// $hash=d5483aff907aea5974de15ba3d429186b774888f$ // #include "libcef_dll/cpptoc/print_job_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { void CEF_CALLBACK print_job_callback_cont(struct _cef_print_job_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,12 @@ CefPrintJobCallbackCppToC::CefPrintJobCallbackCppToC() { GetStruct()->cont = print_job_callback_cont; } +// DESTRUCTOR - Do not edit by hand. + +CefPrintJobCallbackCppToC::~CefPrintJobCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPrintJobCallbackCppToC, diff --git a/libcef_dll/cpptoc/print_job_callback_cpptoc.h b/libcef_dll/cpptoc/print_job_callback_cpptoc.h index a68921eb4..558870b9d 100644 --- a/libcef_dll/cpptoc/print_job_callback_cpptoc.h +++ b/libcef_dll/cpptoc/print_job_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d5da5897b0f89a9869318ccf5521d553dd17fc41$ +// $hash=ac2ba14db69579e2c24938d52bcf37da5d228b4c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_JOB_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefPrintJobCallbackCppToC cef_print_job_callback_t> { public: CefPrintJobCallbackCppToC(); + virtual ~CefPrintJobCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_JOB_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/print_settings_cpptoc.cc b/libcef_dll/cpptoc/print_settings_cpptoc.cc index 752346b40..684492f94 100644 --- a/libcef_dll/cpptoc/print_settings_cpptoc.cc +++ b/libcef_dll/cpptoc/print_settings_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d0e9122928fa4102d4b5261110fe65fba82f55c3$ +// $hash=1bd7ab29ead56e861f94743474f8bde327c3719e$ // #include "libcef_dll/cpptoc/print_settings_cpptoc.h" #include +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_print_settings_t* cef_print_settings_create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK print_settings_is_valid(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -47,6 +52,8 @@ int CEF_CALLBACK print_settings_is_valid(struct _cef_print_settings_t* self) { int CEF_CALLBACK print_settings_is_read_only(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +69,8 @@ print_settings_is_read_only(struct _cef_print_settings_t* self) { struct _cef_print_settings_t* CEF_CALLBACK print_settings_copy(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -79,6 +88,8 @@ print_settings_copy(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_orientation(struct _cef_print_settings_t* self, int landscape) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -91,6 +102,8 @@ print_settings_set_orientation(struct _cef_print_settings_t* self, int CEF_CALLBACK print_settings_is_landscape(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -109,6 +122,8 @@ void CEF_CALLBACK print_settings_set_printer_printable_area( const cef_size_t* physical_size_device_units, const cef_rect_t* printable_area_device_units, int landscape_needs_flip) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -139,6 +154,8 @@ void CEF_CALLBACK print_settings_set_printer_printable_area( void CEF_CALLBACK print_settings_set_device_name(struct _cef_print_settings_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -152,6 +169,8 @@ print_settings_set_device_name(struct _cef_print_settings_t* self, cef_string_userfree_t CEF_CALLBACK print_settings_get_device_name(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -167,6 +186,8 @@ print_settings_get_device_name(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_dpi(struct _cef_print_settings_t* self, int dpi) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +199,8 @@ void CEF_CALLBACK print_settings_set_dpi(struct _cef_print_settings_t* self, } int CEF_CALLBACK print_settings_get_dpi(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -195,6 +218,8 @@ void CEF_CALLBACK print_settings_set_page_ranges(struct _cef_print_settings_t* self, size_t rangesCount, cef_range_t const* ranges) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -220,6 +245,8 @@ print_settings_set_page_ranges(struct _cef_print_settings_t* self, size_t CEF_CALLBACK print_settings_get_page_ranges_count(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -237,6 +264,8 @@ void CEF_CALLBACK print_settings_get_page_ranges(struct _cef_print_settings_t* self, size_t* rangesCount, cef_range_t* ranges) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -272,6 +301,8 @@ print_settings_get_page_ranges(struct _cef_print_settings_t* self, void CEF_CALLBACK print_settings_set_selection_only(struct _cef_print_settings_t* self, int selection_only) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -285,6 +316,8 @@ print_settings_set_selection_only(struct _cef_print_settings_t* self, int CEF_CALLBACK print_settings_is_selection_only(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -300,6 +333,8 @@ print_settings_is_selection_only(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_collate(struct _cef_print_settings_t* self, int collate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -312,6 +347,8 @@ void CEF_CALLBACK print_settings_set_collate(struct _cef_print_settings_t* self, int CEF_CALLBACK print_settings_will_collate(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -328,6 +365,8 @@ print_settings_will_collate(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_color_model(struct _cef_print_settings_t* self, cef_color_model_t model) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -340,6 +379,8 @@ print_settings_set_color_model(struct _cef_print_settings_t* self, cef_color_model_t CEF_CALLBACK print_settings_get_color_model(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -356,6 +397,8 @@ print_settings_get_color_model(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_copies(struct _cef_print_settings_t* self, int copies) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -367,6 +410,8 @@ void CEF_CALLBACK print_settings_set_copies(struct _cef_print_settings_t* self, } int CEF_CALLBACK print_settings_get_copies(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -383,6 +428,8 @@ int CEF_CALLBACK print_settings_get_copies(struct _cef_print_settings_t* self) { void CEF_CALLBACK print_settings_set_duplex_mode(struct _cef_print_settings_t* self, cef_duplex_mode_t mode) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -395,6 +442,8 @@ print_settings_set_duplex_mode(struct _cef_print_settings_t* self, cef_duplex_mode_t CEF_CALLBACK print_settings_get_duplex_mode(struct _cef_print_settings_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -440,6 +489,12 @@ CefPrintSettingsCppToC::CefPrintSettingsCppToC() { GetStruct()->get_duplex_mode = print_settings_get_duplex_mode; } +// DESTRUCTOR - Do not edit by hand. + +CefPrintSettingsCppToC::~CefPrintSettingsCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPrintSettingsCppToC, diff --git a/libcef_dll/cpptoc/print_settings_cpptoc.h b/libcef_dll/cpptoc/print_settings_cpptoc.h index 6f6f045d3..b1753985d 100644 --- a/libcef_dll/cpptoc/print_settings_cpptoc.h +++ b/libcef_dll/cpptoc/print_settings_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3936d687fe94cf74e15412e27898b78382b993f7$ +// $hash=7b6191ab593545568b0791869b7818e0a7ad5bf1$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_SETTINGS_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefPrintSettingsCppToC cef_print_settings_t> { public: CefPrintSettingsCppToC(); + virtual ~CefPrintSettingsCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_SETTINGS_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/process_message_cpptoc.cc b/libcef_dll/cpptoc/process_message_cpptoc.cc index 22f70f1cc..6ff1bbec3 100644 --- a/libcef_dll/cpptoc/process_message_cpptoc.cc +++ b/libcef_dll/cpptoc/process_message_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cb3f8d55a7fdb927a54ec7d013788e10acf0f6ec$ +// $hash=220f7b5743c011145e526be76882461ff64d387b$ // #include "libcef_dll/cpptoc/process_message_cpptoc.h" #include "libcef_dll/cpptoc/list_value_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_process_message_t* cef_process_message_create( const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: name; type: string_byref_const @@ -39,6 +42,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK process_message_is_valid(struct _cef_process_message_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -54,6 +59,8 @@ int CEF_CALLBACK process_message_is_valid(struct _cef_process_message_t* self) { int CEF_CALLBACK process_message_is_read_only(struct _cef_process_message_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +76,8 @@ process_message_is_read_only(struct _cef_process_message_t* self) { struct _cef_process_message_t* CEF_CALLBACK process_message_copy(struct _cef_process_message_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -85,6 +94,8 @@ process_message_copy(struct _cef_process_message_t* self) { cef_string_userfree_t CEF_CALLBACK process_message_get_name(struct _cef_process_message_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -100,6 +111,8 @@ process_message_get_name(struct _cef_process_message_t* self) { struct _cef_list_value_t* CEF_CALLBACK process_message_get_argument_list(struct _cef_process_message_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -126,6 +139,12 @@ CefProcessMessageCppToC::CefProcessMessageCppToC() { GetStruct()->get_argument_list = process_message_get_argument_list; } +// DESTRUCTOR - Do not edit by hand. + +CefProcessMessageCppToC::~CefProcessMessageCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefProcessMessageCppToC, diff --git a/libcef_dll/cpptoc/process_message_cpptoc.h b/libcef_dll/cpptoc/process_message_cpptoc.h index 6507376e3..838b25628 100644 --- a/libcef_dll/cpptoc/process_message_cpptoc.h +++ b/libcef_dll/cpptoc/process_message_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bf726374d47cfe7b9c46624c1f7b5cb87d7277fd$ +// $hash=8d417f1b1c6bff70d8c55aeb02fd4cf03112e5bb$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_PROCESS_MESSAGE_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefProcessMessageCppToC cef_process_message_t> { public: CefProcessMessageCppToC(); + virtual ~CefProcessMessageCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_PROCESS_MESSAGE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/read_handler_cpptoc.cc b/libcef_dll/cpptoc/read_handler_cpptoc.cc index 5646489ff..2d2415348 100644 --- a/libcef_dll/cpptoc/read_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/read_handler_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=65071f8e223a9eb49fb5c3edb45124d18e91cc99$ +// $hash=76bc51ea624d90076f9be833ac96a4f84a46fd68$ // #include "libcef_dll/cpptoc/read_handler_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ size_t CEF_CALLBACK read_handler_read(struct _cef_read_handler_t* self, void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,8 @@ size_t CEF_CALLBACK read_handler_read(struct _cef_read_handler_t* self, int CEF_CALLBACK read_handler_seek(struct _cef_read_handler_t* self, int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ int CEF_CALLBACK read_handler_seek(struct _cef_read_handler_t* self, } int64 CEF_CALLBACK read_handler_tell(struct _cef_read_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -70,6 +77,8 @@ int64 CEF_CALLBACK read_handler_tell(struct _cef_read_handler_t* self) { } int CEF_CALLBACK read_handler_eof(struct _cef_read_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -84,6 +93,8 @@ int CEF_CALLBACK read_handler_eof(struct _cef_read_handler_t* self) { } int CEF_CALLBACK read_handler_may_block(struct _cef_read_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -109,6 +120,12 @@ CefReadHandlerCppToC::CefReadHandlerCppToC() { GetStruct()->may_block = read_handler_may_block; } +// DESTRUCTOR - Do not edit by hand. + +CefReadHandlerCppToC::~CefReadHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/read_handler_cpptoc.h b/libcef_dll/cpptoc/read_handler_cpptoc.h index 42ab1827d..f6536eb3b 100644 --- a/libcef_dll/cpptoc/read_handler_cpptoc.h +++ b/libcef_dll/cpptoc/read_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1a4e442e0a04c23ce3504c170ecae2e69434c4a4$ +// $hash=1d31054a3c331c1d4f1c774954a29da2040188b7$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefReadHandlerCppToC : public CefCppToCRefCounted { public: CefReadHandlerCppToC(); + virtual ~CefReadHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/register_cdm_callback_cpptoc.cc b/libcef_dll/cpptoc/register_cdm_callback_cpptoc.cc index 4c9571105..b410b04e9 100644 --- a/libcef_dll/cpptoc/register_cdm_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/register_cdm_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9e3155c80cd3a5d97432d328650896af3c93a896$ +// $hash=f37a0feaf54c6943ef0e397982f9d047ac40574d$ // #include "libcef_dll/cpptoc/register_cdm_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ void CEF_CALLBACK register_cdm_callback_on_cdm_registration_complete( struct _cef_register_cdm_callback_t* self, cef_cdm_registration_error_t result, const cef_string_t* error_message) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,12 @@ CefRegisterCdmCallbackCppToC::CefRegisterCdmCallbackCppToC() { register_cdm_callback_on_cdm_registration_complete; } +// DESTRUCTOR - Do not edit by hand. + +CefRegisterCdmCallbackCppToC::~CefRegisterCdmCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefRegisterCdmCallbackCppToC, diff --git a/libcef_dll/cpptoc/register_cdm_callback_cpptoc.h b/libcef_dll/cpptoc/register_cdm_callback_cpptoc.h index 4ea842fcf..d76821f49 100644 --- a/libcef_dll/cpptoc/register_cdm_callback_cpptoc.h +++ b/libcef_dll/cpptoc/register_cdm_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=263c6430813c172218873a3ec1e29bb1a11eeb35$ +// $hash=6be76ea998e3de0a650a4e3d03a9f7c84bf4a913$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REGISTER_CDM_CALLBACK_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefRegisterCdmCallbackCppToC cef_register_cdm_callback_t> { public: CefRegisterCdmCallbackCppToC(); + virtual ~CefRegisterCdmCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REGISTER_CDM_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/render_handler_cpptoc.cc b/libcef_dll/cpptoc/render_handler_cpptoc.cc index b569d100d..c38b6b577 100644 --- a/libcef_dll/cpptoc/render_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/render_handler_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=adb6d28a466b3de0fc13958c55ef0045eeeb9b89$ +// $hash=53ba7fafebb1f43c5c91b1a8a53fa0c7fab0a8ff$ // #include "libcef_dll/cpptoc/render_handler_cpptoc.h" #include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h" #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/drag_data_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { cef_accessibility_handler_t* CEF_CALLBACK render_handler_get_accessibility_handler(struct _cef_render_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -41,6 +44,8 @@ int CEF_CALLBACK render_handler_get_root_screen_rect(struct _cef_render_handler_t* self, cef_browser_t* browser, cef_rect_t* rect) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -74,6 +79,8 @@ void CEF_CALLBACK render_handler_get_view_rect(struct _cef_render_handler_t* self, cef_browser_t* browser, cef_rect_t* rect) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -107,6 +114,8 @@ render_handler_get_screen_point(struct _cef_render_handler_t* self, int viewY, int* screenX, int* screenY) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -149,6 +158,8 @@ int CEF_CALLBACK render_handler_get_screen_info(struct _cef_render_handler_t* self, cef_browser_t* browser, struct _cef_screen_info_t* screen_info) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -184,6 +195,8 @@ void CEF_CALLBACK render_handler_on_popup_show(struct _cef_render_handler_t* self, cef_browser_t* browser, int show) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -203,6 +216,8 @@ void CEF_CALLBACK render_handler_on_popup_size(struct _cef_render_handler_t* self, cef_browser_t* browser, const cef_rect_t* rect) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -233,6 +248,8 @@ void CEF_CALLBACK render_handler_on_paint(struct _cef_render_handler_t* self, const void* buffer, int width, int height) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -273,6 +290,8 @@ render_handler_on_accelerated_paint(struct _cef_render_handler_t* self, size_t dirtyRectsCount, cef_rect_t const* dirtyRects, void* shared_handle) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -311,6 +330,8 @@ void CEF_CALLBACK render_handler_on_cursor_change( cef_cursor_handle_t cursor, cef_cursor_type_t type, const struct _cef_cursor_info_t* custom_cursor_info) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -342,6 +363,8 @@ render_handler_start_dragging(struct _cef_render_handler_t* self, cef_drag_operations_mask_t allowed_ops, int x, int y) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -369,6 +392,8 @@ void CEF_CALLBACK render_handler_update_drag_cursor(struct _cef_render_handler_t* self, cef_browser_t* browser, cef_drag_operations_mask_t operation) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -389,6 +414,8 @@ render_handler_on_scroll_offset_changed(struct _cef_render_handler_t* self, cef_browser_t* browser, double x, double y) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -410,6 +437,8 @@ void CEF_CALLBACK render_handler_on_ime_composition_range_changed( const cef_range_t* selected_range, size_t character_boundsCount, cef_rect_t const* character_bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -449,6 +478,8 @@ render_handler_on_text_selection_changed(struct _cef_render_handler_t* self, cef_browser_t* browser, const cef_string_t* selected_text, const cef_range_t* selected_range) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -495,6 +526,12 @@ CefRenderHandlerCppToC::CefRenderHandlerCppToC() { render_handler_on_text_selection_changed; } +// DESTRUCTOR - Do not edit by hand. + +CefRenderHandlerCppToC::~CefRenderHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefRenderHandlerCppToC, diff --git a/libcef_dll/cpptoc/render_handler_cpptoc.h b/libcef_dll/cpptoc/render_handler_cpptoc.h index 25ea405f6..c4376c585 100644 --- a/libcef_dll/cpptoc/render_handler_cpptoc.h +++ b/libcef_dll/cpptoc/render_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d89973f520a89c99ea5b3b076815e2dd5bb1024b$ +// $hash=ae370bd742a5b7781d50fb63a3364fd9e5c8991a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefRenderHandlerCppToC cef_render_handler_t> { public: CefRenderHandlerCppToC(); + virtual ~CefRenderHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/render_process_handler_cpptoc.cc b/libcef_dll/cpptoc/render_process_handler_cpptoc.cc index 5fd56e3f4..3825a0d73 100644 --- a/libcef_dll/cpptoc/render_process_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/render_process_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e255ea7161c6d8ebb8c6c9011d2519b27e338a2e$ +// $hash=8aff66256b6d967cecddcd730f72f1e6e25eee4c$ // #include "libcef_dll/cpptoc/render_process_handler_cpptoc.h" @@ -281,6 +281,10 @@ CefRenderProcessHandlerCppToC::CefRenderProcessHandlerCppToC() { render_process_handler_on_process_message_received; } +// DESTRUCTOR - Do not edit by hand. + +CefRenderProcessHandlerCppToC::~CefRenderProcessHandlerCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefRenderProcessHandlerCppToC, diff --git a/libcef_dll/cpptoc/render_process_handler_cpptoc.h b/libcef_dll/cpptoc/render_process_handler_cpptoc.h index e5f963e63..a1196028f 100644 --- a/libcef_dll/cpptoc/render_process_handler_cpptoc.h +++ b/libcef_dll/cpptoc/render_process_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8e5e66da043e5d17c0e8de7b74e5fba3c106d367$ +// $hash=c1339e8481d3e1d9823b19580f84082a3e307977$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefRenderProcessHandlerCppToC cef_render_process_handler_t> { public: CefRenderProcessHandlerCppToC(); + virtual ~CefRenderProcessHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_PROCESS_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/request_callback_cpptoc.cc b/libcef_dll/cpptoc/request_callback_cpptoc.cc index 317a4d348..3cdd7857f 100644 --- a/libcef_dll/cpptoc/request_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/request_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=450fa90f50f9eade0ee9550ef36346e7930da5f4$ +// $hash=b6c4b33b0938837fc126370db7b8219c5627dad0$ // #include "libcef_dll/cpptoc/request_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { void CEF_CALLBACK request_callback_cont(struct _cef_request_callback_t* self, int allow) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -32,6 +35,8 @@ void CEF_CALLBACK request_callback_cont(struct _cef_request_callback_t* self, void CEF_CALLBACK request_callback_cancel(struct _cef_request_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,12 @@ CefRequestCallbackCppToC::CefRequestCallbackCppToC() { GetStruct()->cancel = request_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefRequestCallbackCppToC::~CefRequestCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefRequestCallbackCppToC, diff --git a/libcef_dll/cpptoc/request_callback_cpptoc.h b/libcef_dll/cpptoc/request_callback_cpptoc.h index 83271fa3a..82c251e7f 100644 --- a/libcef_dll/cpptoc/request_callback_cpptoc.h +++ b/libcef_dll/cpptoc/request_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=960798f18beb873e0e734bd7d39bdb60036a7f63$ +// $hash=95fec7879b0944afdcf9cd04b3b5d5bab1b9c134$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefRequestCallbackCppToC cef_request_callback_t> { public: CefRequestCallbackCppToC(); + virtual ~CefRequestCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/request_context_cpptoc.cc b/libcef_dll/cpptoc/request_context_cpptoc.cc index bd9b2a5e9..9a666b406 100644 --- a/libcef_dll/cpptoc/request_context_cpptoc.cc +++ b/libcef_dll/cpptoc/request_context_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=45d17287722f6da7d1c957ca9018ae1a6eca28e9$ +// $hash=7ee8da384ebeacb520200f1b8ec82af2d97d38ec$ // #include "libcef_dll/cpptoc/request_context_cpptoc.h" @@ -595,6 +595,10 @@ CefRequestContextCppToC::CefRequestContextCppToC() { GetStruct()->get_extension = request_context_get_extension; } +// DESTRUCTOR - Do not edit by hand. + +CefRequestContextCppToC::~CefRequestContextCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefRequestContextCppToC, diff --git a/libcef_dll/cpptoc/request_context_cpptoc.h b/libcef_dll/cpptoc/request_context_cpptoc.h index df555af9a..483acfd2a 100644 --- a/libcef_dll/cpptoc/request_context_cpptoc.h +++ b/libcef_dll/cpptoc/request_context_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2bfbd665c6b19cad203442ef31e9b9ce034766e2$ +// $hash=e3a4e0ec89854791f0f84a88af6161d51c98a274$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefRequestContextCppToC cef_request_context_t> { public: CefRequestContextCppToC(); + virtual ~CefRequestContextCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/request_context_handler_cpptoc.cc b/libcef_dll/cpptoc/request_context_handler_cpptoc.cc index dbff0055b..5126b7b2a 100644 --- a/libcef_dll/cpptoc/request_context_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/request_context_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5e0e08d8c307ec03a1d321ced47f1675ac21d53$ +// $hash=c7a79d49c001ad3cc28c1cfa41078366e62c6816$ // #include "libcef_dll/cpptoc/request_context_handler_cpptoc.h" @@ -104,6 +104,10 @@ CefRequestContextHandlerCppToC::CefRequestContextHandlerCppToC() { request_context_handler_on_before_plugin_load; } +// DESTRUCTOR - Do not edit by hand. + +CefRequestContextHandlerCppToC::~CefRequestContextHandlerCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefRequestContextHandlerCppToC, diff --git a/libcef_dll/cpptoc/request_context_handler_cpptoc.h b/libcef_dll/cpptoc/request_context_handler_cpptoc.h index 3d2dd9621..a01d9a776 100644 --- a/libcef_dll/cpptoc/request_context_handler_cpptoc.h +++ b/libcef_dll/cpptoc/request_context_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=76b7baa391ff175aa310678225b9a20b46ac103c$ +// $hash=ba55d3f626c344b38261bdabd7a3fd8d8b7814f9$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefRequestContextHandlerCppToC cef_request_context_handler_t> { public: CefRequestContextHandlerCppToC(); + virtual ~CefRequestContextHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CONTEXT_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/request_cpptoc.cc b/libcef_dll/cpptoc/request_cpptoc.cc index 7f351f61a..50862ac4f 100644 --- a/libcef_dll/cpptoc/request_cpptoc.cc +++ b/libcef_dll/cpptoc/request_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=694a74a9a032ca5b0c8b6afdd6e2006e67b4440b$ +// $hash=97ceef0a54a773e251d575e4dda16a62c2f1b99a$ // #include "libcef_dll/cpptoc/request_cpptoc.h" @@ -396,6 +396,10 @@ CefRequestCppToC::CefRequestCppToC() { GetStruct()->get_identifier = request_get_identifier; } +// DESTRUCTOR - Do not edit by hand. + +CefRequestCppToC::~CefRequestCppToC() {} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/request_cpptoc.h b/libcef_dll/cpptoc/request_cpptoc.h index d686a4560..4e660ac60 100644 --- a/libcef_dll/cpptoc/request_cpptoc.h +++ b/libcef_dll/cpptoc/request_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0ae76d6298e598184ca015a8a29d53eff7b217f9$ +// $hash=171f8151ba684dc1846ddc44664c6ab514e3ec9a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefRequestCppToC : public CefCppToCRefCounted { public: CefRequestCppToC(); + virtual ~CefRequestCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/request_handler_cpptoc.cc b/libcef_dll/cpptoc/request_handler_cpptoc.cc index df15fa1fe..2d6666173 100644 --- a/libcef_dll/cpptoc/request_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/request_handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4476db944b857d3233fe82f63a7b0373bcc9196a$ +// $hash=3a4f8e344764af0514dda39a273c0d98dbd5ed79$ // #include "libcef_dll/cpptoc/request_handler_cpptoc.h" @@ -24,6 +24,7 @@ #include "libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.h" #include "libcef_dll/ctocpp/sslinfo_ctocpp.h" #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -36,6 +37,8 @@ request_handler_on_before_browse(struct _cef_request_handler_t* self, cef_request_t* request, int user_gesture, int is_redirect) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +74,8 @@ int CEF_CALLBACK request_handler_on_open_urlfrom_tab( const cef_string_t* target_url, cef_window_open_disposition_t target_disposition, int user_gesture) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +109,8 @@ request_handler_on_before_resource_load(struct _cef_request_handler_t* self, cef_frame_t* frame, cef_request_t* request, cef_request_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -142,6 +149,8 @@ request_handler_get_resource_handler(struct _cef_request_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_request_t* request) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -177,6 +186,8 @@ request_handler_on_resource_redirect(struct _cef_request_handler_t* self, cef_request_t* request, struct _cef_response_t* response, cef_string_t* new_url) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -219,6 +230,8 @@ request_handler_on_resource_response(struct _cef_request_handler_t* self, cef_frame_t* frame, cef_request_t* request, struct _cef_response_t* response) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -257,6 +270,8 @@ request_handler_get_resource_response_filter( cef_frame_t* frame, cef_request_t* request, struct _cef_response_t* response) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -297,6 +312,8 @@ request_handler_on_resource_load_complete(struct _cef_request_handler_t* self, struct _cef_response_t* response, cef_urlrequest_status_t status, int64 received_content_length) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +353,8 @@ request_handler_get_auth_credentials(struct _cef_request_handler_t* self, const cef_string_t* realm, const cef_string_t* scheme, cef_auth_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -374,6 +393,8 @@ request_handler_can_get_cookies(struct _cef_request_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_request_t* request) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -407,6 +428,8 @@ request_handler_can_set_cookie(struct _cef_request_handler_t* self, cef_frame_t* frame, cef_request_t* request, const struct _cef_cookie_t* cookie) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -449,6 +472,8 @@ request_handler_on_quota_request(struct _cef_request_handler_t* self, const cef_string_t* origin_url, int64 new_size, cef_request_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -481,6 +506,8 @@ request_handler_on_protocol_execution(struct _cef_request_handler_t* self, cef_browser_t* browser, const cef_string_t* url, int* allow_os_execution) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -519,6 +546,8 @@ request_handler_on_certificate_error(struct _cef_request_handler_t* self, const cef_string_t* request_url, struct _cef_sslinfo_t* ssl_info, cef_request_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -560,6 +589,8 @@ int CEF_CALLBACK request_handler_on_select_client_certificate( size_t certificatesCount, struct _cef_x509certificate_t* const* certificates, cef_select_client_certificate_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -606,6 +637,8 @@ void CEF_CALLBACK request_handler_on_plugin_crashed(struct _cef_request_handler_t* self, cef_browser_t* browser, const cef_string_t* plugin_path) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -628,6 +661,8 @@ request_handler_on_plugin_crashed(struct _cef_request_handler_t* self, void CEF_CALLBACK request_handler_on_render_view_ready(struct _cef_request_handler_t* self, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -647,6 +682,8 @@ void CEF_CALLBACK request_handler_on_render_process_terminated( struct _cef_request_handler_t* self, cef_browser_t* browser, cef_termination_status_t status) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -692,6 +729,12 @@ CefRequestHandlerCppToC::CefRequestHandlerCppToC() { request_handler_on_render_process_terminated; } +// DESTRUCTOR - Do not edit by hand. + +CefRequestHandlerCppToC::~CefRequestHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefRequestHandlerCppToC, diff --git a/libcef_dll/cpptoc/request_handler_cpptoc.h b/libcef_dll/cpptoc/request_handler_cpptoc.h index cce229e23..0be85f5e3 100644 --- a/libcef_dll/cpptoc/request_handler_cpptoc.h +++ b/libcef_dll/cpptoc/request_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0eca50beded1290aac714f61558f79e396a23ddd$ +// $hash=8043be7959e4a17d361f291cdbedceb7395ab6a6$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefRequestHandlerCppToC cef_request_handler_t> { public: CefRequestHandlerCppToC(); + virtual ~CefRequestHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/resolve_callback_cpptoc.cc b/libcef_dll/cpptoc/resolve_callback_cpptoc.cc index 75e096872..f857d6ace 100644 --- a/libcef_dll/cpptoc/resolve_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/resolve_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0736a907753bbb95634bcecf7415b5dce8a79a86$ +// $hash=9252ddf87a04506b78a438821fbed2916d769e3b$ // #include "libcef_dll/cpptoc/resolve_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -23,6 +24,8 @@ void CEF_CALLBACK resolve_callback_on_resolve_completed(struct _cef_resolve_callback_t* self, cef_errorcode_t result, cef_string_list_t resolved_ips) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -47,6 +50,12 @@ CefResolveCallbackCppToC::CefResolveCallbackCppToC() { GetStruct()->on_resolve_completed = resolve_callback_on_resolve_completed; } +// DESTRUCTOR - Do not edit by hand. + +CefResolveCallbackCppToC::~CefResolveCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefResolveCallbackCppToC, diff --git a/libcef_dll/cpptoc/resolve_callback_cpptoc.h b/libcef_dll/cpptoc/resolve_callback_cpptoc.h index 620ac6e09..03c6e4357 100644 --- a/libcef_dll/cpptoc/resolve_callback_cpptoc.h +++ b/libcef_dll/cpptoc/resolve_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c7c8f6c8ede5dfb7dff01e7549e38a37f3a3fb61$ +// $hash=a3b2f47a5c8ea53d6eb4b4e35abb429c2736434c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOLVE_CALLBACK_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefResolveCallbackCppToC cef_resolve_callback_t> { public: CefResolveCallbackCppToC(); + virtual ~CefResolveCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESOLVE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/resource_bundle_cpptoc.cc b/libcef_dll/cpptoc/resource_bundle_cpptoc.cc index 29628fe7b..0fbc3772f 100644 --- a/libcef_dll/cpptoc/resource_bundle_cpptoc.cc +++ b/libcef_dll/cpptoc/resource_bundle_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=02578d941a071b3970098ebe7b56d068f0a80ad1$ +// $hash=e6db8ce4c0f4d808255daeb59ce3c8faeaa16e93$ // #include "libcef_dll/cpptoc/resource_bundle_cpptoc.h" @@ -137,6 +137,10 @@ CefResourceBundleCppToC::CefResourceBundleCppToC() { resource_bundle_get_data_resource_for_scale; } +// DESTRUCTOR - Do not edit by hand. + +CefResourceBundleCppToC::~CefResourceBundleCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefResourceBundleCppToC, diff --git a/libcef_dll/cpptoc/resource_bundle_cpptoc.h b/libcef_dll/cpptoc/resource_bundle_cpptoc.h index a30e47983..249d0ac59 100644 --- a/libcef_dll/cpptoc/resource_bundle_cpptoc.h +++ b/libcef_dll/cpptoc/resource_bundle_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4c5d0110ced574a4fc6e2ada02a49259f9e71cfb$ +// $hash=9935324a266836eae0c6d293aac3bfd84992bfb7$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefResourceBundleCppToC cef_resource_bundle_t> { public: CefResourceBundleCppToC(); + virtual ~CefResourceBundleCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.cc b/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.cc index 36b85b242..652b1a9c7 100644 --- a/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b4bb26e2027b1b031397ecb2d76df3c789d303ac$ +// $hash=ca1390d8a0125af46f5b4ffae3359ee16ad0e5a9$ // #include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ int CEF_CALLBACK resource_bundle_handler_get_localized_string( struct _cef_resource_bundle_handler_t* self, int string_id, cef_string_t* string) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -48,6 +51,8 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource( int resource_id, void** data, size_t* data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -88,6 +93,8 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource_for_scale( cef_scale_factor_t scale_factor, void** data, size_t* data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -135,6 +142,12 @@ CefResourceBundleHandlerCppToC::CefResourceBundleHandlerCppToC() { resource_bundle_handler_get_data_resource_for_scale; } +// DESTRUCTOR - Do not edit by hand. + +CefResourceBundleHandlerCppToC::~CefResourceBundleHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefResourceBundleHandlerCppToC, diff --git a/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h b/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h index ea0a8e878..d4821f19d 100644 --- a/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h +++ b/libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=74eaeb37ad51666e70a00fd37d28f95a009a392d$ +// $hash=97a25287d825dcafa6c926a42df3ecfbbe6f09e4$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefResourceBundleHandlerCppToC cef_resource_bundle_handler_t> { public: CefResourceBundleHandlerCppToC(); + virtual ~CefResourceBundleHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_BUNDLE_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/resource_handler_cpptoc.cc b/libcef_dll/cpptoc/resource_handler_cpptoc.cc index 945ad7a94..7c3e4853f 100644 --- a/libcef_dll/cpptoc/resource_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/resource_handler_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ac24ac471bb51b89d2641c909c538c1fe2e5d6a9$ +// $hash=0a480a3fdea0c87b79aab89ff20400415f910d78$ // #include "libcef_dll/cpptoc/resource_handler_cpptoc.h" #include "libcef_dll/ctocpp/callback_ctocpp.h" #include "libcef_dll/ctocpp/request_ctocpp.h" #include "libcef_dll/ctocpp/response_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -25,6 +26,8 @@ int CEF_CALLBACK resource_handler_process_request(struct _cef_resource_handler_t* self, cef_request_t* request, cef_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +55,8 @@ resource_handler_get_response_headers(struct _cef_resource_handler_t* self, struct _cef_response_t* response, int64* response_length, cef_string_t* redirectUrl) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -90,6 +95,8 @@ resource_handler_read_response(struct _cef_resource_handler_t* self, int bytes_to_read, int* bytes_read, cef_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +134,8 @@ resource_handler_read_response(struct _cef_resource_handler_t* self, int CEF_CALLBACK resource_handler_can_get_cookie(struct _cef_resource_handler_t* self, const struct _cef_cookie_t* cookie) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -152,6 +161,8 @@ resource_handler_can_get_cookie(struct _cef_resource_handler_t* self, int CEF_CALLBACK resource_handler_can_set_cookie(struct _cef_resource_handler_t* self, const struct _cef_cookie_t* cookie) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -176,6 +187,8 @@ resource_handler_can_set_cookie(struct _cef_resource_handler_t* self, void CEF_CALLBACK resource_handler_cancel(struct _cef_resource_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -199,6 +212,12 @@ CefResourceHandlerCppToC::CefResourceHandlerCppToC() { GetStruct()->cancel = resource_handler_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefResourceHandlerCppToC::~CefResourceHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefResourceHandlerCppToC, diff --git a/libcef_dll/cpptoc/resource_handler_cpptoc.h b/libcef_dll/cpptoc/resource_handler_cpptoc.h index b0894910c..48148960d 100644 --- a/libcef_dll/cpptoc/resource_handler_cpptoc.h +++ b/libcef_dll/cpptoc/resource_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a61b316656b911104ad04eba45142ed7da0fb249$ +// $hash=cb1eeb21d111efd64a951643e2f5d2c698e53af8$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefResourceHandlerCppToC cef_resource_handler_t> { public: CefResourceHandlerCppToC(); + virtual ~CefResourceHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESOURCE_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/response_cpptoc.cc b/libcef_dll/cpptoc/response_cpptoc.cc index f3f79c7f1..22a5cd6c8 100644 --- a/libcef_dll/cpptoc/response_cpptoc.cc +++ b/libcef_dll/cpptoc/response_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d102b4d8ce35a02ea58fe3f5de953800c09586aa$ +// $hash=bdc31be4b01e64649ad32c12c6a9262392206210$ // #include "libcef_dll/cpptoc/response_cpptoc.h" @@ -274,6 +274,10 @@ CefResponseCppToC::CefResponseCppToC() { GetStruct()->set_url = response_set_url; } +// DESTRUCTOR - Do not edit by hand. + +CefResponseCppToC::~CefResponseCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/response_cpptoc.h b/libcef_dll/cpptoc/response_cpptoc.h index 954ee1806..ba3f20df9 100644 --- a/libcef_dll/cpptoc/response_cpptoc.h +++ b/libcef_dll/cpptoc/response_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=589e060e6671ea3b3286fd4ea46720fee2d905c6$ +// $hash=d871b5cc42ef5c9b447f1d5722c28a2d68200242$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESPONSE_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefResponseCppToC : public CefCppToCRefCounted { public: CefResponseCppToC(); + virtual ~CefResponseCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESPONSE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/response_filter_cpptoc.cc b/libcef_dll/cpptoc/response_filter_cpptoc.cc index 7e34fa0ee..95dcaddf1 100644 --- a/libcef_dll/cpptoc/response_filter_cpptoc.cc +++ b/libcef_dll/cpptoc/response_filter_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3a53b94873fae44d1bdca822049f46474fd925bf$ +// $hash=2026723cdae10f4845d8239f14b8048d90252405$ // #include "libcef_dll/cpptoc/response_filter_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { int CEF_CALLBACK response_filter_init_filter(struct _cef_response_filter_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -41,6 +44,8 @@ response_filter_filter(struct _cef_response_filter_t* self, void* data_out, size_t data_out_size, size_t* data_out_written) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -91,6 +96,12 @@ CefResponseFilterCppToC::CefResponseFilterCppToC() { GetStruct()->filter = response_filter_filter; } +// DESTRUCTOR - Do not edit by hand. + +CefResponseFilterCppToC::~CefResponseFilterCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefResponseFilterCppToC, diff --git a/libcef_dll/cpptoc/response_filter_cpptoc.h b/libcef_dll/cpptoc/response_filter_cpptoc.h index 1f54fe950..02dda5874 100644 --- a/libcef_dll/cpptoc/response_filter_cpptoc.h +++ b/libcef_dll/cpptoc/response_filter_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1698817a7ed34c9ee458f76d059887bdd10291cd$ +// $hash=98e8ce6d61888d2d4792fd4c362f98374a73753c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_RESPONSE_FILTER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefResponseFilterCppToC cef_response_filter_t> { public: CefResponseFilterCppToC(); + virtual ~CefResponseFilterCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RESPONSE_FILTER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/run_context_menu_callback_cpptoc.cc b/libcef_dll/cpptoc/run_context_menu_callback_cpptoc.cc index c096db33a..017b54e77 100644 --- a/libcef_dll/cpptoc/run_context_menu_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/run_context_menu_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5f023a0cff19ee1e700c3149139aa9daea3d36d4$ +// $hash=d73a9cabfb1e5749e422dd6584024a7c9cff89d8$ // #include "libcef_dll/cpptoc/run_context_menu_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ void CEF_CALLBACK run_context_menu_callback_cont(struct _cef_run_context_menu_callback_t* self, int command_id, cef_event_flags_t event_flags) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -34,6 +37,8 @@ run_context_menu_callback_cont(struct _cef_run_context_menu_callback_t* self, void CEF_CALLBACK run_context_menu_callback_cancel( struct _cef_run_context_menu_callback_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,12 @@ CefRunContextMenuCallbackCppToC::CefRunContextMenuCallbackCppToC() { GetStruct()->cancel = run_context_menu_callback_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefRunContextMenuCallbackCppToC::~CefRunContextMenuCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefRunContextMenuCallbackCppToC(); + virtual ~CefRunContextMenuCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RUN_CONTEXT_MENU_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.cc b/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.cc index 977acf855..9ef098404 100644 --- a/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=636f1185e6adc987324f44724e38545c40cf2ad1$ +// $hash=4f23ac8a141103c1153d08aab850c1753bf5899d$ // #include "libcef_dll/cpptoc/run_file_dialog_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -23,6 +24,8 @@ void CEF_CALLBACK run_file_dialog_callback_on_file_dialog_dismissed( struct _cef_run_file_dialog_callback_t* self, int selected_accept_filter, cef_string_list_t file_paths) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +55,12 @@ CefRunFileDialogCallbackCppToC::CefRunFileDialogCallbackCppToC() { run_file_dialog_callback_on_file_dialog_dismissed; } +// DESTRUCTOR - Do not edit by hand. + +CefRunFileDialogCallbackCppToC::~CefRunFileDialogCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefRunFileDialogCallbackCppToC(); + virtual ~CefRunFileDialogCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_RUN_FILE_DIALOG_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.cc b/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.cc index 6b7b688d9..b4b889078 100644 --- a/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.cc +++ b/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cd0dfc94369aa40b2b2f3a0b4a90038c98d8ae05$ +// $hash=6f84d0c49f6fe82937b22d80a5a76239d87b0796$ // #include "libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h" @@ -61,6 +61,10 @@ CefSchemeHandlerFactoryCppToC::CefSchemeHandlerFactoryCppToC() { GetStruct()->create = scheme_handler_factory_create; } +// DESTRUCTOR - Do not edit by hand. + +CefSchemeHandlerFactoryCppToC::~CefSchemeHandlerFactoryCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefSchemeHandlerFactoryCppToC, diff --git a/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h b/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h index f6b7f51c9..b1f1b4fa7 100644 --- a/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h +++ b/libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d61dec9b5cb1e46c0955b359fb784e87142ce4ee$ +// $hash=3da1cddabdae0dfc3b3fc4433eaea385f5d9fb86$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefSchemeHandlerFactoryCppToC cef_scheme_handler_factory_t> { public: CefSchemeHandlerFactoryCppToC(); + virtual ~CefSchemeHandlerFactoryCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc b/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc index 715469d41..67bd11035 100644 --- a/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc +++ b/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2f79804767b1c08a00f87b918190f33a1734b346$ +// $hash=9a7b0cec74d47d2ae9f9279d08cce06ce7b5ef98$ // #include "libcef_dll/cpptoc/scheme_registrar_cpptoc.h" @@ -57,6 +57,10 @@ CefSchemeRegistrarCppToC::CefSchemeRegistrarCppToC() { GetStruct()->add_custom_scheme = scheme_registrar_add_custom_scheme; } +// DESTRUCTOR - Do not edit by hand. + +CefSchemeRegistrarCppToC::~CefSchemeRegistrarCppToC() {} + template <> CefOwnPtr CefCppToCScoped< CefSchemeRegistrarCppToC, diff --git a/libcef_dll/cpptoc/scheme_registrar_cpptoc.h b/libcef_dll/cpptoc/scheme_registrar_cpptoc.h index 8594f9ef4..d45defb94 100644 --- a/libcef_dll/cpptoc/scheme_registrar_cpptoc.h +++ b/libcef_dll/cpptoc/scheme_registrar_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c18de421f1e8f03afa74de5242709ca59d539c2e$ +// $hash=09dd514d043e6bba5ed62369a627a2bb158acc0e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_REGISTRAR_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefSchemeRegistrarCppToC cef_scheme_registrar_t> { public: CefSchemeRegistrarCppToC(); + virtual ~CefSchemeRegistrarCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_REGISTRAR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/select_client_certificate_callback_cpptoc.cc b/libcef_dll/cpptoc/select_client_certificate_callback_cpptoc.cc index ccd98f06c..3df22a253 100644 --- a/libcef_dll/cpptoc/select_client_certificate_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/select_client_certificate_callback_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4d0bcfb4123d37b0e9fd61b31e574c697f8258ba$ +// $hash=da9f690c63b5d0b1d512b338f822439e2830804a$ // #include "libcef_dll/cpptoc/select_client_certificate_callback_cpptoc.h" #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { void CEF_CALLBACK select_client_certificate_callback_select( struct _cef_select_client_certificate_callback_t* self, struct _cef_x509certificate_t* cert) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,13 @@ CefSelectClientCertificateCallbackCppToC:: GetStruct()->select = select_client_certificate_callback_select; } +// DESTRUCTOR - Do not edit by hand. + +CefSelectClientCertificateCallbackCppToC:: + ~CefSelectClientCertificateCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefSelectClientCertificateCallbackCppToC(); + virtual ~CefSelectClientCertificateCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SELECT_CLIENT_CERTIFICATE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/server_cpptoc.cc b/libcef_dll/cpptoc/server_cpptoc.cc index f6c4c4d96..d7225f88b 100644 --- a/libcef_dll/cpptoc/server_cpptoc.cc +++ b/libcef_dll/cpptoc/server_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=77ccb65926b57e453d1e50b4eb3f5dd91e072433$ +// $hash=7cf6ba3ad5b4738d2d5f96205bcd03ed0b7b1419$ // #include "libcef_dll/cpptoc/server_cpptoc.h" #include "libcef_dll/cpptoc/task_runner_cpptoc.h" #include "libcef_dll/ctocpp/server_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -23,6 +24,8 @@ CEF_EXPORT void cef_server_create(const cef_string_t* address, uint16 port, int backlog, struct _cef_server_handler_t* handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: address; type: string_byref_const @@ -45,6 +48,8 @@ namespace { struct _cef_task_runner_t* CEF_CALLBACK server_get_task_runner(struct _cef_server_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +65,8 @@ server_get_task_runner(struct _cef_server_t* self) { } void CEF_CALLBACK server_shutdown(struct _cef_server_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,8 @@ void CEF_CALLBACK server_shutdown(struct _cef_server_t* self) { } int CEF_CALLBACK server_is_running(struct _cef_server_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -86,6 +95,8 @@ int CEF_CALLBACK server_is_running(struct _cef_server_t* self) { cef_string_userfree_t CEF_CALLBACK server_get_address(struct _cef_server_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -100,6 +111,8 @@ server_get_address(struct _cef_server_t* self) { } int CEF_CALLBACK server_has_connection(struct _cef_server_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +128,8 @@ int CEF_CALLBACK server_has_connection(struct _cef_server_t* self) { int CEF_CALLBACK server_is_valid_connection(struct _cef_server_t* self, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -133,6 +148,8 @@ void CEF_CALLBACK server_send_http200response(struct _cef_server_t* self, const cef_string_t* content_type, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -154,6 +171,8 @@ void CEF_CALLBACK server_send_http200response(struct _cef_server_t* self, void CEF_CALLBACK server_send_http404response(struct _cef_server_t* self, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -168,6 +187,8 @@ void CEF_CALLBACK server_send_http500response(struct _cef_server_t* self, int connection_id, const cef_string_t* error_message) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -190,6 +211,8 @@ server_send_http_response(struct _cef_server_t* self, const cef_string_t* content_type, int64 content_length, cef_string_multimap_t extra_headers) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -215,6 +238,8 @@ void CEF_CALLBACK server_send_raw_data(struct _cef_server_t* self, int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -231,6 +256,8 @@ void CEF_CALLBACK server_send_raw_data(struct _cef_server_t* self, void CEF_CALLBACK server_close_connection(struct _cef_server_t* self, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +272,8 @@ void CEF_CALLBACK server_send_web_socket_message(struct _cef_server_t* self, int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -280,6 +309,12 @@ CefServerCppToC::CefServerCppToC() { GetStruct()->send_web_socket_message = server_send_web_socket_message; } +// DESTRUCTOR - Do not edit by hand. + +CefServerCppToC::~CefServerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/server_cpptoc.h b/libcef_dll/cpptoc/server_cpptoc.h index 600709dea..0041b8831 100644 --- a/libcef_dll/cpptoc/server_cpptoc.h +++ b/libcef_dll/cpptoc/server_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5ce10c3b77e9f5ff68e6c0a4a02cc87cb1f9e1e9$ +// $hash=43557b137b461f29a9760adc859005a0db94596a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SERVER_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefServerCppToC : public CefCppToCRefCounted { public: CefServerCppToC(); + virtual ~CefServerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SERVER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/server_handler_cpptoc.cc b/libcef_dll/cpptoc/server_handler_cpptoc.cc index bce368e56..b0404d819 100644 --- a/libcef_dll/cpptoc/server_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/server_handler_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1650264b28d08594c92a64a80c2cdec958b01263$ +// $hash=b2eab24cfa1bf3ebb4e7bcea3d9d2e728c5e1c5a$ // #include "libcef_dll/cpptoc/server_handler_cpptoc.h" #include "libcef_dll/ctocpp/callback_ctocpp.h" #include "libcef_dll/ctocpp/request_ctocpp.h" #include "libcef_dll/ctocpp/server_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ namespace { void CEF_CALLBACK server_handler_on_server_created(struct _cef_server_handler_t* self, cef_server_t* server) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,8 @@ server_handler_on_server_created(struct _cef_server_handler_t* self, void CEF_CALLBACK server_handler_on_server_destroyed(struct _cef_server_handler_t* self, cef_server_t* server) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -61,6 +66,8 @@ void CEF_CALLBACK server_handler_on_client_connected(struct _cef_server_handler_t* self, cef_server_t* server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -80,6 +87,8 @@ void CEF_CALLBACK server_handler_on_client_disconnected(struct _cef_server_handler_t* self, cef_server_t* server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -101,6 +110,8 @@ server_handler_on_http_request(struct _cef_server_handler_t* self, int connection_id, const cef_string_t* client_address, cef_request_t* request) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -132,6 +143,8 @@ server_handler_on_web_socket_request(struct _cef_server_handler_t* self, const cef_string_t* client_address, cef_request_t* request, cef_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -164,6 +177,8 @@ void CEF_CALLBACK server_handler_on_web_socket_connected(struct _cef_server_handler_t* self, cef_server_t* server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -185,6 +200,8 @@ server_handler_on_web_socket_message(struct _cef_server_handler_t* self, int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -219,6 +236,12 @@ CefServerHandlerCppToC::CefServerHandlerCppToC() { GetStruct()->on_web_socket_message = server_handler_on_web_socket_message; } +// DESTRUCTOR - Do not edit by hand. + +CefServerHandlerCppToC::~CefServerHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefServerHandlerCppToC, diff --git a/libcef_dll/cpptoc/server_handler_cpptoc.h b/libcef_dll/cpptoc/server_handler_cpptoc.h index c5ce8dd94..69e430e58 100644 --- a/libcef_dll/cpptoc/server_handler_cpptoc.h +++ b/libcef_dll/cpptoc/server_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=df1662a765b99782cb2312713604593b2c80b6a6$ +// $hash=37a9e9158b186c6b4bf97793414d49d1a34287d4$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SERVER_HANDLER_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefServerHandlerCppToC cef_server_handler_t> { public: CefServerHandlerCppToC(); + virtual ~CefServerHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SERVER_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/set_cookie_callback_cpptoc.cc b/libcef_dll/cpptoc/set_cookie_callback_cpptoc.cc index a83ce2d43..a47f74e71 100644 --- a/libcef_dll/cpptoc/set_cookie_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/set_cookie_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=670201522c9da2460608fcdd0dc07815cb134459$ +// $hash=2b234af34b1b6b739d7f948ca534b2f69bfc384a$ // #include "libcef_dll/cpptoc/set_cookie_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { void CEF_CALLBACK set_cookie_callback_on_complete(struct _cef_set_cookie_callback_t* self, int success) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,12 @@ CefSetCookieCallbackCppToC::CefSetCookieCallbackCppToC() { GetStruct()->on_complete = set_cookie_callback_on_complete; } +// DESTRUCTOR - Do not edit by hand. + +CefSetCookieCallbackCppToC::~CefSetCookieCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefSetCookieCallbackCppToC, diff --git a/libcef_dll/cpptoc/set_cookie_callback_cpptoc.h b/libcef_dll/cpptoc/set_cookie_callback_cpptoc.h index 4f3c6edd4..84d09b347 100644 --- a/libcef_dll/cpptoc/set_cookie_callback_cpptoc.h +++ b/libcef_dll/cpptoc/set_cookie_callback_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e4eb267d2b031f7f53c0a1c28add0b14f8c79af7$ +// $hash=79ff730e44957673939b45452decebdf242d476b$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SET_COOKIE_CALLBACK_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefSetCookieCallbackCppToC cef_set_cookie_callback_t> { public: CefSetCookieCallbackCppToC(); + virtual ~CefSetCookieCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SET_COOKIE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/sslinfo_cpptoc.cc b/libcef_dll/cpptoc/sslinfo_cpptoc.cc index 61e94d6fe..e0c6d52ff 100644 --- a/libcef_dll/cpptoc/sslinfo_cpptoc.cc +++ b/libcef_dll/cpptoc/sslinfo_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=06724af41957d6c39acf526b8373cf74cb59c4f5$ +// $hash=3fd4aede0fb57f64a9adb3515f7b6c29bb96314d$ // #include "libcef_dll/cpptoc/sslinfo_cpptoc.h" #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { cef_cert_status_t CEF_CALLBACK sslinfo_get_cert_status(struct _cef_sslinfo_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ sslinfo_get_cert_status(struct _cef_sslinfo_t* self) { struct _cef_x509certificate_t* CEF_CALLBACK sslinfo_get_x509certificate(struct _cef_sslinfo_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -59,6 +64,12 @@ CefSSLInfoCppToC::CefSSLInfoCppToC() { GetStruct()->get_x509certificate = sslinfo_get_x509certificate; } +// DESTRUCTOR - Do not edit by hand. + +CefSSLInfoCppToC::~CefSSLInfoCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/sslinfo_cpptoc.h b/libcef_dll/cpptoc/sslinfo_cpptoc.h index e208e3c20..a6682ef4e 100644 --- a/libcef_dll/cpptoc/sslinfo_cpptoc.h +++ b/libcef_dll/cpptoc/sslinfo_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=24b1db8c15738ac26c939483ad49f5a406d414f2$ +// $hash=871f55efe7003a7c59cb3907e1a2af0e7e2a882b$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SSLINFO_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefSSLInfoCppToC : public CefCppToCRefCounted { public: CefSSLInfoCppToC(); + virtual ~CefSSLInfoCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SSLINFO_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/sslstatus_cpptoc.cc b/libcef_dll/cpptoc/sslstatus_cpptoc.cc index 9d712346b..572f35599 100644 --- a/libcef_dll/cpptoc/sslstatus_cpptoc.cc +++ b/libcef_dll/cpptoc/sslstatus_cpptoc.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b77e2ed77eb3dfdc9236c42e281d98b31839de0d$ +// $hash=59c7f9afad5cd40b62f93291f49d26fa858e20c7$ // #include "libcef_dll/cpptoc/sslstatus_cpptoc.h" #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK sslstatus_is_secure_connection(struct _cef_sslstatus_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -35,6 +38,8 @@ int CEF_CALLBACK sslstatus_is_secure_connection(struct _cef_sslstatus_t* self) { cef_cert_status_t CEF_CALLBACK sslstatus_get_cert_status(struct _cef_sslstatus_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -50,6 +55,8 @@ sslstatus_get_cert_status(struct _cef_sslstatus_t* self) { cef_ssl_version_t CEF_CALLBACK sslstatus_get_sslversion(struct _cef_sslstatus_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -65,6 +72,8 @@ sslstatus_get_sslversion(struct _cef_sslstatus_t* self) { cef_ssl_content_status_t CEF_CALLBACK sslstatus_get_content_status(struct _cef_sslstatus_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -81,6 +90,8 @@ sslstatus_get_content_status(struct _cef_sslstatus_t* self) { struct _cef_x509certificate_t* CEF_CALLBACK sslstatus_get_x509certificate(struct _cef_sslstatus_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -107,6 +118,12 @@ CefSSLStatusCppToC::CefSSLStatusCppToC() { GetStruct()->get_x509certificate = sslstatus_get_x509certificate; } +// DESTRUCTOR - Do not edit by hand. + +CefSSLStatusCppToC::~CefSSLStatusCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/sslstatus_cpptoc.h b/libcef_dll/cpptoc/sslstatus_cpptoc.h index 85f449fbb..17fbae979 100644 --- a/libcef_dll/cpptoc/sslstatus_cpptoc.h +++ b/libcef_dll/cpptoc/sslstatus_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cb18abd3355722d97bf8d1aa1f4bd45d75a3aa27$ +// $hash=5282ffcdc9368e6fdf8223775a53d4d2e5f913b2$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_SSLSTATUS_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefSSLStatusCppToC : public CefCppToCRefCounted { public: CefSSLStatusCppToC(); + virtual ~CefSSLStatusCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_SSLSTATUS_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/stream_reader_cpptoc.cc b/libcef_dll/cpptoc/stream_reader_cpptoc.cc index a46c4c11a..66b3d6549 100644 --- a/libcef_dll/cpptoc/stream_reader_cpptoc.cc +++ b/libcef_dll/cpptoc/stream_reader_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=114700e3ee39709caa421116a5c0df66f5cbe696$ +// $hash=ce88b4cc3355ff64bc26dbab4c85957714baf97c$ // #include "libcef_dll/cpptoc/stream_reader_cpptoc.h" #include "libcef_dll/ctocpp/read_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_file( const cef_string_t* fileName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: fileName; type: string_byref_const @@ -36,6 +39,8 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_file( CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_data(void* data, size_t size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: data; type: simple_byaddr @@ -53,6 +58,8 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_data(void* data, CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_handler( cef_read_handler_t* handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: handler; type: refptr_diff @@ -76,6 +83,8 @@ size_t CEF_CALLBACK stream_reader_read(struct _cef_stream_reader_t* self, void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -96,6 +105,8 @@ size_t CEF_CALLBACK stream_reader_read(struct _cef_stream_reader_t* self, int CEF_CALLBACK stream_reader_seek(struct _cef_stream_reader_t* self, int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -110,6 +121,8 @@ int CEF_CALLBACK stream_reader_seek(struct _cef_stream_reader_t* self, } int64 CEF_CALLBACK stream_reader_tell(struct _cef_stream_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +137,8 @@ int64 CEF_CALLBACK stream_reader_tell(struct _cef_stream_reader_t* self) { } int CEF_CALLBACK stream_reader_eof(struct _cef_stream_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -138,6 +153,8 @@ int CEF_CALLBACK stream_reader_eof(struct _cef_stream_reader_t* self) { } int CEF_CALLBACK stream_reader_may_block(struct _cef_stream_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -163,6 +180,12 @@ CefStreamReaderCppToC::CefStreamReaderCppToC() { GetStruct()->may_block = stream_reader_may_block; } +// DESTRUCTOR - Do not edit by hand. + +CefStreamReaderCppToC::~CefStreamReaderCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefStreamReaderCppToC, diff --git a/libcef_dll/cpptoc/stream_reader_cpptoc.h b/libcef_dll/cpptoc/stream_reader_cpptoc.h index b51b4482a..6bbef854d 100644 --- a/libcef_dll/cpptoc/stream_reader_cpptoc.h +++ b/libcef_dll/cpptoc/stream_reader_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=629d0f391090f975ede62125698aabd6fd61fd41$ +// $hash=31ca27fd59221abb2686ec56c9ef3f71b74d977a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_STREAM_READER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefStreamReaderCppToC : public CefCppToCRefCounted { public: CefStreamReaderCppToC(); + virtual ~CefStreamReaderCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_STREAM_READER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/stream_writer_cpptoc.cc b/libcef_dll/cpptoc/stream_writer_cpptoc.cc index 325cb8465..ef8a0764d 100644 --- a/libcef_dll/cpptoc/stream_writer_cpptoc.cc +++ b/libcef_dll/cpptoc/stream_writer_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9651d2f942de1463eb2fe54569c35e3ca726f363$ +// $hash=e1690d77fecfe97501a97d341778f14ccc4df12c$ // #include "libcef_dll/cpptoc/stream_writer_cpptoc.h" #include "libcef_dll/ctocpp/write_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_file( const cef_string_t* fileName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: fileName; type: string_byref_const @@ -36,6 +39,8 @@ CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_file( CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_handler( cef_write_handler_t* handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: handler; type: refptr_diff @@ -59,6 +64,8 @@ size_t CEF_CALLBACK stream_writer_write(struct _cef_stream_writer_t* self, const void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -79,6 +86,8 @@ size_t CEF_CALLBACK stream_writer_write(struct _cef_stream_writer_t* self, int CEF_CALLBACK stream_writer_seek(struct _cef_stream_writer_t* self, int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -93,6 +102,8 @@ int CEF_CALLBACK stream_writer_seek(struct _cef_stream_writer_t* self, } int64 CEF_CALLBACK stream_writer_tell(struct _cef_stream_writer_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -107,6 +118,8 @@ int64 CEF_CALLBACK stream_writer_tell(struct _cef_stream_writer_t* self) { } int CEF_CALLBACK stream_writer_flush(struct _cef_stream_writer_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -121,6 +134,8 @@ int CEF_CALLBACK stream_writer_flush(struct _cef_stream_writer_t* self) { } int CEF_CALLBACK stream_writer_may_block(struct _cef_stream_writer_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -146,6 +161,12 @@ CefStreamWriterCppToC::CefStreamWriterCppToC() { GetStruct()->may_block = stream_writer_may_block; } +// DESTRUCTOR - Do not edit by hand. + +CefStreamWriterCppToC::~CefStreamWriterCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefStreamWriterCppToC, diff --git a/libcef_dll/cpptoc/stream_writer_cpptoc.h b/libcef_dll/cpptoc/stream_writer_cpptoc.h index c79cccbea..574ef3865 100644 --- a/libcef_dll/cpptoc/stream_writer_cpptoc.h +++ b/libcef_dll/cpptoc/stream_writer_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7f99aaa2ce3e7e462963c59f2c6a6b5c87863fc2$ +// $hash=00c00aa2572fe050323c07bd6f1e6bd591ebeb3b$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_STREAM_WRITER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefStreamWriterCppToC : public CefCppToCRefCounted { public: CefStreamWriterCppToC(); + virtual ~CefStreamWriterCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_STREAM_WRITER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/string_visitor_cpptoc.cc b/libcef_dll/cpptoc/string_visitor_cpptoc.cc index c9f7ee07e..2bb8b8a3c 100644 --- a/libcef_dll/cpptoc/string_visitor_cpptoc.cc +++ b/libcef_dll/cpptoc/string_visitor_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=72a7304568cf07d548571c6dd008b4fed0cdd77e$ +// $hash=ee8e0b077363331416ad3a2cad554bd853d5bf1b$ // #include "libcef_dll/cpptoc/string_visitor_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self, const cef_string_t* string) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,12 @@ CefStringVisitorCppToC::CefStringVisitorCppToC() { GetStruct()->visit = string_visitor_visit; } +// DESTRUCTOR - Do not edit by hand. + +CefStringVisitorCppToC::~CefStringVisitorCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefStringVisitorCppToC, diff --git a/libcef_dll/cpptoc/string_visitor_cpptoc.h b/libcef_dll/cpptoc/string_visitor_cpptoc.h index b9c7fcb02..ff79641e3 100644 --- a/libcef_dll/cpptoc/string_visitor_cpptoc.h +++ b/libcef_dll/cpptoc/string_visitor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=fef2b2a1cb43707be89e2a20baf3536a9d2939d2$ +// $hash=d249edca7f589faa38db0d25e8852f7aa391c1c9$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefStringVisitorCppToC cef_string_visitor_t> { public: CefStringVisitorCppToC(); + virtual ~CefStringVisitorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_STRING_VISITOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/task_cpptoc.cc b/libcef_dll/cpptoc/task_cpptoc.cc index d5162bbd5..f498764a8 100644 --- a/libcef_dll/cpptoc/task_cpptoc.cc +++ b/libcef_dll/cpptoc/task_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=486dd17f5430a2fc73a30bfa94887134445b347e$ +// $hash=6c30de6fd4234579268912484326cab6431e4264$ // #include "libcef_dll/cpptoc/task_cpptoc.h" @@ -37,6 +37,10 @@ CefTaskCppToC::CefTaskCppToC() { GetStruct()->execute = task_execute; } +// DESTRUCTOR - Do not edit by hand. + +CefTaskCppToC::~CefTaskCppToC() {} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/task_cpptoc.h b/libcef_dll/cpptoc/task_cpptoc.h index 934fc74de..bb3474672 100644 --- a/libcef_dll/cpptoc/task_cpptoc.h +++ b/libcef_dll/cpptoc/task_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9a9e5247c2344eca240a99589fd7f46cbc8adc64$ +// $hash=24d213946351e7dbf458618dd75905308f2cddff$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefTaskCppToC : public CefCppToCRefCounted { public: CefTaskCppToC(); + virtual ~CefTaskCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/task_runner_cpptoc.cc b/libcef_dll/cpptoc/task_runner_cpptoc.cc index 8263b16d0..7b4b88bcc 100644 --- a/libcef_dll/cpptoc/task_runner_cpptoc.cc +++ b/libcef_dll/cpptoc/task_runner_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4c81dfc4238cfb3c1e3a920ec4d3f4639f264960$ +// $hash=c593d32edf120253e3b3ce95f49dca53e6b6fbea$ // #include "libcef_dll/cpptoc/task_runner_cpptoc.h" #include "libcef_dll/ctocpp/task_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_task_runner_t* cef_task_runner_get_for_current_thread() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -29,6 +32,8 @@ CEF_EXPORT cef_task_runner_t* cef_task_runner_get_for_current_thread() { CEF_EXPORT cef_task_runner_t* cef_task_runner_get_for_thread( cef_thread_id_t threadId) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -44,6 +49,8 @@ namespace { int CEF_CALLBACK task_runner_is_same(struct _cef_task_runner_t* self, struct _cef_task_runner_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +71,8 @@ int CEF_CALLBACK task_runner_is_same(struct _cef_task_runner_t* self, int CEF_CALLBACK task_runner_belongs_to_current_thread(struct _cef_task_runner_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -79,6 +88,8 @@ task_runner_belongs_to_current_thread(struct _cef_task_runner_t* self) { int CEF_CALLBACK task_runner_belongs_to_thread(struct _cef_task_runner_t* self, cef_thread_id_t threadId) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -94,6 +105,8 @@ int CEF_CALLBACK task_runner_belongs_to_thread(struct _cef_task_runner_t* self, int CEF_CALLBACK task_runner_post_task(struct _cef_task_runner_t* self, cef_task_t* task) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +128,8 @@ int CEF_CALLBACK task_runner_post_task(struct _cef_task_runner_t* self, int CEF_CALLBACK task_runner_post_delayed_task(struct _cef_task_runner_t* self, cef_task_t* task, int64 delay_ms) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -146,6 +161,12 @@ CefTaskRunnerCppToC::CefTaskRunnerCppToC() { GetStruct()->post_delayed_task = task_runner_post_delayed_task; } +// DESTRUCTOR - Do not edit by hand. + +CefTaskRunnerCppToC::~CefTaskRunnerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/task_runner_cpptoc.h b/libcef_dll/cpptoc/task_runner_cpptoc.h index 83d841ee4..78c38f588 100644 --- a/libcef_dll/cpptoc/task_runner_cpptoc.h +++ b/libcef_dll/cpptoc/task_runner_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=604beee3bb133ec29ebaabd1199311c6d3e8730a$ +// $hash=a6b45e734c24e3157437bc0ff368ae54f53e90ca$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_TASK_RUNNER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefTaskRunnerCppToC : public CefCppToCRefCounted { public: CefTaskRunnerCppToC(); + virtual ~CefTaskRunnerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TASK_RUNNER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_cpptoc.cc index 601c7b531..1ff581e10 100644 --- a/libcef_dll/cpptoc/test/translator_test_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=291349e2aac1209e36b277400bc8229076655cad$ +// $hash=30a6c8e9611309b983215cfc687b088ca5fad757$ // #include "libcef_dll/cpptoc/test/translator_test_cpptoc.h" @@ -22,11 +22,14 @@ #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_translator_test_t* cef_translator_test_create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -42,6 +45,8 @@ namespace { void CEF_CALLBACK translator_test_get_void(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,8 @@ translator_test_get_void(struct _cef_translator_test_t* self) { } int CEF_CALLBACK translator_test_get_bool(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +74,8 @@ int CEF_CALLBACK translator_test_get_bool(struct _cef_translator_test_t* self) { } int CEF_CALLBACK translator_test_get_int(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +91,8 @@ int CEF_CALLBACK translator_test_get_int(struct _cef_translator_test_t* self) { double CEF_CALLBACK translator_test_get_double(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +108,8 @@ translator_test_get_double(struct _cef_translator_test_t* self) { long CEF_CALLBACK translator_test_get_long(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -112,6 +125,8 @@ translator_test_get_long(struct _cef_translator_test_t* self) { size_t CEF_CALLBACK translator_test_get_sizet(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -126,6 +141,8 @@ translator_test_get_sizet(struct _cef_translator_test_t* self) { } int CEF_CALLBACK translator_test_set_void(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -141,6 +158,8 @@ int CEF_CALLBACK translator_test_set_void(struct _cef_translator_test_t* self) { int CEF_CALLBACK translator_test_set_bool(struct _cef_translator_test_t* self, int val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -157,6 +176,8 @@ int CEF_CALLBACK translator_test_set_bool(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_int(struct _cef_translator_test_t* self, int val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -172,6 +193,8 @@ int CEF_CALLBACK translator_test_set_int(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_double(struct _cef_translator_test_t* self, double val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -187,6 +210,8 @@ int CEF_CALLBACK translator_test_set_double(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_long(struct _cef_translator_test_t* self, long val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -202,6 +227,8 @@ int CEF_CALLBACK translator_test_set_long(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_sizet(struct _cef_translator_test_t* self, size_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -219,6 +246,8 @@ int CEF_CALLBACK translator_test_set_int_list(struct _cef_translator_test_t* self, size_t valCount, int const* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -249,6 +278,8 @@ int CEF_CALLBACK translator_test_get_int_list_by_ref(struct _cef_translator_test_t* self, size_t* valCount, int* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -286,6 +317,8 @@ translator_test_get_int_list_by_ref(struct _cef_translator_test_t* self, size_t CEF_CALLBACK translator_test_get_int_list_size(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -301,6 +334,8 @@ translator_test_get_int_list_size(struct _cef_translator_test_t* self) { cef_string_userfree_t CEF_CALLBACK translator_test_get_string(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -316,6 +351,8 @@ translator_test_get_string(struct _cef_translator_test_t* self) { int CEF_CALLBACK translator_test_set_string(struct _cef_translator_test_t* self, const cef_string_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +373,8 @@ int CEF_CALLBACK translator_test_set_string(struct _cef_translator_test_t* self, void CEF_CALLBACK translator_test_get_string_by_ref(struct _cef_translator_test_t* self, cef_string_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -356,6 +395,8 @@ translator_test_get_string_by_ref(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_string_list(struct _cef_translator_test_t* self, cef_string_list_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -380,6 +421,8 @@ translator_test_set_string_list(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_get_string_list_by_ref(struct _cef_translator_test_t* self, cef_string_list_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -409,6 +452,8 @@ translator_test_get_string_list_by_ref(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_string_map(struct _cef_translator_test_t* self, cef_string_map_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -433,6 +478,8 @@ translator_test_set_string_map(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_get_string_map_by_ref(struct _cef_translator_test_t* self, cef_string_map_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -461,6 +508,8 @@ translator_test_get_string_map_by_ref(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_string_multimap(struct _cef_translator_test_t* self, cef_string_multimap_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -486,6 +535,8 @@ translator_test_set_string_multimap(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_get_string_multimap_by_ref(struct _cef_translator_test_t* self, cef_string_multimap_t val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -514,6 +565,8 @@ translator_test_get_string_multimap_by_ref(struct _cef_translator_test_t* self, cef_point_t CEF_CALLBACK translator_test_get_point(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -529,6 +582,8 @@ translator_test_get_point(struct _cef_translator_test_t* self) { int CEF_CALLBACK translator_test_set_point(struct _cef_translator_test_t* self, const cef_point_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -552,6 +607,8 @@ int CEF_CALLBACK translator_test_set_point(struct _cef_translator_test_t* self, void CEF_CALLBACK translator_test_get_point_by_ref(struct _cef_translator_test_t* self, cef_point_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -577,6 +634,8 @@ int CEF_CALLBACK translator_test_set_point_list(struct _cef_translator_test_t* self, size_t valCount, cef_point_t const* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -607,6 +666,8 @@ int CEF_CALLBACK translator_test_get_point_list_by_ref(struct _cef_translator_test_t* self, size_t* valCount, cef_point_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -644,6 +705,8 @@ translator_test_get_point_list_by_ref(struct _cef_translator_test_t* self, size_t CEF_CALLBACK translator_test_get_point_list_size(struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -660,6 +723,8 @@ translator_test_get_point_list_size(struct _cef_translator_test_t* self) { struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK translator_test_get_ref_ptr_library(struct _cef_translator_test_t* self, int val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -677,6 +742,8 @@ translator_test_get_ref_ptr_library(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_ref_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_library_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -699,6 +766,8 @@ struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK translator_test_set_ref_ptr_library_and_return( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_library_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -721,6 +790,8 @@ translator_test_set_ref_ptr_library_and_return( int CEF_CALLBACK translator_test_set_child_ref_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_library_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -743,6 +814,8 @@ struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK translator_test_set_child_ref_ptr_library_and_return_parent( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_library_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -768,6 +841,8 @@ int CEF_CALLBACK translator_test_set_ref_ptr_library_list( struct _cef_translator_test_ref_ptr_library_t* const* val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -802,6 +877,8 @@ int CEF_CALLBACK translator_test_get_ref_ptr_library_list_by_ref( struct _cef_translator_test_ref_ptr_library_t** val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -840,6 +917,8 @@ int CEF_CALLBACK translator_test_get_ref_ptr_library_list_by_ref( size_t CEF_CALLBACK translator_test_get_ref_ptr_library_list_size( struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -857,6 +936,8 @@ size_t CEF_CALLBACK translator_test_get_ref_ptr_library_list_size( int CEF_CALLBACK translator_test_set_ref_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_client_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -879,6 +960,8 @@ struct _cef_translator_test_ref_ptr_client_t* CEF_CALLBACK translator_test_set_ref_ptr_client_and_return( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_client_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -901,6 +984,8 @@ translator_test_set_ref_ptr_client_and_return( int CEF_CALLBACK translator_test_set_child_ref_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_client_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -923,6 +1008,8 @@ struct _cef_translator_test_ref_ptr_client_t* CEF_CALLBACK translator_test_set_child_ref_ptr_client_and_return_parent( struct _cef_translator_test_t* self, struct _cef_translator_test_ref_ptr_client_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -948,6 +1035,8 @@ int CEF_CALLBACK translator_test_set_ref_ptr_client_list( struct _cef_translator_test_ref_ptr_client_t* const* val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -982,6 +1071,8 @@ int CEF_CALLBACK translator_test_get_ref_ptr_client_list_by_ref( struct _cef_translator_test_ref_ptr_client_t** val, struct _cef_translator_test_ref_ptr_client_t* val1, struct _cef_translator_test_ref_ptr_client_t* val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1029,6 +1120,8 @@ int CEF_CALLBACK translator_test_get_ref_ptr_client_list_by_ref( size_t CEF_CALLBACK translator_test_get_ref_ptr_client_list_size( struct _cef_translator_test_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1046,6 +1139,8 @@ size_t CEF_CALLBACK translator_test_get_ref_ptr_client_list_size( struct _cef_translator_test_scoped_library_t* CEF_CALLBACK translator_test_get_own_ptr_library(struct _cef_translator_test_t* self, int val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1063,6 +1158,8 @@ translator_test_get_own_ptr_library(struct _cef_translator_test_t* self, int CEF_CALLBACK translator_test_set_own_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1085,6 +1182,8 @@ struct _cef_translator_test_scoped_library_t* CEF_CALLBACK translator_test_set_own_ptr_library_and_return( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1107,6 +1206,8 @@ translator_test_set_own_ptr_library_and_return( int CEF_CALLBACK translator_test_set_child_own_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1129,6 +1230,8 @@ struct _cef_translator_test_scoped_library_t* CEF_CALLBACK translator_test_set_child_own_ptr_library_and_return_parent( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1151,6 +1254,8 @@ translator_test_set_child_own_ptr_library_and_return_parent( int CEF_CALLBACK translator_test_set_own_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1177,6 +1282,8 @@ struct _cef_translator_test_scoped_client_t* CEF_CALLBACK translator_test_set_own_ptr_client_and_return( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1203,6 +1310,8 @@ translator_test_set_own_ptr_client_and_return( int CEF_CALLBACK translator_test_set_child_own_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1229,6 +1338,8 @@ struct _cef_translator_test_scoped_client_t* CEF_CALLBACK translator_test_set_child_own_ptr_client_and_return_parent( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1255,6 +1366,8 @@ translator_test_set_child_own_ptr_client_and_return_parent( int CEF_CALLBACK translator_test_set_raw_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1276,6 +1389,8 @@ int CEF_CALLBACK translator_test_set_raw_ptr_library( int CEF_CALLBACK translator_test_set_child_raw_ptr_library( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_library_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1300,6 +1415,8 @@ int CEF_CALLBACK translator_test_set_raw_ptr_library_list( struct _cef_translator_test_scoped_library_t* const* val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1331,6 +1448,8 @@ int CEF_CALLBACK translator_test_set_raw_ptr_library_list( int CEF_CALLBACK translator_test_set_raw_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1356,6 +1475,8 @@ int CEF_CALLBACK translator_test_set_raw_ptr_client( int CEF_CALLBACK translator_test_set_child_raw_ptr_client( struct _cef_translator_test_t* self, struct _cef_translator_test_scoped_client_child_t* val) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1384,6 +1505,8 @@ int CEF_CALLBACK translator_test_set_raw_ptr_client_list( struct _cef_translator_test_scoped_client_t* const* val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1509,6 +1632,12 @@ CefTranslatorTestCppToC::CefTranslatorTestCppToC() { translator_test_set_raw_ptr_client_list; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestCppToC::~CefTranslatorTestCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefTranslatorTestCppToC, diff --git a/libcef_dll/cpptoc/test/translator_test_cpptoc.h b/libcef_dll/cpptoc/test/translator_test_cpptoc.h index c7d3c5723..59a044ec6 100644 --- a/libcef_dll/cpptoc/test/translator_test_cpptoc.h +++ b/libcef_dll/cpptoc/test/translator_test_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1cf3157bbec7e48b5c1acfbbf8d042079314d94c$ +// $hash=e4fdce2f78e7dc3dffdcb990d5c7dfa2e4ceba2e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefTranslatorTestCppToC cef_translator_test_t> { public: CefTranslatorTestCppToC(); + virtual ~CefTranslatorTestCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.cc index 1e0933f22..40d6adf99 100644 --- a/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9b0984f489348c8d182ec919db8e56a2567b583b$ +// $hash=ba2f64fa05b36ccf586e2ca05af5491277712b8d$ // #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { int CEF_CALLBACK translator_test_ref_ptr_client_child_get_other_value( struct _cef_translator_test_ref_ptr_client_child_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ int CEF_CALLBACK translator_test_ref_ptr_client_child_get_other_value( int CEF_CALLBACK translator_test_ref_ptr_client_child_get_value( struct _cef_translator_test_ref_ptr_client_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -63,6 +68,13 @@ CefTranslatorTestRefPtrClientChildCppToC:: GetStruct()->base.get_value = translator_test_ref_ptr_client_child_get_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrClientChildCppToC:: + ~CefTranslatorTestRefPtrClientChildCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefTranslatorTestRefPtrClientChildCppToC(); + virtual ~CefTranslatorTestRefPtrClientChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_REF_PTR_CLIENT_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.cc index df42ae5d3..daf60cebe 100644 --- a/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a482c2a108a1f2a04a1342fabf285392df54479a$ +// $hash=94dda0368c29eee3e0fcb3a1429755649cbdd245$ // #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.h" #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { int CEF_CALLBACK translator_test_ref_ptr_client_get_value( struct _cef_translator_test_ref_ptr_client_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,12 @@ CefTranslatorTestRefPtrClientCppToC::CefTranslatorTestRefPtrClientCppToC() { GetStruct()->get_value = translator_test_ref_ptr_client_get_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrClientCppToC::~CefTranslatorTestRefPtrClientCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefTranslatorTestRefPtrClientCppToC(); + virtual ~CefTranslatorTestRefPtrClientCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_REF_PTR_CLIENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.cc index 43ae4eeff..d00c95c98 100644 --- a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7b4b84a7e66c2ee8cdb7613f6b7139d56b24fa87$ +// $hash=51efd46ca9949e45b05a5709b9e98089c3e8d31b$ // #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -20,6 +21,8 @@ CEF_EXPORT cef_translator_test_ref_ptr_library_child_child_t* cef_translator_test_ref_ptr_library_child_child_create(int value, int other_value, int other_other_value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -38,6 +41,8 @@ namespace { int CEF_CALLBACK translator_test_ref_ptr_library_child_child_get_other_other_value( struct _cef_translator_test_ref_ptr_library_child_child_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ void CEF_CALLBACK translator_test_ref_ptr_library_child_child_set_other_other_value( struct _cef_translator_test_ref_ptr_library_child_child_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +76,8 @@ translator_test_ref_ptr_library_child_child_set_other_other_value( int CEF_CALLBACK translator_test_ref_ptr_library_child_child_get_other_value( struct _cef_translator_test_ref_ptr_library_child_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +98,8 @@ int CEF_CALLBACK translator_test_ref_ptr_library_child_child_get_other_value( void CEF_CALLBACK translator_test_ref_ptr_library_child_child_set_other_value( struct _cef_translator_test_ref_ptr_library_child_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +115,8 @@ void CEF_CALLBACK translator_test_ref_ptr_library_child_child_set_other_value( int CEF_CALLBACK translator_test_ref_ptr_library_child_child_get_value( struct _cef_translator_test_ref_ptr_library_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +137,8 @@ int CEF_CALLBACK translator_test_ref_ptr_library_child_child_get_value( void CEF_CALLBACK translator_test_ref_ptr_library_child_child_set_value( struct _cef_translator_test_ref_ptr_library_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -157,6 +172,13 @@ CefTranslatorTestRefPtrLibraryChildChildCppToC:: translator_test_ref_ptr_library_child_child_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryChildChildCppToC:: + ~CefTranslatorTestRefPtrLibraryChildChildCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefTranslatorTestRefPtrLibraryChildChildCppToC(); + virtual ~CefTranslatorTestRefPtrLibraryChildChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_REF_PTR_LIBRARY_CHILD_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.cc index 089c2224a..8b7b08fd5 100644 --- a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d518a02838933a5fcb2ed8a7405644e1eb70b456$ +// $hash=bb730076e72ba699a3a07b26f8eaa7ed4e61882f$ // #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h" #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_translator_test_ref_ptr_library_child_t* cef_translator_test_ref_ptr_library_child_create(int value, int other_value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -35,6 +38,8 @@ namespace { int CEF_CALLBACK translator_test_ref_ptr_library_child_get_other_value( struct _cef_translator_test_ref_ptr_library_child_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +57,8 @@ int CEF_CALLBACK translator_test_ref_ptr_library_child_get_other_value( void CEF_CALLBACK translator_test_ref_ptr_library_child_set_other_value( struct _cef_translator_test_ref_ptr_library_child_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -64,6 +71,8 @@ void CEF_CALLBACK translator_test_ref_ptr_library_child_set_other_value( int CEF_CALLBACK translator_test_ref_ptr_library_child_get_value( struct _cef_translator_test_ref_ptr_library_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +92,8 @@ int CEF_CALLBACK translator_test_ref_ptr_library_child_get_value( void CEF_CALLBACK translator_test_ref_ptr_library_child_set_value( struct _cef_translator_test_ref_ptr_library_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -109,6 +120,13 @@ CefTranslatorTestRefPtrLibraryChildCppToC:: GetStruct()->base.set_value = translator_test_ref_ptr_library_child_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryChildCppToC:: + ~CefTranslatorTestRefPtrLibraryChildCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefTranslatorTestRefPtrLibraryChildCppToC(); + virtual ~CefTranslatorTestRefPtrLibraryChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_REF_PTR_LIBRARY_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.cc index 2a3b35c4a..639e1d160 100644 --- a/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=618e448ef2beca6f47467cfb9c1ba9f646f70f6a$ +// $hash=7a5ff53a90627d3079306c77cd5b6af90c2b5db3$ // #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.h" #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h" #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_translator_test_ref_ptr_library_t* cef_translator_test_ref_ptr_library_create(int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -36,6 +39,8 @@ namespace { int CEF_CALLBACK translator_test_ref_ptr_library_get_value( struct _cef_translator_test_ref_ptr_library_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -52,6 +57,8 @@ int CEF_CALLBACK translator_test_ref_ptr_library_get_value( void CEF_CALLBACK translator_test_ref_ptr_library_set_value( struct _cef_translator_test_ref_ptr_library_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,12 @@ CefTranslatorTestRefPtrLibraryCppToC::CefTranslatorTestRefPtrLibraryCppToC() { GetStruct()->set_value = translator_test_ref_ptr_library_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryCppToC::~CefTranslatorTestRefPtrLibraryCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefTranslatorTestRefPtrLibraryCppToC(); + virtual ~CefTranslatorTestRefPtrLibraryCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_REF_PTR_LIBRARY_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.cc index e4607751b..e896cc6a9 100644 --- a/libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=57e588531e5b86a9290a506d37a4e4198a7dc26b$ +// $hash=90d6a53956c2d81e9ab271ff02f8f857f250c0e9$ // #include "libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h" @@ -63,6 +63,11 @@ CefTranslatorTestScopedClientChildCppToC:: GetStruct()->base.get_value = translator_test_scoped_client_child_get_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedClientChildCppToC:: + ~CefTranslatorTestScopedClientChildCppToC() {} + template <> CefOwnPtr CefCppToCScoped { public: CefTranslatorTestScopedClientChildCppToC(); + virtual ~CefTranslatorTestScopedClientChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_SCOPED_CLIENT_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.cc index 6fc4b807f..28ad4a98e 100644 --- a/libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f06aa2536b2c7d6bd3defdb5ce24a38062c7c2df$ +// $hash=b4a244b1991bcd3598d09b1bfce816d0c80e831f$ // #include "libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h" @@ -42,6 +42,10 @@ CefTranslatorTestScopedClientCppToC::CefTranslatorTestScopedClientCppToC() { GetStruct()->get_value = translator_test_scoped_client_get_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedClientCppToC::~CefTranslatorTestScopedClientCppToC() {} + template <> CefOwnPtr CefCppToCScoped { public: CefTranslatorTestScopedClientCppToC(); + virtual ~CefTranslatorTestScopedClientCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_SCOPED_CLIENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.cc index 62db3d1e2..758371afb 100644 --- a/libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b2c3cf0dd0ce2b03241d193fbe9f08cc824f79bf$ +// $hash=bec866457994d5418ece7c184c3f5516a92bfbfd$ // #include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.h" @@ -156,6 +156,11 @@ CefTranslatorTestScopedLibraryChildChildCppToC:: translator_test_scoped_library_child_child_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryChildChildCppToC:: + ~CefTranslatorTestScopedLibraryChildChildCppToC() {} + template <> CefOwnPtr CefCppToCScoped { public: CefTranslatorTestScopedLibraryChildChildCppToC(); + virtual ~CefTranslatorTestScopedLibraryChildChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CHILD_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.cc index bae3065d0..9d12229ab 100644 --- a/libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=06fad15aadcf15e6f8067fb36696f05fd93e7e1f$ +// $hash=171c183383e07cd9a62afe4452d7c2bf080c84cc$ // #include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.h" @@ -109,6 +109,11 @@ CefTranslatorTestScopedLibraryChildCppToC:: GetStruct()->base.set_value = translator_test_scoped_library_child_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryChildCppToC:: + ~CefTranslatorTestScopedLibraryChildCppToC() {} + template <> CefOwnPtr CefCppToCScoped { public: CefTranslatorTestScopedLibraryChildCppToC(); + virtual ~CefTranslatorTestScopedLibraryChildCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CHILD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.cc b/libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.cc index fcd8e7b97..d907cd044 100644 --- a/libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.cc +++ b/libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=37015dee6709983f74f14b20116b4c2dfdd6c938$ +// $hash=26cdad7ba16110fb7a45e25fcd9ddc438a67fb5d$ // #include "libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h" @@ -71,6 +71,10 @@ CefTranslatorTestScopedLibraryCppToC::CefTranslatorTestScopedLibraryCppToC() { GetStruct()->set_value = translator_test_scoped_library_set_value; } +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryCppToC::~CefTranslatorTestScopedLibraryCppToC() {} + template <> CefOwnPtr CefCppToCScoped { public: CefTranslatorTestScopedLibraryCppToC(); + virtual ~CefTranslatorTestScopedLibraryCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/thread_cpptoc.cc b/libcef_dll/cpptoc/thread_cpptoc.cc index 216cf37cd..2ac6c55d8 100644 --- a/libcef_dll/cpptoc/thread_cpptoc.cc +++ b/libcef_dll/cpptoc/thread_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=09da054aa0a5b5e09bf6b96d03c5679d7673b633$ +// $hash=f0eafe36b23b4c121ebaaead7039a987e4a4f372$ // #include "libcef_dll/cpptoc/thread_cpptoc.h" #include "libcef_dll/cpptoc/task_runner_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -23,6 +24,8 @@ CEF_EXPORT cef_thread_t* cef_thread_create( cef_message_loop_type_t message_loop_type, int stoppable, cef_com_init_mode_t com_init_mode) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: display_name @@ -42,6 +45,8 @@ namespace { cef_task_runner_t* CEF_CALLBACK thread_get_task_runner(struct _cef_thread_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -58,6 +63,8 @@ thread_get_task_runner(struct _cef_thread_t* self) { cef_platform_thread_id_t CEF_CALLBACK thread_get_platform_thread_id(struct _cef_thread_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -73,6 +80,8 @@ thread_get_platform_thread_id(struct _cef_thread_t* self) { } void CEF_CALLBACK thread_stop(struct _cef_thread_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -84,6 +93,8 @@ void CEF_CALLBACK thread_stop(struct _cef_thread_t* self) { } int CEF_CALLBACK thread_is_running(struct _cef_thread_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -108,6 +119,12 @@ CefThreadCppToC::CefThreadCppToC() { GetStruct()->is_running = thread_is_running; } +// DESTRUCTOR - Do not edit by hand. + +CefThreadCppToC::~CefThreadCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/thread_cpptoc.h b/libcef_dll/cpptoc/thread_cpptoc.h index d2383bcef..2cdd51a8c 100644 --- a/libcef_dll/cpptoc/thread_cpptoc.h +++ b/libcef_dll/cpptoc/thread_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=65f24706f4bc8093440f6f88c654ab74211be056$ +// $hash=18e1d22e6d292ec6a38b1f58f4de3e07a3ccf66a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_THREAD_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefThreadCppToC : public CefCppToCRefCounted { public: CefThreadCppToC(); + virtual ~CefThreadCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_THREAD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/urlrequest_client_cpptoc.cc b/libcef_dll/cpptoc/urlrequest_client_cpptoc.cc index 2fef3055e..128778fc9 100644 --- a/libcef_dll/cpptoc/urlrequest_client_cpptoc.cc +++ b/libcef_dll/cpptoc/urlrequest_client_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=eeb56bfa516f8b030846f9df60b65c28c58559bd$ +// $hash=5697b97e0a0ff1e70026b29c7e8ced60b6c60b35$ // #include "libcef_dll/cpptoc/urlrequest_client_cpptoc.h" #include "libcef_dll/ctocpp/auth_callback_ctocpp.h" #include "libcef_dll/ctocpp/urlrequest_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { void CEF_CALLBACK urlrequest_client_on_request_complete(struct _cef_urlrequest_client_t* self, cef_urlrequest_t* request) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,8 @@ urlrequest_client_on_upload_progress(struct _cef_urlrequest_client_t* self, cef_urlrequest_t* request, int64 current, int64 total) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -63,6 +68,8 @@ urlrequest_client_on_download_progress(struct _cef_urlrequest_client_t* self, cef_urlrequest_t* request, int64 current, int64 total) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +90,8 @@ urlrequest_client_on_download_data(struct _cef_urlrequest_client_t* self, cef_urlrequest_t* request, const void* data, size_t data_length) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -110,6 +119,8 @@ urlrequest_client_get_auth_credentials(struct _cef_urlrequest_client_t* self, const cef_string_t* realm, const cef_string_t* scheme, cef_auth_callback_t* callback) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -150,6 +161,12 @@ CefURLRequestClientCppToC::CefURLRequestClientCppToC() { GetStruct()->get_auth_credentials = urlrequest_client_get_auth_credentials; } +// DESTRUCTOR - Do not edit by hand. + +CefURLRequestClientCppToC::~CefURLRequestClientCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefURLRequestClientCppToC, diff --git a/libcef_dll/cpptoc/urlrequest_client_cpptoc.h b/libcef_dll/cpptoc/urlrequest_client_cpptoc.h index 8f93576ac..2f29bd723 100644 --- a/libcef_dll/cpptoc/urlrequest_client_cpptoc.h +++ b/libcef_dll/cpptoc/urlrequest_client_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2751952eca164a5c5444b8615c2d6d2de14e62ea$ +// $hash=aedbe10438794be3417c4bda28e1f3f1541e3ddf$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefURLRequestClientCppToC cef_urlrequest_client_t> { public: CefURLRequestClientCppToC(); + virtual ~CefURLRequestClientCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CLIENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/urlrequest_cpptoc.cc b/libcef_dll/cpptoc/urlrequest_cpptoc.cc index ad8740634..a3c54f22a 100644 --- a/libcef_dll/cpptoc/urlrequest_cpptoc.cc +++ b/libcef_dll/cpptoc/urlrequest_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4dc38d6d0e7b6bb905b4ab003fcecd382419a0a0$ +// $hash=938a2be639575661ed173ba69c265ff7be4c4a0a$ // #include "libcef_dll/cpptoc/urlrequest_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/cpptoc/request_cpptoc.h" #include "libcef_dll/cpptoc/response_cpptoc.h" #include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -24,6 +25,8 @@ CEF_EXPORT cef_urlrequest_t* cef_urlrequest_create( cef_request_t* request, struct _cef_urlrequest_client_t* client, cef_request_context_t* request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: request; type: refptr_same @@ -52,6 +55,8 @@ namespace { cef_request_t* CEF_CALLBACK urlrequest_get_request(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +72,8 @@ urlrequest_get_request(struct _cef_urlrequest_t* self) { struct _cef_urlrequest_client_t* CEF_CALLBACK urlrequest_get_client(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +90,8 @@ urlrequest_get_client(struct _cef_urlrequest_t* self) { cef_urlrequest_status_t CEF_CALLBACK urlrequest_get_request_status(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -99,6 +108,8 @@ urlrequest_get_request_status(struct _cef_urlrequest_t* self) { cef_errorcode_t CEF_CALLBACK urlrequest_get_request_error(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -114,6 +125,8 @@ urlrequest_get_request_error(struct _cef_urlrequest_t* self) { cef_response_t* CEF_CALLBACK urlrequest_get_response(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -130,6 +143,8 @@ urlrequest_get_response(struct _cef_urlrequest_t* self) { int CEF_CALLBACK urlrequest_response_was_cached(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +159,8 @@ urlrequest_response_was_cached(struct _cef_urlrequest_t* self) { } void CEF_CALLBACK urlrequest_cancel(struct _cef_urlrequest_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -168,6 +185,12 @@ CefURLRequestCppToC::CefURLRequestCppToC() { GetStruct()->cancel = urlrequest_cancel; } +// DESTRUCTOR - Do not edit by hand. + +CefURLRequestCppToC::~CefURLRequestCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/urlrequest_cpptoc.h b/libcef_dll/cpptoc/urlrequest_cpptoc.h index 1b957c606..044054c78 100644 --- a/libcef_dll/cpptoc/urlrequest_cpptoc.h +++ b/libcef_dll/cpptoc/urlrequest_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1107c4607fafd7dd99583ff92ab67606a9c2acd2$ +// $hash=323563295eb60a14fadb4d69cdf7745073070b84$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefURLRequestCppToC : public CefCppToCRefCounted { public: CefURLRequestCppToC(); + virtual ~CefURLRequestCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_URLREQUEST_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8accessor_cpptoc.cc b/libcef_dll/cpptoc/v8accessor_cpptoc.cc index 1b79eda31..d4a1bbee0 100644 --- a/libcef_dll/cpptoc/v8accessor_cpptoc.cc +++ b/libcef_dll/cpptoc/v8accessor_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=46c357e1515d937bd41402a6f7f4b0e06f31cf37$ +// $hash=8c5fee62ad2b30c57d6046ae1f869d46e5455da9$ // #include "libcef_dll/cpptoc/v8accessor_cpptoc.h" @@ -121,6 +121,10 @@ CefV8AccessorCppToC::CefV8AccessorCppToC() { GetStruct()->set = v8accessor_set; } +// DESTRUCTOR - Do not edit by hand. + +CefV8AccessorCppToC::~CefV8AccessorCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/v8accessor_cpptoc.h b/libcef_dll/cpptoc/v8accessor_cpptoc.h index 0492cdbe1..114d707c7 100644 --- a/libcef_dll/cpptoc/v8accessor_cpptoc.h +++ b/libcef_dll/cpptoc/v8accessor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=74fe0a1d5896cd334f9982e97daad1b147ede77d$ +// $hash=b50529b3976ed590641e709fe98109319b47ca5e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8AccessorCppToC : public CefCppToCRefCounted { public: CefV8AccessorCppToC(); + virtual ~CefV8AccessorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.cc b/libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.cc index 21795183a..0b500c0d4 100644 --- a/libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=122eea25273a143a2fc5aa7a8878839f5988d81b$ +// $hash=5eb3e58534c487e992240a5891dd0d706fbe2ab5$ // #include "libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.h" @@ -43,6 +43,11 @@ CefV8ArrayBufferReleaseCallbackCppToC::CefV8ArrayBufferReleaseCallbackCppToC() { GetStruct()->release_buffer = v8array_buffer_release_callback_release_buffer; } +// DESTRUCTOR - Do not edit by hand. + +CefV8ArrayBufferReleaseCallbackCppToC:: + ~CefV8ArrayBufferReleaseCallbackCppToC() {} + template <> CefRefPtr CefCppToCRefCounted { public: CefV8ArrayBufferReleaseCallbackCppToC(); + virtual ~CefV8ArrayBufferReleaseCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8ARRAY_BUFFER_RELEASE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8context_cpptoc.cc b/libcef_dll/cpptoc/v8context_cpptoc.cc index abfddcfa7..7b89a916a 100644 --- a/libcef_dll/cpptoc/v8context_cpptoc.cc +++ b/libcef_dll/cpptoc/v8context_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=faf2d0c64ba4feb9e9b63e913303e7b2fa54faf8$ +// $hash=cb008fc420a8f5dcdc10c3bed1905d695c2c5d18$ // #include "libcef_dll/cpptoc/v8context_cpptoc.h" @@ -259,6 +259,10 @@ CefV8ContextCppToC::CefV8ContextCppToC() { GetStruct()->eval = v8context_eval; } +// DESTRUCTOR - Do not edit by hand. + +CefV8ContextCppToC::~CefV8ContextCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/v8context_cpptoc.h b/libcef_dll/cpptoc/v8context_cpptoc.h index 1ec78037f..bc6fdf998 100644 --- a/libcef_dll/cpptoc/v8context_cpptoc.h +++ b/libcef_dll/cpptoc/v8context_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=031d682a228c5dd123cfd2df6a2537059b5217e0$ +// $hash=4ff99834d219b1c7d9d574327699e20adf5d0276$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8ContextCppToC : public CefCppToCRefCounted { public: CefV8ContextCppToC(); + virtual ~CefV8ContextCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8exception_cpptoc.cc b/libcef_dll/cpptoc/v8exception_cpptoc.cc index 4c011c7ac..15b8f57a3 100644 --- a/libcef_dll/cpptoc/v8exception_cpptoc.cc +++ b/libcef_dll/cpptoc/v8exception_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f5752db21b318d181410e008a428aef4e2ecb416$ +// $hash=1ce579d444fdca10747e3b66aff26a0efa36b197$ // #include "libcef_dll/cpptoc/v8exception_cpptoc.h" @@ -149,6 +149,10 @@ CefV8ExceptionCppToC::CefV8ExceptionCppToC() { GetStruct()->get_end_column = v8exception_get_end_column; } +// DESTRUCTOR - Do not edit by hand. + +CefV8ExceptionCppToC::~CefV8ExceptionCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/v8exception_cpptoc.h b/libcef_dll/cpptoc/v8exception_cpptoc.h index b52675566..95f7d4156 100644 --- a/libcef_dll/cpptoc/v8exception_cpptoc.h +++ b/libcef_dll/cpptoc/v8exception_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=595c6881fad90c14f5ebd23c7a0c4a9748d98a91$ +// $hash=c67956da550243ba1a5af5a6c416f03e8827f8c0$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8EXCEPTION_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8ExceptionCppToC : public CefCppToCRefCounted { public: CefV8ExceptionCppToC(); + virtual ~CefV8ExceptionCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8EXCEPTION_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8handler_cpptoc.cc b/libcef_dll/cpptoc/v8handler_cpptoc.cc index 904acf8d1..c443a54dd 100644 --- a/libcef_dll/cpptoc/v8handler_cpptoc.cc +++ b/libcef_dll/cpptoc/v8handler_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=181e8b0947bacdb7c5d175fae008d845940eb71f$ +// $hash=ea7be9dafca4989f997679dce4b0c3818ec4ecb4$ // #include "libcef_dll/cpptoc/v8handler_cpptoc.h" @@ -96,6 +96,10 @@ CefV8HandlerCppToC::CefV8HandlerCppToC() { GetStruct()->execute = v8handler_execute; } +// DESTRUCTOR - Do not edit by hand. + +CefV8HandlerCppToC::~CefV8HandlerCppToC() {} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/v8handler_cpptoc.h b/libcef_dll/cpptoc/v8handler_cpptoc.h index 899887d00..c2ccfabff 100644 --- a/libcef_dll/cpptoc/v8handler_cpptoc.h +++ b/libcef_dll/cpptoc/v8handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=412287ca1009ea3a92d554280a7d93459ce6fcc3$ +// $hash=569e3a4f5aab05c0a8bb3f5d4ed99104b3d08d9a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8HandlerCppToC : public CefCppToCRefCounted { public: CefV8HandlerCppToC(); + virtual ~CefV8HandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8interceptor_cpptoc.cc b/libcef_dll/cpptoc/v8interceptor_cpptoc.cc index 2a2ccb7f7..05d1795a5 100644 --- a/libcef_dll/cpptoc/v8interceptor_cpptoc.cc +++ b/libcef_dll/cpptoc/v8interceptor_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9b775e012d72038e096787192045ebe998ce7b47$ +// $hash=fa20f67da33ad4b66be31ca63d7fe65addd3d47f$ // #include "libcef_dll/cpptoc/v8interceptor_cpptoc.h" @@ -216,6 +216,10 @@ CefV8InterceptorCppToC::CefV8InterceptorCppToC() { GetStruct()->set_byindex = v8interceptor_set_byindex; } +// DESTRUCTOR - Do not edit by hand. + +CefV8InterceptorCppToC::~CefV8InterceptorCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefV8InterceptorCppToC, diff --git a/libcef_dll/cpptoc/v8interceptor_cpptoc.h b/libcef_dll/cpptoc/v8interceptor_cpptoc.h index 57b1f0276..49425dcb4 100644 --- a/libcef_dll/cpptoc/v8interceptor_cpptoc.h +++ b/libcef_dll/cpptoc/v8interceptor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3765c5f9b184d9b83b48c7a70db46fa8e5b946b0$ +// $hash=f1aa0d5b3328c69c25d4e2b721dfe23fc4b8dd67$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8INTERCEPTOR_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefV8InterceptorCppToC cef_v8interceptor_t> { public: CefV8InterceptorCppToC(); + virtual ~CefV8InterceptorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8INTERCEPTOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8stack_frame_cpptoc.cc b/libcef_dll/cpptoc/v8stack_frame_cpptoc.cc index 081b14f96..6c1ac0a32 100644 --- a/libcef_dll/cpptoc/v8stack_frame_cpptoc.cc +++ b/libcef_dll/cpptoc/v8stack_frame_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2247f5b77fea9056b5f0ef16b34c5a4595c45bd7$ +// $hash=d21f89f23c3b5678bb1ed2db3bbf30c957fb3e0a$ // #include "libcef_dll/cpptoc/v8stack_frame_cpptoc.h" @@ -152,6 +152,10 @@ CefV8StackFrameCppToC::CefV8StackFrameCppToC() { GetStruct()->is_constructor = v8stack_frame_is_constructor; } +// DESTRUCTOR - Do not edit by hand. + +CefV8StackFrameCppToC::~CefV8StackFrameCppToC() {} + template <> CefRefPtr CefCppToCRefCounted< CefV8StackFrameCppToC, diff --git a/libcef_dll/cpptoc/v8stack_frame_cpptoc.h b/libcef_dll/cpptoc/v8stack_frame_cpptoc.h index f849ea045..c0a44fe2c 100644 --- a/libcef_dll/cpptoc/v8stack_frame_cpptoc.h +++ b/libcef_dll/cpptoc/v8stack_frame_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=499641cb12ac6e51503947e21b44f040301a4ff7$ +// $hash=d4a56478e90c031dc60146f736f0ec7fd63491de$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8STACK_FRAME_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8StackFrameCppToC : public CefCppToCRefCounted { public: CefV8StackFrameCppToC(); + virtual ~CefV8StackFrameCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8STACK_FRAME_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8stack_trace_cpptoc.cc b/libcef_dll/cpptoc/v8stack_trace_cpptoc.cc index fe52e7583..a5fb96501 100644 --- a/libcef_dll/cpptoc/v8stack_trace_cpptoc.cc +++ b/libcef_dll/cpptoc/v8stack_trace_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=adb00d94ca911b63cf7ec5636ed13fbda1d375dc$ +// $hash=4d02d621b4112b1c18d5218cb04b189672c053a9$ // #include "libcef_dll/cpptoc/v8stack_trace_cpptoc.h" #include "libcef_dll/cpptoc/v8stack_frame_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_v8stack_trace_t* cef_v8stack_trace_get_current(int frame_limit) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK v8stack_trace_is_valid(struct _cef_v8stack_trace_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -47,6 +52,8 @@ int CEF_CALLBACK v8stack_trace_is_valid(struct _cef_v8stack_trace_t* self) { int CEF_CALLBACK v8stack_trace_get_frame_count(struct _cef_v8stack_trace_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +69,8 @@ v8stack_trace_get_frame_count(struct _cef_v8stack_trace_t* self) { struct _cef_v8stack_frame_t* CEF_CALLBACK v8stack_trace_get_frame(struct _cef_v8stack_trace_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -86,6 +95,12 @@ CefV8StackTraceCppToC::CefV8StackTraceCppToC() { GetStruct()->get_frame = v8stack_trace_get_frame; } +// DESTRUCTOR - Do not edit by hand. + +CefV8StackTraceCppToC::~CefV8StackTraceCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefV8StackTraceCppToC, diff --git a/libcef_dll/cpptoc/v8stack_trace_cpptoc.h b/libcef_dll/cpptoc/v8stack_trace_cpptoc.h index bb0305741..6bd13ebc3 100644 --- a/libcef_dll/cpptoc/v8stack_trace_cpptoc.h +++ b/libcef_dll/cpptoc/v8stack_trace_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9aa6305fd24196112fde60ae14e4ccc9ec375393$ +// $hash=c7ddac9461ac3345bc96b469c79cbe7669fb3173$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8STACK_TRACE_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefV8StackTraceCppToC : public CefCppToCRefCounted { public: CefV8StackTraceCppToC(); + virtual ~CefV8StackTraceCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8STACK_TRACE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/v8value_cpptoc.cc b/libcef_dll/cpptoc/v8value_cpptoc.cc index 68dc5d1f8..7763495fd 100644 --- a/libcef_dll/cpptoc/v8value_cpptoc.cc +++ b/libcef_dll/cpptoc/v8value_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=734dfcd9580c5da03978cc96650446b9ba617fd6$ +// $hash=be12ab8330a040e2b02ae47119ac78cb3767363f$ // #include "libcef_dll/cpptoc/v8value_cpptoc.h" @@ -1039,6 +1039,10 @@ CefV8ValueCppToC::CefV8ValueCppToC() { v8value_execute_function_with_context; } +// DESTRUCTOR - Do not edit by hand. + +CefV8ValueCppToC::~CefV8ValueCppToC() {} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/v8value_cpptoc.h b/libcef_dll/cpptoc/v8value_cpptoc.h index 0c5b810a1..6ad8b1209 100644 --- a/libcef_dll/cpptoc/v8value_cpptoc.h +++ b/libcef_dll/cpptoc/v8value_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4749cbaf4131c7d1c0dedf6d49dfaab0fb791d6b$ +// $hash=2ef630cd2bc0f97ab53d6a77f9d9cc2c8d5508df$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_V8VALUE_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefV8ValueCppToC : public CefCppToCRefCounted { public: CefV8ValueCppToC(); + virtual ~CefV8ValueCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_V8VALUE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/value_cpptoc.cc b/libcef_dll/cpptoc/value_cpptoc.cc index 176c7d538..462387180 100644 --- a/libcef_dll/cpptoc/value_cpptoc.cc +++ b/libcef_dll/cpptoc/value_cpptoc.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cd8c3dbc351567ce8a4b9ee546aa54132c0d1479$ +// $hash=2e5ed940be08f5b9d459fb6dd708ffd9bcb6f0df$ // #include "libcef_dll/cpptoc/value_cpptoc.h" #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/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_value_t* cef_value_create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -34,6 +37,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK value_is_valid(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -48,6 +53,8 @@ int CEF_CALLBACK value_is_valid(struct _cef_value_t* self) { } int CEF_CALLBACK value_is_owned(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -62,6 +69,8 @@ int CEF_CALLBACK value_is_owned(struct _cef_value_t* self) { } int CEF_CALLBACK value_is_read_only(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +86,8 @@ int CEF_CALLBACK value_is_read_only(struct _cef_value_t* self) { int CEF_CALLBACK value_is_same(struct _cef_value_t* self, struct _cef_value_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +108,8 @@ int CEF_CALLBACK value_is_same(struct _cef_value_t* self, int CEF_CALLBACK value_is_equal(struct _cef_value_t* self, struct _cef_value_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -116,6 +129,8 @@ int CEF_CALLBACK value_is_equal(struct _cef_value_t* self, } struct _cef_value_t* CEF_CALLBACK value_copy(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -130,6 +145,8 @@ struct _cef_value_t* CEF_CALLBACK value_copy(struct _cef_value_t* self) { } cef_value_type_t CEF_CALLBACK value_get_type(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +161,8 @@ cef_value_type_t CEF_CALLBACK value_get_type(struct _cef_value_t* self) { } int CEF_CALLBACK value_get_bool(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -158,6 +177,8 @@ int CEF_CALLBACK value_get_bool(struct _cef_value_t* self) { } int CEF_CALLBACK value_get_int(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -172,6 +193,8 @@ int CEF_CALLBACK value_get_int(struct _cef_value_t* self) { } double CEF_CALLBACK value_get_double(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -186,6 +209,8 @@ double CEF_CALLBACK value_get_double(struct _cef_value_t* self) { } cef_string_userfree_t CEF_CALLBACK value_get_string(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -201,6 +226,8 @@ cef_string_userfree_t CEF_CALLBACK value_get_string(struct _cef_value_t* self) { struct _cef_binary_value_t* CEF_CALLBACK value_get_binary(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -216,6 +243,8 @@ value_get_binary(struct _cef_value_t* self) { struct _cef_dictionary_value_t* CEF_CALLBACK value_get_dictionary(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -232,6 +261,8 @@ value_get_dictionary(struct _cef_value_t* self) { struct _cef_list_value_t* CEF_CALLBACK value_get_list(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -246,6 +277,8 @@ value_get_list(struct _cef_value_t* self) { } int CEF_CALLBACK value_set_null(struct _cef_value_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -260,6 +293,8 @@ int CEF_CALLBACK value_set_null(struct _cef_value_t* self) { } int CEF_CALLBACK value_set_bool(struct _cef_value_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -274,6 +309,8 @@ int CEF_CALLBACK value_set_bool(struct _cef_value_t* self, int value) { } int CEF_CALLBACK value_set_int(struct _cef_value_t* self, int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -288,6 +325,8 @@ int CEF_CALLBACK value_set_int(struct _cef_value_t* self, int value) { } int CEF_CALLBACK value_set_double(struct _cef_value_t* self, double value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -303,6 +342,8 @@ int CEF_CALLBACK value_set_double(struct _cef_value_t* self, double value) { int CEF_CALLBACK value_set_string(struct _cef_value_t* self, const cef_string_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -319,6 +360,8 @@ int CEF_CALLBACK value_set_string(struct _cef_value_t* self, int CEF_CALLBACK value_set_binary(struct _cef_value_t* self, struct _cef_binary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -339,6 +382,8 @@ int CEF_CALLBACK value_set_binary(struct _cef_value_t* self, int CEF_CALLBACK value_set_dictionary(struct _cef_value_t* self, struct _cef_dictionary_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -359,6 +404,8 @@ int CEF_CALLBACK value_set_dictionary(struct _cef_value_t* self, int CEF_CALLBACK value_set_list(struct _cef_value_t* self, struct _cef_list_value_t* value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -406,6 +453,12 @@ CefValueCppToC::CefValueCppToC() { GetStruct()->set_list = value_set_list; } +// DESTRUCTOR - Do not edit by hand. + +CefValueCppToC::~CefValueCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/value_cpptoc.h b/libcef_dll/cpptoc/value_cpptoc.h index 1db8699be..848d93807 100644 --- a/libcef_dll/cpptoc/value_cpptoc.h +++ b/libcef_dll/cpptoc/value_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7c1e59a7c551d5f3ef2b56059b01959ec7085aa6$ +// $hash=63730bd29e97e429263e2c91e717e462d01b1943$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VALUE_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefValueCppToC : public CefCppToCRefCounted { public: CefValueCppToC(); + virtual ~CefValueCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VALUE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/box_layout_cpptoc.cc b/libcef_dll/cpptoc/views/box_layout_cpptoc.cc index a4c9d6cbe..8f42d095d 100644 --- a/libcef_dll/cpptoc/views/box_layout_cpptoc.cc +++ b/libcef_dll/cpptoc/views/box_layout_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=89ac811652a9a884a71d2c9f3b828665bb041995$ +// $hash=6f1d2cc2dc85d65bca5e6e0ad3fa5465ffe25abe$ // #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h" #include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { void CEF_CALLBACK box_layout_set_flex_for_view(struct _cef_box_layout_t* self, struct _cef_view_t* view, int flex) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -40,6 +43,8 @@ void CEF_CALLBACK box_layout_set_flex_for_view(struct _cef_box_layout_t* self, void CEF_CALLBACK box_layout_clear_flex_for_view(struct _cef_box_layout_t* self, struct _cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ void CEF_CALLBACK box_layout_clear_flex_for_view(struct _cef_box_layout_t* self, cef_box_layout_t* CEF_CALLBACK box_layout_as_box_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -73,6 +80,8 @@ box_layout_as_box_layout(struct _cef_layout_t* self) { cef_fill_layout_t* CEF_CALLBACK box_layout_as_fill_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +98,8 @@ box_layout_as_fill_layout(struct _cef_layout_t* self) { } int CEF_CALLBACK box_layout_is_valid(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -116,6 +127,12 @@ CefBoxLayoutCppToC::CefBoxLayoutCppToC() { GetStruct()->base.is_valid = box_layout_is_valid; } +// DESTRUCTOR - Do not edit by hand. + +CefBoxLayoutCppToC::~CefBoxLayoutCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/box_layout_cpptoc.h b/libcef_dll/cpptoc/views/box_layout_cpptoc.h index a0a4a9db5..b00381b8b 100644 --- a/libcef_dll/cpptoc/views/box_layout_cpptoc.h +++ b/libcef_dll/cpptoc/views/box_layout_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1453f8f11297ecd28a0b79e9decabf10365cbf47$ +// $hash=6cc2c59d3553e8bf3dd259343d0582299507e917$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BOX_LAYOUT_CPPTOC_H_ @@ -33,6 +33,7 @@ class CefBoxLayoutCppToC : public CefCppToCRefCounted { public: CefBoxLayoutCppToC(); + virtual ~CefBoxLayoutCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_BOX_LAYOUT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/browser_view_cpptoc.cc b/libcef_dll/cpptoc/views/browser_view_cpptoc.cc index f29411a89..49a3f8d3f 100644 --- a/libcef_dll/cpptoc/views/browser_view_cpptoc.cc +++ b/libcef_dll/cpptoc/views/browser_view_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cf08bdb29918ece011ddb5467a553abc536ce3a4$ +// $hash=53d9dc3592036a917e9116288f6d4feb72efcfd9$ // #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h" @@ -24,6 +24,7 @@ #include "libcef_dll/ctocpp/client_ctocpp.h" #include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -33,6 +34,8 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create( const struct _cef_browser_settings_t* settings, cef_request_context_t* request_context, cef_browser_view_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: settings; type: struct_byref_const @@ -58,6 +61,8 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create( CEF_EXPORT cef_browser_view_t* cef_browser_view_get_for_browser( cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: browser; type: refptr_same @@ -79,6 +84,8 @@ namespace { cef_browser_t* CEF_CALLBACK browser_view_get_browser(struct _cef_browser_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -95,6 +102,8 @@ browser_view_get_browser(struct _cef_browser_view_t* self) { void CEF_CALLBACK browser_view_set_prefer_accelerators(struct _cef_browser_view_t* self, int prefer_accelerators) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -108,6 +117,8 @@ browser_view_set_prefer_accelerators(struct _cef_browser_view_t* self, cef_browser_view_t* CEF_CALLBACK browser_view_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +135,8 @@ browser_view_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK browser_view_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -140,6 +153,8 @@ cef_button_t* CEF_CALLBACK browser_view_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK browser_view_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -157,6 +172,8 @@ cef_panel_t* CEF_CALLBACK browser_view_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK browser_view_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -174,6 +191,8 @@ browser_view_as_scroll_view(struct _cef_view_t* self) { cef_textfield_t* CEF_CALLBACK browser_view_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -191,6 +210,8 @@ browser_view_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK browser_view_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -208,6 +229,8 @@ browser_view_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK browser_view_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -224,6 +247,8 @@ browser_view_to_string(struct _cef_view_t* self, int include_children) { } int CEF_CALLBACK browser_view_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -240,6 +265,8 @@ int CEF_CALLBACK browser_view_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK browser_view_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -257,6 +284,8 @@ int CEF_CALLBACK browser_view_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK browser_view_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -278,6 +307,8 @@ int CEF_CALLBACK browser_view_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK browser_view_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -295,6 +326,8 @@ browser_view_get_delegate(struct _cef_view_t* self) { struct _cef_window_t* CEF_CALLBACK browser_view_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -311,6 +344,8 @@ browser_view_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK browser_view_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -327,6 +362,8 @@ int CEF_CALLBACK browser_view_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK browser_view_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -339,6 +376,8 @@ void CEF_CALLBACK browser_view_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK browser_view_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -356,6 +395,8 @@ int CEF_CALLBACK browser_view_get_group_id(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -369,6 +410,8 @@ void CEF_CALLBACK browser_view_set_group_id(struct _cef_view_t* self, struct _cef_view_t* CEF_CALLBACK browser_view_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -386,6 +429,8 @@ browser_view_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK browser_view_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -403,6 +448,8 @@ browser_view_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK browser_view_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -422,6 +469,8 @@ void CEF_CALLBACK browser_view_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK browser_view_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -439,6 +488,8 @@ cef_rect_t CEF_CALLBACK browser_view_get_bounds(struct _cef_view_t* self) { cef_rect_t CEF_CALLBACK browser_view_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -456,6 +507,8 @@ browser_view_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -475,6 +528,8 @@ void CEF_CALLBACK browser_view_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK browser_view_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -492,6 +547,8 @@ cef_size_t CEF_CALLBACK browser_view_get_size(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -511,6 +568,8 @@ void CEF_CALLBACK browser_view_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -528,6 +587,8 @@ cef_point_t CEF_CALLBACK browser_view_get_position(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK browser_view_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -545,6 +606,8 @@ browser_view_get_preferred_size(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -558,6 +621,8 @@ browser_view_size_to_preferred_size(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK browser_view_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -575,6 +640,8 @@ browser_view_get_minimum_size(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK browser_view_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -592,6 +659,8 @@ browser_view_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK browser_view_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -608,6 +677,8 @@ int CEF_CALLBACK browser_view_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK browser_view_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -621,6 +692,8 @@ void CEF_CALLBACK browser_view_invalidate_layout(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -633,6 +706,8 @@ void CEF_CALLBACK browser_view_set_visible(struct _cef_view_t* self, } int CEF_CALLBACK browser_view_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -649,6 +724,8 @@ int CEF_CALLBACK browser_view_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK browser_view_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -666,6 +743,8 @@ int CEF_CALLBACK browser_view_is_drawn(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -678,6 +757,8 @@ void CEF_CALLBACK browser_view_set_enabled(struct _cef_view_t* self, } int CEF_CALLBACK browser_view_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -695,6 +776,8 @@ int CEF_CALLBACK browser_view_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -707,6 +790,8 @@ void CEF_CALLBACK browser_view_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK browser_view_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -724,6 +809,8 @@ int CEF_CALLBACK browser_view_is_focusable(struct _cef_view_t* self) { int CEF_CALLBACK browser_view_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -740,6 +827,8 @@ browser_view_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK browser_view_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -753,6 +842,8 @@ void CEF_CALLBACK browser_view_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK browser_view_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -766,6 +857,8 @@ void CEF_CALLBACK browser_view_set_background_color(struct _cef_view_t* self, cef_color_t CEF_CALLBACK browser_view_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -783,6 +876,8 @@ browser_view_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK browser_view_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -812,6 +907,8 @@ int CEF_CALLBACK browser_view_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK browser_view_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -840,6 +937,8 @@ browser_view_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK browser_view_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -869,6 +968,8 @@ int CEF_CALLBACK browser_view_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK browser_view_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -898,6 +999,8 @@ browser_view_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK browser_view_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -931,6 +1034,8 @@ int CEF_CALLBACK browser_view_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK browser_view_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1025,6 +1130,12 @@ CefBrowserViewCppToC::CefBrowserViewCppToC() { browser_view_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefBrowserViewCppToC::~CefBrowserViewCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/browser_view_cpptoc.h b/libcef_dll/cpptoc/views/browser_view_cpptoc.h index 5a8dcea20..b705354c2 100644 --- a/libcef_dll/cpptoc/views/browser_view_cpptoc.h +++ b/libcef_dll/cpptoc/views/browser_view_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cc6519f0303e67f9c5bb230909a0e3dec896950b$ +// $hash=16ff454a480c329617fea13843f8ed1c7cc21a1e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefBrowserViewCppToC : public CefCppToCRefCounted { public: CefBrowserViewCppToC(); + virtual ~CefBrowserViewCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.cc index 97472170d..b94838888 100644 --- a/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a9c095d4f899068160799d6caa4660c2d440ea2c$ +// $hash=b1d5a443abaf42f8b6c36a31f119c7430df43bca$ // #include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -26,6 +27,8 @@ void CEF_CALLBACK browser_view_delegate_on_browser_created( struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -50,6 +53,8 @@ void CEF_CALLBACK browser_view_delegate_on_browser_destroyed( struct _cef_browser_view_delegate_t* self, cef_browser_view_t* browser_view, cef_browser_t* browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +82,8 @@ browser_view_delegate_get_delegate_for_popup_browser_view( const struct _cef_browser_settings_t* settings, cef_client_t* client, int is_devtools) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +122,8 @@ int CEF_CALLBACK browser_view_delegate_on_popup_browser_view_created( cef_browser_view_t* browser_view, cef_browser_view_t* popup_browser_view, int is_devtools) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -143,6 +152,8 @@ int CEF_CALLBACK browser_view_delegate_on_popup_browser_view_created( cef_size_t CEF_CALLBACK browser_view_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -165,6 +176,8 @@ browser_view_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK browser_view_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -187,6 +200,8 @@ browser_view_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK browser_view_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -210,6 +225,8 @@ int CEF_CALLBACK browser_view_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -234,6 +251,8 @@ browser_view_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -260,6 +279,8 @@ browser_view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -284,6 +305,8 @@ browser_view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK browser_view_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -303,6 +326,8 @@ browser_view_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK browser_view_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -345,6 +370,12 @@ CefBrowserViewDelegateCppToC::CefBrowserViewDelegateCppToC() { GetStruct()->base.on_blur = browser_view_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefBrowserViewDelegateCppToC::~CefBrowserViewDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefBrowserViewDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h b/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h index 8a36f1204..b070129d3 100644 --- a/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=76e7ebaa4de60da787cbda41be1b00dd080cd621$ +// $hash=81e89b48c869a73e0a132889f43088bb589bfc5a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_DELEGATE_CPPTOC_H_ @@ -36,6 +36,7 @@ class CefBrowserViewDelegateCppToC cef_browser_view_delegate_t> { public: CefBrowserViewDelegateCppToC(); + virtual ~CefBrowserViewDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_BROWSER_VIEW_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/button_cpptoc.cc b/libcef_dll/cpptoc/views/button_cpptoc.cc index e4fdb9291..aef38a98b 100644 --- a/libcef_dll/cpptoc/views/button_cpptoc.cc +++ b/libcef_dll/cpptoc/views/button_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=923f9d903634b18aff96ca61d9d4bc402e3be551$ +// $hash=21ebfcd36a54d1b3004b6e4e1b2ab3760f23110a$ // #include "libcef_dll/cpptoc/views/button_cpptoc.h" @@ -22,6 +22,7 @@ #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -29,6 +30,8 @@ namespace { cef_label_button_t* CEF_CALLBACK button_as_label_button(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,8 @@ button_as_label_button(struct _cef_button_t* self) { void CEF_CALLBACK button_set_state(struct _cef_button_t* self, cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ void CEF_CALLBACK button_set_state(struct _cef_button_t* self, } cef_button_state_t CEF_CALLBACK button_get_state(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,8 @@ cef_button_state_t CEF_CALLBACK button_get_state(struct _cef_button_t* self) { void CEF_CALLBACK button_set_ink_drop_enabled(struct _cef_button_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +92,8 @@ void CEF_CALLBACK button_set_ink_drop_enabled(struct _cef_button_t* self, void CEF_CALLBACK button_set_tooltip_text(struct _cef_button_t* self, const cef_string_t* tooltip_text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -99,6 +110,8 @@ void CEF_CALLBACK button_set_tooltip_text(struct _cef_button_t* self, void CEF_CALLBACK button_set_accessible_name(struct _cef_button_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +128,8 @@ void CEF_CALLBACK button_set_accessible_name(struct _cef_button_t* self, cef_browser_view_t* CEF_CALLBACK button_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -131,6 +146,8 @@ button_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK button_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -146,6 +163,8 @@ cef_button_t* CEF_CALLBACK button_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK button_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +181,8 @@ cef_panel_t* CEF_CALLBACK button_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK button_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +199,8 @@ button_as_scroll_view(struct _cef_view_t* self) { } cef_textfield_t* CEF_CALLBACK button_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -195,6 +218,8 @@ cef_textfield_t* CEF_CALLBACK button_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK button_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -212,6 +237,8 @@ button_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK button_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -228,6 +255,8 @@ cef_string_userfree_t CEF_CALLBACK button_to_string(struct _cef_view_t* self, } int CEF_CALLBACK button_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -243,6 +272,8 @@ int CEF_CALLBACK button_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK button_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -259,6 +290,8 @@ int CEF_CALLBACK button_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK button_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -279,6 +312,8 @@ int CEF_CALLBACK button_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK button_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -295,6 +330,8 @@ button_get_delegate(struct _cef_view_t* self) { } struct _cef_window_t* CEF_CALLBACK button_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -310,6 +347,8 @@ struct _cef_window_t* CEF_CALLBACK button_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK button_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -325,6 +364,8 @@ int CEF_CALLBACK button_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK button_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +377,8 @@ void CEF_CALLBACK button_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK button_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -351,6 +394,8 @@ int CEF_CALLBACK button_get_group_id(struct _cef_view_t* self) { } void CEF_CALLBACK button_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -364,6 +409,8 @@ void CEF_CALLBACK button_set_group_id(struct _cef_view_t* self, int group_id) { struct _cef_view_t* CEF_CALLBACK button_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -381,6 +428,8 @@ button_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK button_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -398,6 +447,8 @@ button_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK button_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -417,6 +468,8 @@ void CEF_CALLBACK button_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK button_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -432,6 +485,8 @@ cef_rect_t CEF_CALLBACK button_get_bounds(struct _cef_view_t* self) { } cef_rect_t CEF_CALLBACK button_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -449,6 +504,8 @@ cef_rect_t CEF_CALLBACK button_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK button_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -467,6 +524,8 @@ void CEF_CALLBACK button_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK button_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -483,6 +542,8 @@ cef_size_t CEF_CALLBACK button_get_size(struct _cef_view_t* self) { void CEF_CALLBACK button_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -502,6 +563,8 @@ void CEF_CALLBACK button_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -518,6 +581,8 @@ cef_point_t CEF_CALLBACK button_get_position(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK button_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -534,6 +599,8 @@ cef_size_t CEF_CALLBACK button_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK button_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -546,6 +613,8 @@ void CEF_CALLBACK button_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK button_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -562,6 +631,8 @@ cef_size_t CEF_CALLBACK button_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK button_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -579,6 +650,8 @@ cef_size_t CEF_CALLBACK button_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK button_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -594,6 +667,8 @@ int CEF_CALLBACK button_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK button_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -606,6 +681,8 @@ void CEF_CALLBACK button_invalidate_layout(struct _cef_view_t* self) { } void CEF_CALLBACK button_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -618,6 +695,8 @@ void CEF_CALLBACK button_set_visible(struct _cef_view_t* self, int visible) { } int CEF_CALLBACK button_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -633,6 +712,8 @@ int CEF_CALLBACK button_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK button_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -648,6 +729,8 @@ int CEF_CALLBACK button_is_drawn(struct _cef_view_t* self) { } void CEF_CALLBACK button_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -660,6 +743,8 @@ void CEF_CALLBACK button_set_enabled(struct _cef_view_t* self, int enabled) { } int CEF_CALLBACK button_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -676,6 +761,8 @@ int CEF_CALLBACK button_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK button_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -688,6 +775,8 @@ void CEF_CALLBACK button_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK button_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -703,6 +792,8 @@ int CEF_CALLBACK button_is_focusable(struct _cef_view_t* self) { } int CEF_CALLBACK button_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -718,6 +809,8 @@ int CEF_CALLBACK button_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK button_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -730,6 +823,8 @@ void CEF_CALLBACK button_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK button_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -742,6 +837,8 @@ void CEF_CALLBACK button_set_background_color(struct _cef_view_t* self, } cef_color_t CEF_CALLBACK button_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -759,6 +856,8 @@ cef_color_t CEF_CALLBACK button_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -786,6 +885,8 @@ int CEF_CALLBACK button_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -813,6 +914,8 @@ int CEF_CALLBACK button_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -840,6 +943,8 @@ int CEF_CALLBACK button_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -868,6 +973,8 @@ int CEF_CALLBACK button_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -901,6 +1008,8 @@ int CEF_CALLBACK button_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK button_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -995,6 +1104,12 @@ CefButtonCppToC::CefButtonCppToC() { GetStruct()->base.convert_point_from_view = button_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefButtonCppToC::~CefButtonCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/button_cpptoc.h b/libcef_dll/cpptoc/views/button_cpptoc.h index 6c90a49ee..e3f29fdb9 100644 --- a/libcef_dll/cpptoc/views/button_cpptoc.h +++ b/libcef_dll/cpptoc/views/button_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a9d8acda7bd6f14d38e804927c0fb5448b82b1bd$ +// $hash=7ed195825a3d893f05a848e9d87ff86637908f90$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefButtonCppToC : public CefCppToCRefCounted { public: CefButtonCppToC(); + virtual ~CefButtonCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/button_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/button_delegate_cpptoc.cc index 1f044d208..5d1e67ad1 100644 --- a/libcef_dll/cpptoc/views/button_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/button_delegate_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4759c2358de324fbdbfa4ae052a0ec50503607f7$ +// $hash=dde104d729355720a66995dbf947c1c58e27d707$ // #include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/button_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ namespace { void CEF_CALLBACK button_delegate_on_button_pressed(struct _cef_button_delegate_t* self, cef_button_t* button) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,8 @@ button_delegate_on_button_pressed(struct _cef_button_delegate_t* self, void CEF_CALLBACK button_delegate_on_button_state_changed(struct _cef_button_delegate_t* self, cef_button_t* button) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +65,8 @@ button_delegate_on_button_state_changed(struct _cef_button_delegate_t* self, cef_size_t CEF_CALLBACK button_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +89,8 @@ button_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK button_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +113,8 @@ button_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK button_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +138,8 @@ int CEF_CALLBACK button_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +164,8 @@ button_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -176,6 +191,8 @@ button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -198,6 +215,8 @@ button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -215,6 +234,8 @@ void CEF_CALLBACK button_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK button_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -250,6 +271,12 @@ CefButtonDelegateCppToC::CefButtonDelegateCppToC() { GetStruct()->base.on_blur = button_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefButtonDelegateCppToC::~CefButtonDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefButtonDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/button_delegate_cpptoc.h b/libcef_dll/cpptoc/views/button_delegate_cpptoc.h index 80378d6f4..2d7a33a16 100644 --- a/libcef_dll/cpptoc/views/button_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/button_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=63abf099c1e7701f9dd1ea1820e6bb2659b846d9$ +// $hash=1c747d0d3f7d54f9a949f18db668c9c6fc887e39$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_DELEGATE_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefButtonDelegateCppToC cef_button_delegate_t> { public: CefButtonDelegateCppToC(); + virtual ~CefButtonDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_BUTTON_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/display_cpptoc.cc b/libcef_dll/cpptoc/views/display_cpptoc.cc index 50d1c61fd..5362868ac 100644 --- a/libcef_dll/cpptoc/views/display_cpptoc.cc +++ b/libcef_dll/cpptoc/views/display_cpptoc.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dc68eef1f2c7908383ba3d253f98c1a7652425a1$ +// $hash=ba440d81993b7d2bff96385bc633c246fb47c8fe$ // #include "libcef_dll/cpptoc/views/display_cpptoc.h" #include +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_display_t* cef_display_get_primary() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -30,6 +33,8 @@ CEF_EXPORT cef_display_t* cef_display_get_primary() { CEF_EXPORT cef_display_t* cef_display_get_nearest_point( const cef_point_t* point, int input_pixel_coords) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: point; type: simple_byref_const @@ -51,6 +56,8 @@ CEF_EXPORT cef_display_t* cef_display_get_nearest_point( CEF_EXPORT cef_display_t* cef_display_get_matching_bounds( const cef_rect_t* bounds, int input_pixel_coords) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: bounds; type: simple_byref_const @@ -70,6 +77,8 @@ CEF_EXPORT cef_display_t* cef_display_get_matching_bounds( } CEF_EXPORT size_t cef_display_get_count() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -81,6 +90,8 @@ CEF_EXPORT size_t cef_display_get_count() { CEF_EXPORT void cef_display_get_alls(size_t* displaysCount, cef_display_t** displays) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: displays; type: refptr_vec_same_byref @@ -115,6 +126,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int64 CEF_CALLBACK display_get_id(struct _cef_display_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -130,6 +143,8 @@ int64 CEF_CALLBACK display_get_id(struct _cef_display_t* self) { float CEF_CALLBACK display_get_device_scale_factor(struct _cef_display_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -145,6 +160,8 @@ display_get_device_scale_factor(struct _cef_display_t* self) { void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -168,6 +185,8 @@ void CEF_CALLBACK display_convert_point_to_pixels(struct _cef_display_t* self, void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -190,6 +209,8 @@ void CEF_CALLBACK display_convert_point_from_pixels(struct _cef_display_t* self, } cef_rect_t CEF_CALLBACK display_get_bounds(struct _cef_display_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -204,6 +225,8 @@ cef_rect_t CEF_CALLBACK display_get_bounds(struct _cef_display_t* self) { } cef_rect_t CEF_CALLBACK display_get_work_area(struct _cef_display_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -218,6 +241,8 @@ cef_rect_t CEF_CALLBACK display_get_work_area(struct _cef_display_t* self) { } int CEF_CALLBACK display_get_rotation(struct _cef_display_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +270,12 @@ CefDisplayCppToC::CefDisplayCppToC() { GetStruct()->get_rotation = display_get_rotation; } +// DESTRUCTOR - Do not edit by hand. + +CefDisplayCppToC::~CefDisplayCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/display_cpptoc.h b/libcef_dll/cpptoc/views/display_cpptoc.h index 2b2c234a7..2b5383bf1 100644 --- a/libcef_dll/cpptoc/views/display_cpptoc.h +++ b/libcef_dll/cpptoc/views/display_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ec2f756b6c13b2442865c1b91fd000007967e76b$ +// $hash=ab108dbcd1d5aa62d37a545e5b7e4aad22e708b9$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_DISPLAY_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefDisplayCppToC : public CefCppToCRefCounted { public: CefDisplayCppToC(); + virtual ~CefDisplayCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_DISPLAY_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/fill_layout_cpptoc.cc b/libcef_dll/cpptoc/views/fill_layout_cpptoc.cc index 33a5a4d74..3330ab34c 100644 --- a/libcef_dll/cpptoc/views/fill_layout_cpptoc.cc +++ b/libcef_dll/cpptoc/views/fill_layout_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c2ac1661c8a054728e4c3d5eacb8b8d23b6f7213$ +// $hash=54ed76ef41fc992a52da607a24b07d9469ca81e0$ // #include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h" #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -21,6 +22,8 @@ namespace { cef_box_layout_t* CEF_CALLBACK fill_layout_as_box_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -38,6 +41,8 @@ fill_layout_as_box_layout(struct _cef_layout_t* self) { cef_fill_layout_t* CEF_CALLBACK fill_layout_as_fill_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -54,6 +59,8 @@ fill_layout_as_fill_layout(struct _cef_layout_t* self) { } int CEF_CALLBACK fill_layout_is_valid(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -79,6 +86,12 @@ CefFillLayoutCppToC::CefFillLayoutCppToC() { GetStruct()->base.is_valid = fill_layout_is_valid; } +// DESTRUCTOR - Do not edit by hand. + +CefFillLayoutCppToC::~CefFillLayoutCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/fill_layout_cpptoc.h b/libcef_dll/cpptoc/views/fill_layout_cpptoc.h index af812c4f5..fa43a565a 100644 --- a/libcef_dll/cpptoc/views/fill_layout_cpptoc.h +++ b/libcef_dll/cpptoc/views/fill_layout_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cef3646532d2db6b41e3746f363de1bd18a77a78$ +// $hash=6de2324289f34cb9f6eb69f2dd91a161185aa19e$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_FILL_LAYOUT_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefFillLayoutCppToC : public CefCppToCRefCounted { public: CefFillLayoutCppToC(); + virtual ~CefFillLayoutCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_FILL_LAYOUT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/label_button_cpptoc.cc b/libcef_dll/cpptoc/views/label_button_cpptoc.cc index 5a2692a97..57e79e554 100644 --- a/libcef_dll/cpptoc/views/label_button_cpptoc.cc +++ b/libcef_dll/cpptoc/views/label_button_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=52fba8dedd3422e2c2fb47ae83a5e6e8ea4cede3$ +// $hash=307fd7a1cc06e767ef33817aa2f0d2407ed8fe7d$ // #include "libcef_dll/cpptoc/views/label_button_cpptoc.h" @@ -24,6 +24,7 @@ #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -31,6 +32,8 @@ CEF_EXPORT cef_label_button_t* cef_label_button_create( cef_button_delegate_t* delegate, const cef_string_t* text, int with_frame) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -54,6 +57,8 @@ namespace { cef_menu_button_t* CEF_CALLBACK label_button_as_menu_button(struct _cef_label_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -70,6 +75,8 @@ label_button_as_menu_button(struct _cef_label_button_t* self) { void CEF_CALLBACK label_button_set_text(struct _cef_label_button_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -86,6 +93,8 @@ void CEF_CALLBACK label_button_set_text(struct _cef_label_button_t* self, cef_string_userfree_t CEF_CALLBACK label_button_get_text(struct _cef_label_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -102,6 +111,8 @@ label_button_get_text(struct _cef_label_button_t* self) { void CEF_CALLBACK label_button_set_image(struct _cef_label_button_t* self, cef_button_state_t button_state, cef_image_t* image) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +128,8 @@ void CEF_CALLBACK label_button_set_image(struct _cef_label_button_t* self, cef_image_t* CEF_CALLBACK label_button_get_image(struct _cef_label_button_t* self, cef_button_state_t button_state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -134,6 +147,8 @@ label_button_get_image(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_text_color(struct _cef_label_button_t* self, cef_button_state_t for_state, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -147,6 +162,8 @@ void CEF_CALLBACK label_button_set_text_color(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_enabled_text_colors(struct _cef_label_button_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -159,6 +176,8 @@ label_button_set_enabled_text_colors(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_font_list(struct _cef_label_button_t* self, const cef_string_t* font_list) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -176,6 +195,8 @@ void CEF_CALLBACK label_button_set_font_list(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_horizontal_alignment(struct _cef_label_button_t* self, cef_horizontal_alignment_t alignment) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -189,6 +210,8 @@ label_button_set_horizontal_alignment(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_minimum_size(struct _cef_label_button_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -209,6 +232,8 @@ label_button_set_minimum_size(struct _cef_label_button_t* self, void CEF_CALLBACK label_button_set_maximum_size(struct _cef_label_button_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -228,6 +253,8 @@ label_button_set_maximum_size(struct _cef_label_button_t* self, cef_label_button_t* CEF_CALLBACK label_button_as_label_button(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +272,8 @@ label_button_as_label_button(struct _cef_button_t* self) { void CEF_CALLBACK label_button_set_state(struct _cef_button_t* self, cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -258,6 +287,8 @@ void CEF_CALLBACK label_button_set_state(struct _cef_button_t* self, cef_button_state_t CEF_CALLBACK label_button_get_state(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -275,6 +306,8 @@ label_button_get_state(struct _cef_button_t* self) { void CEF_CALLBACK label_button_set_ink_drop_enabled(struct _cef_button_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -289,6 +322,8 @@ void CEF_CALLBACK label_button_set_ink_drop_enabled(struct _cef_button_t* self, void CEF_CALLBACK label_button_set_tooltip_text(struct _cef_button_t* self, const cef_string_t* tooltip_text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -306,6 +341,8 @@ label_button_set_tooltip_text(struct _cef_button_t* self, void CEF_CALLBACK label_button_set_accessible_name(struct _cef_button_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -323,6 +360,8 @@ void CEF_CALLBACK label_button_set_accessible_name(struct _cef_button_t* self, cef_browser_view_t* CEF_CALLBACK label_button_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -339,6 +378,8 @@ label_button_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK label_button_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -355,6 +396,8 @@ cef_button_t* CEF_CALLBACK label_button_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK label_button_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -372,6 +415,8 @@ cef_panel_t* CEF_CALLBACK label_button_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK label_button_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -389,6 +434,8 @@ label_button_as_scroll_view(struct _cef_view_t* self) { cef_textfield_t* CEF_CALLBACK label_button_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -406,6 +453,8 @@ label_button_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK label_button_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -423,6 +472,8 @@ label_button_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK label_button_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -439,6 +490,8 @@ label_button_to_string(struct _cef_view_t* self, int include_children) { } int CEF_CALLBACK label_button_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -455,6 +508,8 @@ int CEF_CALLBACK label_button_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK label_button_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -472,6 +527,8 @@ int CEF_CALLBACK label_button_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK label_button_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -493,6 +550,8 @@ int CEF_CALLBACK label_button_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK label_button_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -510,6 +569,8 @@ label_button_get_delegate(struct _cef_view_t* self) { struct _cef_window_t* CEF_CALLBACK label_button_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -526,6 +587,8 @@ label_button_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK label_button_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -542,6 +605,8 @@ int CEF_CALLBACK label_button_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK label_button_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -554,6 +619,8 @@ void CEF_CALLBACK label_button_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK label_button_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -571,6 +638,8 @@ int CEF_CALLBACK label_button_get_group_id(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -584,6 +653,8 @@ void CEF_CALLBACK label_button_set_group_id(struct _cef_view_t* self, struct _cef_view_t* CEF_CALLBACK label_button_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -601,6 +672,8 @@ label_button_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK label_button_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -618,6 +691,8 @@ label_button_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK label_button_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -637,6 +712,8 @@ void CEF_CALLBACK label_button_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK label_button_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -654,6 +731,8 @@ cef_rect_t CEF_CALLBACK label_button_get_bounds(struct _cef_view_t* self) { cef_rect_t CEF_CALLBACK label_button_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -671,6 +750,8 @@ label_button_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -690,6 +771,8 @@ void CEF_CALLBACK label_button_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK label_button_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -707,6 +790,8 @@ cef_size_t CEF_CALLBACK label_button_get_size(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -726,6 +811,8 @@ void CEF_CALLBACK label_button_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -743,6 +830,8 @@ cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK label_button_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -760,6 +849,8 @@ label_button_get_preferred_size(struct _cef_view_t* self) { void CEF_CALLBACK label_button_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -773,6 +864,8 @@ label_button_size_to_preferred_size(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK label_button_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -790,6 +883,8 @@ label_button_get_minimum_size(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK label_button_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -807,6 +902,8 @@ label_button_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK label_button_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -823,6 +920,8 @@ int CEF_CALLBACK label_button_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK label_button_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -836,6 +935,8 @@ void CEF_CALLBACK label_button_invalidate_layout(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -848,6 +949,8 @@ void CEF_CALLBACK label_button_set_visible(struct _cef_view_t* self, } int CEF_CALLBACK label_button_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -864,6 +967,8 @@ int CEF_CALLBACK label_button_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK label_button_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -881,6 +986,8 @@ int CEF_CALLBACK label_button_is_drawn(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -893,6 +1000,8 @@ void CEF_CALLBACK label_button_set_enabled(struct _cef_view_t* self, } int CEF_CALLBACK label_button_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -910,6 +1019,8 @@ int CEF_CALLBACK label_button_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -922,6 +1033,8 @@ void CEF_CALLBACK label_button_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK label_button_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -939,6 +1052,8 @@ int CEF_CALLBACK label_button_is_focusable(struct _cef_view_t* self) { int CEF_CALLBACK label_button_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -955,6 +1070,8 @@ label_button_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK label_button_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -968,6 +1085,8 @@ void CEF_CALLBACK label_button_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK label_button_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -981,6 +1100,8 @@ void CEF_CALLBACK label_button_set_background_color(struct _cef_view_t* self, cef_color_t CEF_CALLBACK label_button_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -998,6 +1119,8 @@ label_button_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1027,6 +1150,8 @@ int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK label_button_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1055,6 +1180,8 @@ label_button_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1084,6 +1211,8 @@ int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK label_button_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1113,6 +1242,8 @@ label_button_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1146,6 +1277,8 @@ int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK label_button_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1260,6 +1393,12 @@ CefLabelButtonCppToC::CefLabelButtonCppToC() { label_button_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefLabelButtonCppToC::~CefLabelButtonCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/label_button_cpptoc.h b/libcef_dll/cpptoc/views/label_button_cpptoc.h index 89655babe..ed49b1e1f 100644 --- a/libcef_dll/cpptoc/views/label_button_cpptoc.h +++ b/libcef_dll/cpptoc/views/label_button_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=16b8910c5ac13520e43c3449d28b515f6732f39f$ +// $hash=7a34fb72f1e0e39673410b1dbd9b4af364b37f21$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LABEL_BUTTON_CPPTOC_H_ @@ -33,6 +33,7 @@ class CefLabelButtonCppToC : public CefCppToCRefCounted { public: CefLabelButtonCppToC(); + virtual ~CefLabelButtonCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_LABEL_BUTTON_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/layout_cpptoc.cc b/libcef_dll/cpptoc/views/layout_cpptoc.cc index 74a575eb9..05fe6cc59 100644 --- a/libcef_dll/cpptoc/views/layout_cpptoc.cc +++ b/libcef_dll/cpptoc/views/layout_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=17464b2b28c8fa2ae7f67978f93e2d8bc13fe1ed$ +// $hash=1871dbf9adbb5c92705ff30b72ac19735928ce4b$ // #include "libcef_dll/cpptoc/views/layout_cpptoc.h" #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h" #include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ namespace { cef_box_layout_t* CEF_CALLBACK layout_as_box_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -37,6 +40,8 @@ layout_as_box_layout(struct _cef_layout_t* self) { cef_fill_layout_t* CEF_CALLBACK layout_as_fill_layout(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ layout_as_fill_layout(struct _cef_layout_t* self) { } int CEF_CALLBACK layout_is_valid(struct _cef_layout_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -74,6 +81,12 @@ CefLayoutCppToC::CefLayoutCppToC() { GetStruct()->is_valid = layout_is_valid; } +// DESTRUCTOR - Do not edit by hand. + +CefLayoutCppToC::~CefLayoutCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/layout_cpptoc.h b/libcef_dll/cpptoc/views/layout_cpptoc.h index 986e35a46..3ade772f7 100644 --- a/libcef_dll/cpptoc/views/layout_cpptoc.h +++ b/libcef_dll/cpptoc/views/layout_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c132272a5808e10d27b10f4393bfc248c53ba76d$ +// $hash=d4eb9d13b07ad780b4941fa4122a45cde2684d21$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_LAYOUT_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefLayoutCppToC : public CefCppToCRefCounted { public: CefLayoutCppToC(); + virtual ~CefLayoutCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_LAYOUT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/menu_button_cpptoc.cc b/libcef_dll/cpptoc/views/menu_button_cpptoc.cc index b53e8d4cb..86d6f2176 100644 --- a/libcef_dll/cpptoc/views/menu_button_cpptoc.cc +++ b/libcef_dll/cpptoc/views/menu_button_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cb2373876547c8f8e0315043a37b80b9f3d91d48$ +// $hash=9965360aa4fabed5c6550b97ff32445652d24cb6$ // #include "libcef_dll/cpptoc/views/menu_button_cpptoc.h" @@ -25,6 +25,7 @@ #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -32,6 +33,8 @@ CEF_EXPORT cef_menu_button_t* cef_menu_button_create( cef_menu_button_delegate_t* delegate, const cef_string_t* text, int with_frame) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -58,6 +61,8 @@ menu_button_show_menu(struct _cef_menu_button_t* self, cef_menu_model_t* menu_model, const cef_point_t* screen_point, cef_menu_anchor_position_t anchor_position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -81,6 +86,8 @@ menu_button_show_menu(struct _cef_menu_button_t* self, } void CEF_CALLBACK menu_button_trigger_menu(struct _cef_menu_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -93,6 +100,8 @@ void CEF_CALLBACK menu_button_trigger_menu(struct _cef_menu_button_t* self) { cef_menu_button_t* CEF_CALLBACK menu_button_as_menu_button(struct _cef_label_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -110,6 +119,8 @@ menu_button_as_menu_button(struct _cef_label_button_t* self) { void CEF_CALLBACK menu_button_set_text(struct _cef_label_button_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +138,8 @@ void CEF_CALLBACK menu_button_set_text(struct _cef_label_button_t* self, cef_string_userfree_t CEF_CALLBACK menu_button_get_text(struct _cef_label_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -145,6 +158,8 @@ menu_button_get_text(struct _cef_label_button_t* self) { void CEF_CALLBACK menu_button_set_image(struct _cef_label_button_t* self, cef_button_state_t button_state, cef_image_t* image) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -160,6 +175,8 @@ void CEF_CALLBACK menu_button_set_image(struct _cef_label_button_t* self, cef_image_t* CEF_CALLBACK menu_button_get_image(struct _cef_label_button_t* self, cef_button_state_t button_state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +195,8 @@ menu_button_get_image(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_text_color(struct _cef_label_button_t* self, cef_button_state_t for_state, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -192,6 +211,8 @@ void CEF_CALLBACK menu_button_set_text_color(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_enabled_text_colors(struct _cef_label_button_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -205,6 +226,8 @@ menu_button_set_enabled_text_colors(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_font_list(struct _cef_label_button_t* self, const cef_string_t* font_list) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -223,6 +246,8 @@ void CEF_CALLBACK menu_button_set_font_list(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_horizontal_alignment(struct _cef_label_button_t* self, cef_horizontal_alignment_t alignment) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -236,6 +261,8 @@ menu_button_set_horizontal_alignment(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_minimum_size(struct _cef_label_button_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -256,6 +283,8 @@ void CEF_CALLBACK menu_button_set_minimum_size(struct _cef_label_button_t* self, void CEF_CALLBACK menu_button_set_maximum_size(struct _cef_label_button_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -276,6 +305,8 @@ void CEF_CALLBACK menu_button_set_maximum_size(struct _cef_label_button_t* self, cef_label_button_t* CEF_CALLBACK menu_button_as_label_button(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -293,6 +324,8 @@ menu_button_as_label_button(struct _cef_button_t* self) { void CEF_CALLBACK menu_button_set_state(struct _cef_button_t* self, cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -306,6 +339,8 @@ void CEF_CALLBACK menu_button_set_state(struct _cef_button_t* self, cef_button_state_t CEF_CALLBACK menu_button_get_state(struct _cef_button_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -323,6 +358,8 @@ menu_button_get_state(struct _cef_button_t* self) { void CEF_CALLBACK menu_button_set_ink_drop_enabled(struct _cef_button_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -337,6 +374,8 @@ void CEF_CALLBACK menu_button_set_ink_drop_enabled(struct _cef_button_t* self, void CEF_CALLBACK menu_button_set_tooltip_text(struct _cef_button_t* self, const cef_string_t* tooltip_text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -354,6 +393,8 @@ menu_button_set_tooltip_text(struct _cef_button_t* self, void CEF_CALLBACK menu_button_set_accessible_name(struct _cef_button_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -371,6 +412,8 @@ void CEF_CALLBACK menu_button_set_accessible_name(struct _cef_button_t* self, cef_browser_view_t* CEF_CALLBACK menu_button_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -387,6 +430,8 @@ menu_button_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK menu_button_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -403,6 +448,8 @@ cef_button_t* CEF_CALLBACK menu_button_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK menu_button_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -420,6 +467,8 @@ cef_panel_t* CEF_CALLBACK menu_button_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK menu_button_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -437,6 +486,8 @@ menu_button_as_scroll_view(struct _cef_view_t* self) { cef_textfield_t* CEF_CALLBACK menu_button_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -454,6 +505,8 @@ menu_button_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK menu_button_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -471,6 +524,8 @@ menu_button_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK menu_button_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -487,6 +542,8 @@ menu_button_to_string(struct _cef_view_t* self, int include_children) { } int CEF_CALLBACK menu_button_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -503,6 +560,8 @@ int CEF_CALLBACK menu_button_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK menu_button_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -520,6 +579,8 @@ int CEF_CALLBACK menu_button_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK menu_button_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -541,6 +602,8 @@ int CEF_CALLBACK menu_button_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK menu_button_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -558,6 +621,8 @@ menu_button_get_delegate(struct _cef_view_t* self) { struct _cef_window_t* CEF_CALLBACK menu_button_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -574,6 +639,8 @@ menu_button_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK menu_button_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -590,6 +657,8 @@ int CEF_CALLBACK menu_button_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK menu_button_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -602,6 +671,8 @@ void CEF_CALLBACK menu_button_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK menu_button_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -619,6 +690,8 @@ int CEF_CALLBACK menu_button_get_group_id(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -632,6 +705,8 @@ void CEF_CALLBACK menu_button_set_group_id(struct _cef_view_t* self, struct _cef_view_t* CEF_CALLBACK menu_button_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -649,6 +724,8 @@ menu_button_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK menu_button_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -666,6 +743,8 @@ menu_button_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK menu_button_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -685,6 +764,8 @@ void CEF_CALLBACK menu_button_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK menu_button_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -702,6 +783,8 @@ cef_rect_t CEF_CALLBACK menu_button_get_bounds(struct _cef_view_t* self) { cef_rect_t CEF_CALLBACK menu_button_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -719,6 +802,8 @@ menu_button_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -738,6 +823,8 @@ void CEF_CALLBACK menu_button_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK menu_button_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -755,6 +842,8 @@ cef_size_t CEF_CALLBACK menu_button_get_size(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -774,6 +863,8 @@ void CEF_CALLBACK menu_button_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK menu_button_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -791,6 +882,8 @@ cef_point_t CEF_CALLBACK menu_button_get_position(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK menu_button_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -807,6 +900,8 @@ menu_button_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK menu_button_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -819,6 +914,8 @@ void CEF_CALLBACK menu_button_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK menu_button_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -835,6 +932,8 @@ cef_size_t CEF_CALLBACK menu_button_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK menu_button_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -852,6 +951,8 @@ cef_size_t CEF_CALLBACK menu_button_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK menu_button_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -868,6 +969,8 @@ int CEF_CALLBACK menu_button_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK menu_button_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -881,6 +984,8 @@ void CEF_CALLBACK menu_button_invalidate_layout(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -893,6 +998,8 @@ void CEF_CALLBACK menu_button_set_visible(struct _cef_view_t* self, } int CEF_CALLBACK menu_button_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -909,6 +1016,8 @@ int CEF_CALLBACK menu_button_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK menu_button_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -926,6 +1035,8 @@ int CEF_CALLBACK menu_button_is_drawn(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -938,6 +1049,8 @@ void CEF_CALLBACK menu_button_set_enabled(struct _cef_view_t* self, } int CEF_CALLBACK menu_button_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -955,6 +1068,8 @@ int CEF_CALLBACK menu_button_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -967,6 +1082,8 @@ void CEF_CALLBACK menu_button_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK menu_button_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -984,6 +1101,8 @@ int CEF_CALLBACK menu_button_is_focusable(struct _cef_view_t* self) { int CEF_CALLBACK menu_button_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1000,6 +1119,8 @@ menu_button_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK menu_button_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1013,6 +1134,8 @@ void CEF_CALLBACK menu_button_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK menu_button_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1026,6 +1149,8 @@ void CEF_CALLBACK menu_button_set_background_color(struct _cef_view_t* self, cef_color_t CEF_CALLBACK menu_button_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1043,6 +1168,8 @@ menu_button_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1071,6 +1198,8 @@ int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1099,6 +1228,8 @@ int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1127,6 +1258,8 @@ int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1156,6 +1289,8 @@ int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1189,6 +1324,8 @@ int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK menu_button_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1309,6 +1446,12 @@ CefMenuButtonCppToC::CefMenuButtonCppToC() { menu_button_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonCppToC::~CefMenuButtonCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/menu_button_cpptoc.h b/libcef_dll/cpptoc/views/menu_button_cpptoc.h index 7516c9711..a641a0724 100644 --- a/libcef_dll/cpptoc/views/menu_button_cpptoc.h +++ b/libcef_dll/cpptoc/views/menu_button_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=be11d5f9cef9a74b6ba3bf1133769e33b730dc71$ +// $hash=7c8d4e501014784b78f091915c13675d5229c5f3$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefMenuButtonCppToC : public CefCppToCRefCounted { public: CefMenuButtonCppToC(); + virtual ~CefMenuButtonCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.cc index f0f088cab..9482d535c 100644 --- a/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=76c6cfc0ebe911f66c2e48897c8ed6b4a375d6bb$ +// $hash=b65d9f74e43387e0439b39b8d08d55bb2ee0037b$ // #include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/views/menu_button_ctocpp.h" #include "libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -27,6 +28,8 @@ void CEF_CALLBACK menu_button_delegate_on_menu_button_pressed( cef_menu_button_t* menu_button, const cef_point_t* screen_point, cef_menu_button_pressed_lock_t* button_pressed_lock) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -57,6 +60,8 @@ void CEF_CALLBACK menu_button_delegate_on_menu_button_pressed( void CEF_CALLBACK menu_button_delegate_on_button_pressed(struct _cef_button_delegate_t* self, cef_button_t* button) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -76,6 +81,8 @@ menu_button_delegate_on_button_pressed(struct _cef_button_delegate_t* self, void CEF_CALLBACK menu_button_delegate_on_button_state_changed( struct _cef_button_delegate_t* self, cef_button_t* button) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -95,6 +102,8 @@ void CEF_CALLBACK menu_button_delegate_on_button_state_changed( cef_size_t CEF_CALLBACK menu_button_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +126,8 @@ menu_button_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK menu_button_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -139,6 +150,8 @@ menu_button_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK menu_button_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +175,8 @@ int CEF_CALLBACK menu_button_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -186,6 +201,8 @@ menu_button_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -212,6 +229,8 @@ menu_button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -236,6 +255,8 @@ menu_button_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK menu_button_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -255,6 +276,8 @@ menu_button_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK menu_button_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -297,6 +320,12 @@ CefMenuButtonDelegateCppToC::CefMenuButtonDelegateCppToC() { GetStruct()->base.base.on_blur = menu_button_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonDelegateCppToC::~CefMenuButtonDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefMenuButtonDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h b/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h index 6d55f1c82..a2a89666f 100644 --- a/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e4938a46b6be2a5efcc9a8a84a92fabddfeb6113$ +// $hash=1d6360a9081c8c22ee3251c25af75983ac53a466$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_DELEGATE_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefMenuButtonDelegateCppToC cef_menu_button_delegate_t> { public: CefMenuButtonDelegateCppToC(); + virtual ~CefMenuButtonDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.cc b/libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.cc index e2ee89228..e6815a9a3 100644 --- a/libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.cc +++ b/libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.cc @@ -9,15 +9,22 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3c9f08184ec1e44891975a6c3a5e4e18bacb81c3$ +// $hash=c20a84601d2c24d8925303f55784f5515f783e60$ // #include "libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // CONSTRUCTOR - Do not edit by hand. CefMenuButtonPressedLockCppToC::CefMenuButtonPressedLockCppToC() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonPressedLockCppToC::~CefMenuButtonPressedLockCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefMenuButtonPressedLockCppToC(); + virtual ~CefMenuButtonPressedLockCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_MENU_BUTTON_PRESSED_LOCK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/panel_cpptoc.cc b/libcef_dll/cpptoc/views/panel_cpptoc.cc index a72dae766..7f024871e 100644 --- a/libcef_dll/cpptoc/views/panel_cpptoc.cc +++ b/libcef_dll/cpptoc/views/panel_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ca906b2ea84bb6bfeab3976d8e444668570fe25a$ +// $hash=240cea5f2c68ff9ba01149e354ece03a17058755$ // #include "libcef_dll/cpptoc/views/panel_cpptoc.h" @@ -24,10 +24,13 @@ #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_panel_t* cef_panel_create(cef_panel_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -45,6 +48,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +65,8 @@ struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_t* self) { cef_fill_layout_t* CEF_CALLBACK panel_set_to_fill_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -77,6 +84,8 @@ panel_set_to_fill_layout(struct _cef_panel_t* self) { cef_box_layout_t* CEF_CALLBACK panel_set_to_box_layout(struct _cef_panel_t* self, const struct _cef_box_layout_settings_t* settings) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -101,6 +110,8 @@ panel_set_to_box_layout(struct _cef_panel_t* self, } cef_layout_t* CEF_CALLBACK panel_get_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +126,8 @@ cef_layout_t* CEF_CALLBACK panel_get_layout(struct _cef_panel_t* self) { } void CEF_CALLBACK panel_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -127,6 +140,8 @@ void CEF_CALLBACK panel_layout(struct _cef_panel_t* self) { void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self, struct _cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +159,8 @@ void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self, void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self, struct _cef_view_t* view, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -165,6 +182,8 @@ void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self, void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self, struct _cef_view_t* view, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -182,6 +201,8 @@ void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self, void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self, struct _cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -197,6 +218,8 @@ void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self, } void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -208,6 +231,8 @@ void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_t* self) { } size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -223,6 +248,8 @@ size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_t* self) { struct _cef_view_t* CEF_CALLBACK panel_get_child_view_at(struct _cef_panel_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -242,6 +269,8 @@ panel_get_child_view_at(struct _cef_panel_t* self, int index) { cef_browser_view_t* CEF_CALLBACK panel_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -258,6 +287,8 @@ panel_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK panel_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -273,6 +304,8 @@ cef_button_t* CEF_CALLBACK panel_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK panel_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -288,6 +321,8 @@ cef_panel_t* CEF_CALLBACK panel_as_panel(struct _cef_view_t* self) { } cef_scroll_view_t* CEF_CALLBACK panel_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -303,6 +338,8 @@ cef_scroll_view_t* CEF_CALLBACK panel_as_scroll_view(struct _cef_view_t* self) { } cef_textfield_t* CEF_CALLBACK panel_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -319,6 +356,8 @@ cef_textfield_t* CEF_CALLBACK panel_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK panel_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -335,6 +374,8 @@ panel_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -350,6 +391,8 @@ cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self, } int CEF_CALLBACK panel_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -365,6 +408,8 @@ int CEF_CALLBACK panel_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK panel_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -381,6 +426,8 @@ int CEF_CALLBACK panel_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK panel_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -401,6 +448,8 @@ int CEF_CALLBACK panel_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK panel_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -416,6 +465,8 @@ panel_get_delegate(struct _cef_view_t* self) { } struct _cef_window_t* CEF_CALLBACK panel_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -431,6 +482,8 @@ struct _cef_window_t* CEF_CALLBACK panel_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK panel_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -446,6 +499,8 @@ int CEF_CALLBACK panel_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK panel_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -457,6 +512,8 @@ void CEF_CALLBACK panel_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -472,6 +529,8 @@ int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) { } void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -485,6 +544,8 @@ void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, int group_id) { struct _cef_view_t* CEF_CALLBACK panel_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -502,6 +563,8 @@ panel_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -519,6 +582,8 @@ struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self, void CEF_CALLBACK panel_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -538,6 +603,8 @@ void CEF_CALLBACK panel_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -553,6 +620,8 @@ cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) { } cef_rect_t CEF_CALLBACK panel_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -569,6 +638,8 @@ cef_rect_t CEF_CALLBACK panel_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK panel_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -587,6 +658,8 @@ void CEF_CALLBACK panel_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -603,6 +676,8 @@ cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) { void CEF_CALLBACK panel_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -622,6 +697,8 @@ void CEF_CALLBACK panel_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -637,6 +714,8 @@ cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -652,6 +731,8 @@ cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK panel_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -664,6 +745,8 @@ void CEF_CALLBACK panel_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -679,6 +762,8 @@ cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK panel_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -695,6 +780,8 @@ cef_size_t CEF_CALLBACK panel_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -710,6 +797,8 @@ int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK panel_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -721,6 +810,8 @@ void CEF_CALLBACK panel_invalidate_layout(struct _cef_view_t* self) { } void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -733,6 +824,8 @@ void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, int visible) { } int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -748,6 +841,8 @@ int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK panel_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -763,6 +858,8 @@ int CEF_CALLBACK panel_is_drawn(struct _cef_view_t* self) { } void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -775,6 +872,8 @@ void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, int enabled) { } int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -790,6 +889,8 @@ int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) { } void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -802,6 +903,8 @@ void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, int focusable) { } int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -817,6 +920,8 @@ int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) { } int CEF_CALLBACK panel_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -832,6 +937,8 @@ int CEF_CALLBACK panel_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK panel_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -844,6 +951,8 @@ void CEF_CALLBACK panel_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK panel_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -856,6 +965,8 @@ void CEF_CALLBACK panel_set_background_color(struct _cef_view_t* self, } cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -873,6 +984,8 @@ cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -900,6 +1013,8 @@ int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -927,6 +1042,8 @@ int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -954,6 +1071,8 @@ int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -982,6 +1101,8 @@ int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1015,6 +1136,8 @@ int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK panel_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1113,6 +1236,12 @@ CefPanelCppToC::CefPanelCppToC() { GetStruct()->base.convert_point_from_view = panel_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefPanelCppToC::~CefPanelCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/panel_cpptoc.h b/libcef_dll/cpptoc/views/panel_cpptoc.h index d954f35c3..c20006902 100644 --- a/libcef_dll/cpptoc/views/panel_cpptoc.h +++ b/libcef_dll/cpptoc/views/panel_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dc46be461e44ff5b7e3a70ac9b0e7a08dd62fe08$ +// $hash=a897631d429250fbb701247e659eeebc8385f400$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_CPPTOC_H_ @@ -38,6 +38,7 @@ class CefPanelCppToC : public CefCppToCRefCounted { public: CefPanelCppToC(); + virtual ~CefPanelCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/panel_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/panel_delegate_cpptoc.cc index 8291dc72c..5388b0060 100644 --- a/libcef_dll/cpptoc/views/panel_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/panel_delegate_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5ec9b06b8a6dca099c8cb56929c11bd17314580$ +// $hash=8d53561e0ce0fcfc46d9a6803c2ed6a7c300a670$ // #include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { cef_size_t CEF_CALLBACK panel_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,8 @@ panel_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK panel_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +72,8 @@ panel_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK panel_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -90,6 +97,8 @@ int CEF_CALLBACK panel_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -114,6 +123,8 @@ panel_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -139,6 +150,8 @@ panel_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -161,6 +174,8 @@ panel_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK panel_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +193,8 @@ void CEF_CALLBACK panel_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK panel_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -210,6 +227,12 @@ CefPanelDelegateCppToC::CefPanelDelegateCppToC() { GetStruct()->base.on_blur = panel_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefPanelDelegateCppToC::~CefPanelDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefPanelDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/panel_delegate_cpptoc.h b/libcef_dll/cpptoc/views/panel_delegate_cpptoc.h index a118d1f93..a93ba3d14 100644 --- a/libcef_dll/cpptoc/views/panel_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/panel_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6edef25453e4214f5e5fcc0ab6e8d52ff79a937f$ +// $hash=687e38a03059a2f9f1511b52e48eaf2cec8e6773$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_DELEGATE_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefPanelDelegateCppToC cef_panel_delegate_t> { public: CefPanelDelegateCppToC(); + virtual ~CefPanelDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_PANEL_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/scroll_view_cpptoc.cc b/libcef_dll/cpptoc/views/scroll_view_cpptoc.cc index 93a4054c1..92a7a3dcf 100644 --- a/libcef_dll/cpptoc/views/scroll_view_cpptoc.cc +++ b/libcef_dll/cpptoc/views/scroll_view_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2bb785cef5ad691760cb51e5c93b148a4e945a98$ +// $hash=ce00a8514532f6218eabebdc138831103fb303a5$ // #include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h" @@ -20,11 +20,14 @@ #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_scroll_view_t* cef_scroll_view_create( struct _cef_view_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -43,6 +46,8 @@ namespace { void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self, struct _cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -59,6 +64,8 @@ void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self, struct _cef_view_t* CEF_CALLBACK scroll_view_get_content_view(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -74,6 +81,8 @@ scroll_view_get_content_view(struct _cef_scroll_view_t* self) { cef_rect_t CEF_CALLBACK scroll_view_get_visible_content_rect(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +98,8 @@ scroll_view_get_visible_content_rect(struct _cef_scroll_view_t* self) { int CEF_CALLBACK scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +115,8 @@ scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t* self) { int CEF_CALLBACK scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -119,6 +132,8 @@ scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t* self) { int CEF_CALLBACK scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -134,6 +149,8 @@ scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t* self) { int CEF_CALLBACK scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -149,6 +166,8 @@ scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t* self) { cef_browser_view_t* CEF_CALLBACK scroll_view_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -165,6 +184,8 @@ scroll_view_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK scroll_view_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -181,6 +202,8 @@ cef_button_t* CEF_CALLBACK scroll_view_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK scroll_view_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -198,6 +221,8 @@ cef_panel_t* CEF_CALLBACK scroll_view_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK scroll_view_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -215,6 +240,8 @@ scroll_view_as_scroll_view(struct _cef_view_t* self) { cef_textfield_t* CEF_CALLBACK scroll_view_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -232,6 +259,8 @@ scroll_view_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK scroll_view_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -249,6 +278,8 @@ scroll_view_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK scroll_view_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -265,6 +296,8 @@ scroll_view_to_string(struct _cef_view_t* self, int include_children) { } int CEF_CALLBACK scroll_view_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -281,6 +314,8 @@ int CEF_CALLBACK scroll_view_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK scroll_view_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -298,6 +333,8 @@ int CEF_CALLBACK scroll_view_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK scroll_view_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -319,6 +356,8 @@ int CEF_CALLBACK scroll_view_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK scroll_view_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +375,8 @@ scroll_view_get_delegate(struct _cef_view_t* self) { struct _cef_window_t* CEF_CALLBACK scroll_view_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -352,6 +393,8 @@ scroll_view_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK scroll_view_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -368,6 +411,8 @@ int CEF_CALLBACK scroll_view_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK scroll_view_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -380,6 +425,8 @@ void CEF_CALLBACK scroll_view_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -397,6 +444,8 @@ int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -410,6 +459,8 @@ void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self, struct _cef_view_t* CEF_CALLBACK scroll_view_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -427,6 +478,8 @@ scroll_view_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK scroll_view_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -444,6 +497,8 @@ scroll_view_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK scroll_view_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -463,6 +518,8 @@ void CEF_CALLBACK scroll_view_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -480,6 +537,8 @@ cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) { cef_rect_t CEF_CALLBACK scroll_view_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -497,6 +556,8 @@ scroll_view_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -516,6 +577,8 @@ void CEF_CALLBACK scroll_view_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -533,6 +596,8 @@ cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -552,6 +617,8 @@ void CEF_CALLBACK scroll_view_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -569,6 +636,8 @@ cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) { cef_size_t CEF_CALLBACK scroll_view_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -585,6 +654,8 @@ scroll_view_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -597,6 +668,8 @@ void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -613,6 +686,8 @@ cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -630,6 +705,8 @@ cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -646,6 +723,8 @@ int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -659,6 +738,8 @@ void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -671,6 +752,8 @@ void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self, } int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -687,6 +770,8 @@ int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -704,6 +789,8 @@ int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -716,6 +803,8 @@ void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self, } int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -733,6 +822,8 @@ int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -745,6 +836,8 @@ void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -762,6 +855,8 @@ int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) { int CEF_CALLBACK scroll_view_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -778,6 +873,8 @@ scroll_view_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -791,6 +888,8 @@ void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -804,6 +903,8 @@ void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self, cef_color_t CEF_CALLBACK scroll_view_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -821,6 +922,8 @@ scroll_view_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -849,6 +952,8 @@ int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -877,6 +982,8 @@ int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -905,6 +1012,8 @@ int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -934,6 +1043,8 @@ int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -967,6 +1078,8 @@ int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1067,6 +1180,12 @@ CefScrollViewCppToC::CefScrollViewCppToC() { scroll_view_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefScrollViewCppToC::~CefScrollViewCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/scroll_view_cpptoc.h b/libcef_dll/cpptoc/views/scroll_view_cpptoc.h index a96bcd9c0..6e425e568 100644 --- a/libcef_dll/cpptoc/views/scroll_view_cpptoc.h +++ b/libcef_dll/cpptoc/views/scroll_view_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4e2063730c3607673b332251c47593bd42cff29e$ +// $hash=6a38bf30fbbe1de396314d51b794d7286e4d2847$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_SCROLL_VIEW_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefScrollViewCppToC : public CefCppToCRefCounted { public: CefScrollViewCppToC(); + virtual ~CefScrollViewCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_SCROLL_VIEW_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/textfield_cpptoc.cc b/libcef_dll/cpptoc/views/textfield_cpptoc.cc index 42461a117..3aeb97479 100644 --- a/libcef_dll/cpptoc/views/textfield_cpptoc.cc +++ b/libcef_dll/cpptoc/views/textfield_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=22646f79cfb1cb3ecfdb36df6110c3942363da48$ +// $hash=2be3b25e13c832868534bcebfad46e357abc4b91$ // #include "libcef_dll/cpptoc/views/textfield_cpptoc.h" @@ -21,11 +21,14 @@ #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_textfield_t* cef_textfield_create( cef_textfield_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -44,6 +47,8 @@ namespace { void CEF_CALLBACK textfield_set_password_input(struct _cef_textfield_t* self, int password_input) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ void CEF_CALLBACK textfield_set_password_input(struct _cef_textfield_t* self, } int CEF_CALLBACK textfield_is_password_input(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,8 @@ int CEF_CALLBACK textfield_is_password_input(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_read_only(struct _cef_textfield_t* self, int read_only) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -82,6 +91,8 @@ void CEF_CALLBACK textfield_set_read_only(struct _cef_textfield_t* self, } int CEF_CALLBACK textfield_is_read_only(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -97,6 +108,8 @@ int CEF_CALLBACK textfield_is_read_only(struct _cef_textfield_t* self) { cef_string_userfree_t CEF_CALLBACK textfield_get_text(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -112,6 +125,8 @@ textfield_get_text(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_text(struct _cef_textfield_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -128,6 +143,8 @@ void CEF_CALLBACK textfield_set_text(struct _cef_textfield_t* self, void CEF_CALLBACK textfield_append_text(struct _cef_textfield_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -145,6 +162,8 @@ void CEF_CALLBACK textfield_append_text(struct _cef_textfield_t* self, void CEF_CALLBACK textfield_insert_or_replace_text(struct _cef_textfield_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -160,6 +179,8 @@ textfield_insert_or_replace_text(struct _cef_textfield_t* self, } int CEF_CALLBACK textfield_has_selection(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -175,6 +196,8 @@ int CEF_CALLBACK textfield_has_selection(struct _cef_textfield_t* self) { cef_string_userfree_t CEF_CALLBACK textfield_get_selected_text(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -190,6 +213,8 @@ textfield_get_selected_text(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_select_all(struct _cef_textfield_t* self, int reversed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -201,6 +226,8 @@ void CEF_CALLBACK textfield_select_all(struct _cef_textfield_t* self, } void CEF_CALLBACK textfield_clear_selection(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -213,6 +240,8 @@ void CEF_CALLBACK textfield_clear_selection(struct _cef_textfield_t* self) { cef_range_t CEF_CALLBACK textfield_get_selected_range(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -228,6 +257,8 @@ textfield_get_selected_range(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_select_range(struct _cef_textfield_t* self, const cef_range_t* range) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -247,6 +278,8 @@ void CEF_CALLBACK textfield_select_range(struct _cef_textfield_t* self, size_t CEF_CALLBACK textfield_get_cursor_position(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -262,6 +295,8 @@ textfield_get_cursor_position(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_text_color(struct _cef_textfield_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -274,6 +309,8 @@ void CEF_CALLBACK textfield_set_text_color(struct _cef_textfield_t* self, cef_color_t CEF_CALLBACK textfield_get_text_color(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -290,6 +327,8 @@ textfield_get_text_color(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_selection_text_color(struct _cef_textfield_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -302,6 +341,8 @@ textfield_set_selection_text_color(struct _cef_textfield_t* self, cef_color_t CEF_CALLBACK textfield_get_selection_text_color(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -318,6 +359,8 @@ textfield_get_selection_text_color(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_selection_background_color(struct _cef_textfield_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -330,6 +373,8 @@ textfield_set_selection_background_color(struct _cef_textfield_t* self, cef_color_t CEF_CALLBACK textfield_get_selection_background_color(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -346,6 +391,8 @@ textfield_get_selection_background_color(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_font_list(struct _cef_textfield_t* self, const cef_string_t* font_list) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -363,6 +410,8 @@ void CEF_CALLBACK textfield_set_font_list(struct _cef_textfield_t* self, void CEF_CALLBACK textfield_apply_text_color(struct _cef_textfield_t* self, cef_color_t color, const cef_range_t* range) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -384,6 +433,8 @@ void CEF_CALLBACK textfield_apply_text_style(struct _cef_textfield_t* self, cef_text_style_t style, int add, const cef_range_t* range) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -404,6 +455,8 @@ void CEF_CALLBACK textfield_apply_text_style(struct _cef_textfield_t* self, int CEF_CALLBACK textfield_is_command_enabled(struct _cef_textfield_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -419,6 +472,8 @@ int CEF_CALLBACK textfield_is_command_enabled(struct _cef_textfield_t* self, void CEF_CALLBACK textfield_execute_command(struct _cef_textfield_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -430,6 +485,8 @@ void CEF_CALLBACK textfield_execute_command(struct _cef_textfield_t* self, } void CEF_CALLBACK textfield_clear_edit_history(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -442,6 +499,8 @@ void CEF_CALLBACK textfield_clear_edit_history(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_placeholder_text(struct _cef_textfield_t* self, const cef_string_t* text) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -458,6 +517,8 @@ void CEF_CALLBACK textfield_set_placeholder_text(struct _cef_textfield_t* self, cef_string_userfree_t CEF_CALLBACK textfield_get_placeholder_text(struct _cef_textfield_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -474,6 +535,8 @@ textfield_get_placeholder_text(struct _cef_textfield_t* self) { void CEF_CALLBACK textfield_set_placeholder_text_color(struct _cef_textfield_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -486,6 +549,8 @@ textfield_set_placeholder_text_color(struct _cef_textfield_t* self, void CEF_CALLBACK textfield_set_accessible_name(struct _cef_textfield_t* self, const cef_string_t* name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -502,6 +567,8 @@ void CEF_CALLBACK textfield_set_accessible_name(struct _cef_textfield_t* self, cef_browser_view_t* CEF_CALLBACK textfield_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -518,6 +585,8 @@ textfield_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK textfield_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -534,6 +603,8 @@ cef_button_t* CEF_CALLBACK textfield_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK textfield_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -551,6 +622,8 @@ cef_panel_t* CEF_CALLBACK textfield_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK textfield_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -567,6 +640,8 @@ textfield_as_scroll_view(struct _cef_view_t* self) { } cef_textfield_t* CEF_CALLBACK textfield_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -584,6 +659,8 @@ cef_textfield_t* CEF_CALLBACK textfield_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK textfield_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -601,6 +678,8 @@ textfield_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK textfield_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -617,6 +696,8 @@ cef_string_userfree_t CEF_CALLBACK textfield_to_string(struct _cef_view_t* self, } int CEF_CALLBACK textfield_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -633,6 +714,8 @@ int CEF_CALLBACK textfield_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK textfield_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -650,6 +733,8 @@ int CEF_CALLBACK textfield_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK textfield_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -671,6 +756,8 @@ int CEF_CALLBACK textfield_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK textfield_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -688,6 +775,8 @@ textfield_get_delegate(struct _cef_view_t* self) { struct _cef_window_t* CEF_CALLBACK textfield_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -704,6 +793,8 @@ textfield_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK textfield_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -720,6 +811,8 @@ int CEF_CALLBACK textfield_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK textfield_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -731,6 +824,8 @@ void CEF_CALLBACK textfield_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK textfield_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -748,6 +843,8 @@ int CEF_CALLBACK textfield_get_group_id(struct _cef_view_t* self) { void CEF_CALLBACK textfield_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -761,6 +858,8 @@ void CEF_CALLBACK textfield_set_group_id(struct _cef_view_t* self, struct _cef_view_t* CEF_CALLBACK textfield_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -778,6 +877,8 @@ textfield_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK textfield_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -795,6 +896,8 @@ textfield_get_view_for_id(struct _cef_view_t* self, int id) { void CEF_CALLBACK textfield_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -814,6 +917,8 @@ void CEF_CALLBACK textfield_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK textfield_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -831,6 +936,8 @@ cef_rect_t CEF_CALLBACK textfield_get_bounds(struct _cef_view_t* self) { cef_rect_t CEF_CALLBACK textfield_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -848,6 +955,8 @@ textfield_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK textfield_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -867,6 +976,8 @@ void CEF_CALLBACK textfield_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK textfield_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -884,6 +995,8 @@ cef_size_t CEF_CALLBACK textfield_get_size(struct _cef_view_t* self) { void CEF_CALLBACK textfield_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -903,6 +1016,8 @@ void CEF_CALLBACK textfield_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK textfield_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -919,6 +1034,8 @@ cef_point_t CEF_CALLBACK textfield_get_position(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK textfield_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -935,6 +1052,8 @@ cef_size_t CEF_CALLBACK textfield_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK textfield_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -947,6 +1066,8 @@ void CEF_CALLBACK textfield_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK textfield_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -963,6 +1084,8 @@ cef_size_t CEF_CALLBACK textfield_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK textfield_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -980,6 +1103,8 @@ cef_size_t CEF_CALLBACK textfield_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK textfield_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -996,6 +1121,8 @@ int CEF_CALLBACK textfield_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK textfield_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1008,6 +1135,8 @@ void CEF_CALLBACK textfield_invalidate_layout(struct _cef_view_t* self) { } void CEF_CALLBACK textfield_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1020,6 +1149,8 @@ void CEF_CALLBACK textfield_set_visible(struct _cef_view_t* self, int visible) { } int CEF_CALLBACK textfield_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1036,6 +1167,8 @@ int CEF_CALLBACK textfield_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK textfield_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1052,6 +1185,8 @@ int CEF_CALLBACK textfield_is_drawn(struct _cef_view_t* self) { } void CEF_CALLBACK textfield_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1064,6 +1199,8 @@ void CEF_CALLBACK textfield_set_enabled(struct _cef_view_t* self, int enabled) { } int CEF_CALLBACK textfield_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1081,6 +1218,8 @@ int CEF_CALLBACK textfield_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK textfield_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1093,6 +1232,8 @@ void CEF_CALLBACK textfield_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK textfield_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1110,6 +1251,8 @@ int CEF_CALLBACK textfield_is_focusable(struct _cef_view_t* self) { int CEF_CALLBACK textfield_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1126,6 +1269,8 @@ textfield_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK textfield_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1139,6 +1284,8 @@ void CEF_CALLBACK textfield_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK textfield_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1152,6 +1299,8 @@ void CEF_CALLBACK textfield_set_background_color(struct _cef_view_t* self, cef_color_t CEF_CALLBACK textfield_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1169,6 +1318,8 @@ textfield_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK textfield_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1197,6 +1348,8 @@ int CEF_CALLBACK textfield_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK textfield_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1225,6 +1378,8 @@ int CEF_CALLBACK textfield_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK textfield_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1253,6 +1408,8 @@ int CEF_CALLBACK textfield_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK textfield_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1282,6 +1439,8 @@ int CEF_CALLBACK textfield_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK textfield_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1315,6 +1474,8 @@ int CEF_CALLBACK textfield_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK textfield_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1437,6 +1598,12 @@ CefTextfieldCppToC::CefTextfieldCppToC() { GetStruct()->base.convert_point_from_view = textfield_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefTextfieldCppToC::~CefTextfieldCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/views/textfield_cpptoc.h b/libcef_dll/cpptoc/views/textfield_cpptoc.h index 9fc057a6e..06342f453 100644 --- a/libcef_dll/cpptoc/views/textfield_cpptoc.h +++ b/libcef_dll/cpptoc/views/textfield_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=827f412320d7025eccd1aa0da102e07bf133b32c$ +// $hash=25ab9f78144a59d194393649435040a62aa9f85c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefTextfieldCppToC : public CefCppToCRefCounted { public: CefTextfieldCppToC(); + virtual ~CefTextfieldCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.cc index 607672067..eabd44430 100644 --- a/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ce1d1ccd00d0dd6e9317ffc0d79b058ba591c459$ +// $hash=69781413cbe8d2488fa16f5524efebb16f5700ab$ // #include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ int CEF_CALLBACK textfield_delegate_on_key_event(struct _cef_textfield_delegate_t* self, cef_textfield_t* textfield, const struct _cef_key_event_t* event) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -54,6 +57,8 @@ textfield_delegate_on_key_event(struct _cef_textfield_delegate_t* self, void CEF_CALLBACK textfield_delegate_on_after_user_action(struct _cef_textfield_delegate_t* self, cef_textfield_t* textfield) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -72,6 +77,8 @@ textfield_delegate_on_after_user_action(struct _cef_textfield_delegate_t* self, cef_size_t CEF_CALLBACK textfield_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -94,6 +101,8 @@ textfield_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK textfield_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -116,6 +125,8 @@ textfield_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK textfield_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -139,6 +150,8 @@ int CEF_CALLBACK textfield_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -163,6 +176,8 @@ textfield_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -189,6 +204,8 @@ textfield_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -212,6 +229,8 @@ textfield_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK textfield_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -230,6 +249,8 @@ void CEF_CALLBACK textfield_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK textfield_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -266,6 +287,12 @@ CefTextfieldDelegateCppToC::CefTextfieldDelegateCppToC() { GetStruct()->base.on_blur = textfield_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefTextfieldDelegateCppToC::~CefTextfieldDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefTextfieldDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h b/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h index 1b9872e50..25e0b2638 100644 --- a/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bec7ac1f85c4bef867e477b6dad64792398b1e9f$ +// $hash=e2f3df2338b4d4d20dd1eee34b04ec041e02db0f$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_DELEGATE_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefTextfieldDelegateCppToC cef_textfield_delegate_t> { public: CefTextfieldDelegateCppToC(); + virtual ~CefTextfieldDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_TEXTFIELD_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/view_cpptoc.cc b/libcef_dll/cpptoc/views/view_cpptoc.cc index 975d9780c..88ffb83bc 100644 --- a/libcef_dll/cpptoc/views/view_cpptoc.cc +++ b/libcef_dll/cpptoc/views/view_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a2d18e5341ca5503ec85c7033c4b5af54d63b8d2$ +// $hash=e347077560047ca31c041ee038be80f73ba47c88$ // #include "libcef_dll/cpptoc/views/view_cpptoc.h" @@ -22,6 +22,7 @@ #include "libcef_dll/cpptoc/views/textfield_cpptoc.h" #include "libcef_dll/cpptoc/views/window_cpptoc.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -29,6 +30,8 @@ namespace { cef_browser_view_t* CEF_CALLBACK view_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -43,6 +46,8 @@ view_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK view_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -57,6 +62,8 @@ cef_button_t* CEF_CALLBACK view_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK view_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,8 @@ cef_panel_t* CEF_CALLBACK view_as_panel(struct _cef_view_t* self) { } cef_scroll_view_t* CEF_CALLBACK view_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -85,6 +94,8 @@ cef_scroll_view_t* CEF_CALLBACK view_as_scroll_view(struct _cef_view_t* self) { } cef_textfield_t* CEF_CALLBACK view_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -100,6 +111,8 @@ cef_textfield_t* CEF_CALLBACK view_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK view_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +128,8 @@ view_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK view_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -130,6 +145,8 @@ cef_string_userfree_t CEF_CALLBACK view_to_string(struct _cef_view_t* self, } int CEF_CALLBACK view_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -144,6 +161,8 @@ int CEF_CALLBACK view_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK view_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -159,6 +178,8 @@ int CEF_CALLBACK view_is_attached(struct _cef_view_t* self) { int CEF_CALLBACK view_is_same(struct _cef_view_t* self, struct _cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +199,8 @@ int CEF_CALLBACK view_is_same(struct _cef_view_t* self, struct _cef_view_delegate_t* CEF_CALLBACK view_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -192,6 +215,8 @@ view_get_delegate(struct _cef_view_t* self) { } struct _cef_window_t* CEF_CALLBACK view_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -206,6 +231,8 @@ struct _cef_window_t* CEF_CALLBACK view_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK view_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -220,6 +247,8 @@ int CEF_CALLBACK view_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK view_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -231,6 +260,8 @@ void CEF_CALLBACK view_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK view_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -245,6 +276,8 @@ int CEF_CALLBACK view_get_group_id(struct _cef_view_t* self) { } void CEF_CALLBACK view_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -257,6 +290,8 @@ void CEF_CALLBACK view_set_group_id(struct _cef_view_t* self, int group_id) { struct _cef_view_t* CEF_CALLBACK view_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -272,6 +307,8 @@ view_get_parent_view(struct _cef_view_t* self) { struct _cef_view_t* CEF_CALLBACK view_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -287,6 +324,8 @@ struct _cef_view_t* CEF_CALLBACK view_get_view_for_id(struct _cef_view_t* self, void CEF_CALLBACK view_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -305,6 +344,8 @@ void CEF_CALLBACK view_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK view_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -319,6 +360,8 @@ cef_rect_t CEF_CALLBACK view_get_bounds(struct _cef_view_t* self) { } cef_rect_t CEF_CALLBACK view_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -334,6 +377,8 @@ cef_rect_t CEF_CALLBACK view_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK view_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -352,6 +397,8 @@ void CEF_CALLBACK view_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK view_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -367,6 +414,8 @@ cef_size_t CEF_CALLBACK view_get_size(struct _cef_view_t* self) { void CEF_CALLBACK view_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -385,6 +434,8 @@ void CEF_CALLBACK view_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK view_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -399,6 +450,8 @@ cef_point_t CEF_CALLBACK view_get_position(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK view_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -413,6 +466,8 @@ cef_size_t CEF_CALLBACK view_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK view_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -424,6 +479,8 @@ void CEF_CALLBACK view_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK view_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -438,6 +495,8 @@ cef_size_t CEF_CALLBACK view_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK view_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -453,6 +512,8 @@ cef_size_t CEF_CALLBACK view_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK view_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -467,6 +528,8 @@ int CEF_CALLBACK view_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK view_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -478,6 +541,8 @@ void CEF_CALLBACK view_invalidate_layout(struct _cef_view_t* self) { } void CEF_CALLBACK view_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -489,6 +554,8 @@ void CEF_CALLBACK view_set_visible(struct _cef_view_t* self, int visible) { } int CEF_CALLBACK view_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -503,6 +570,8 @@ int CEF_CALLBACK view_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK view_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -517,6 +586,8 @@ int CEF_CALLBACK view_is_drawn(struct _cef_view_t* self) { } void CEF_CALLBACK view_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -528,6 +599,8 @@ void CEF_CALLBACK view_set_enabled(struct _cef_view_t* self, int enabled) { } int CEF_CALLBACK view_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -542,6 +615,8 @@ int CEF_CALLBACK view_is_enabled(struct _cef_view_t* self) { } void CEF_CALLBACK view_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -553,6 +628,8 @@ void CEF_CALLBACK view_set_focusable(struct _cef_view_t* self, int focusable) { } int CEF_CALLBACK view_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -567,6 +644,8 @@ int CEF_CALLBACK view_is_focusable(struct _cef_view_t* self) { } int CEF_CALLBACK view_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -581,6 +660,8 @@ int CEF_CALLBACK view_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK view_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -593,6 +674,8 @@ void CEF_CALLBACK view_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK view_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -604,6 +687,8 @@ void CEF_CALLBACK view_set_background_color(struct _cef_view_t* self, } cef_color_t CEF_CALLBACK view_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -619,6 +704,8 @@ cef_color_t CEF_CALLBACK view_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK view_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -645,6 +732,8 @@ int CEF_CALLBACK view_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK view_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -671,6 +760,8 @@ int CEF_CALLBACK view_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK view_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -697,6 +788,8 @@ int CEF_CALLBACK view_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK view_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -724,6 +817,8 @@ int CEF_CALLBACK view_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK view_convert_point_to_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -756,6 +851,8 @@ int CEF_CALLBACK view_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK view_convert_point_from_view(struct _cef_view_t* self, struct _cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -840,6 +937,12 @@ CefViewCppToC::CefViewCppToC() { GetStruct()->convert_point_from_view = view_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefViewCppToC::~CefViewCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/view_cpptoc.h b/libcef_dll/cpptoc/views/view_cpptoc.h index 062e2a19a..80ff39323 100644 --- a/libcef_dll/cpptoc/views/view_cpptoc.h +++ b/libcef_dll/cpptoc/views/view_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=037aabb926a8eb87cd8d04684abe7254f97f8f56$ +// $hash=76483d9a6336d588f8ff1014ced9702765c25564$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_CPPTOC_H_ @@ -42,6 +42,7 @@ class CefViewCppToC : public CefCppToCRefCounted { public: CefViewCppToC(); + virtual ~CefViewCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/view_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/view_delegate_cpptoc.cc index c6b668869..cae395b35 100644 --- a/libcef_dll/cpptoc/views/view_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/view_delegate_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a7b25677f607a759a1c350b0dcc820d80ca3620f$ +// $hash=c5635ee1a7e661b2b3fedf63d3a7d777ff378228$ // #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h" @@ -20,6 +20,7 @@ #include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -28,6 +29,8 @@ namespace { cef_size_t CEF_CALLBACK view_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -49,6 +52,8 @@ view_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK view_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -70,6 +75,8 @@ view_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK view_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -92,6 +99,8 @@ int CEF_CALLBACK view_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +124,8 @@ view_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -140,6 +151,8 @@ view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +175,8 @@ view_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK view_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +193,8 @@ void CEF_CALLBACK view_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK view_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -207,6 +224,12 @@ CefViewDelegateCppToC::CefViewDelegateCppToC() { GetStruct()->on_blur = view_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefViewDelegateCppToC::~CefViewDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefViewDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/view_delegate_cpptoc.h b/libcef_dll/cpptoc/views/view_delegate_cpptoc.h index b870f8b67..c42836974 100644 --- a/libcef_dll/cpptoc/views/view_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/view_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9e47bcfce811c645242bd8b0f6d53da611af812a$ +// $hash=1078d5e35099d704786121348fc29177779d90b6$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_DELEGATE_CPPTOC_H_ @@ -33,6 +33,7 @@ class CefViewDelegateCppToC : public CefCppToCRefCounted { public: CefViewDelegateCppToC(); + virtual ~CefViewDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_VIEW_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/window_cpptoc.cc b/libcef_dll/cpptoc/views/window_cpptoc.cc index c924d5f4c..0b327d24c 100644 --- a/libcef_dll/cpptoc/views/window_cpptoc.cc +++ b/libcef_dll/cpptoc/views/window_cpptoc.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e7030d27d0fbf831eda895ee265373ad47cf7cc7$ +// $hash=3a89cd3f08de55473dcc11d60add91c6005282ca$ // #include "libcef_dll/cpptoc/views/window_cpptoc.h" @@ -27,11 +27,14 @@ #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_window_t* cef_window_create_top_level( struct _cef_window_delegate_t* delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -49,6 +52,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. void CEF_CALLBACK window_show(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -60,6 +65,8 @@ void CEF_CALLBACK window_show(struct _cef_window_t* self) { } void CEF_CALLBACK window_hide(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -72,6 +79,8 @@ void CEF_CALLBACK window_hide(struct _cef_window_t* self) { void CEF_CALLBACK window_center_window(struct _cef_window_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -90,6 +99,8 @@ void CEF_CALLBACK window_center_window(struct _cef_window_t* self, } void CEF_CALLBACK window_close(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -101,6 +112,8 @@ void CEF_CALLBACK window_close(struct _cef_window_t* self) { } int CEF_CALLBACK window_is_closed(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -115,6 +128,8 @@ int CEF_CALLBACK window_is_closed(struct _cef_window_t* self) { } void CEF_CALLBACK window_activate(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -126,6 +141,8 @@ void CEF_CALLBACK window_activate(struct _cef_window_t* self) { } void CEF_CALLBACK window_deactivate(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -137,6 +154,8 @@ void CEF_CALLBACK window_deactivate(struct _cef_window_t* self) { } int CEF_CALLBACK window_is_active(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -151,6 +170,8 @@ int CEF_CALLBACK window_is_active(struct _cef_window_t* self) { } void CEF_CALLBACK window_bring_to_top(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -163,6 +184,8 @@ void CEF_CALLBACK window_bring_to_top(struct _cef_window_t* self) { void CEF_CALLBACK window_set_always_on_top(struct _cef_window_t* self, int on_top) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -174,6 +197,8 @@ void CEF_CALLBACK window_set_always_on_top(struct _cef_window_t* self, } int CEF_CALLBACK window_is_always_on_top(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -188,6 +213,8 @@ int CEF_CALLBACK window_is_always_on_top(struct _cef_window_t* self) { } void CEF_CALLBACK window_maximize(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -199,6 +226,8 @@ void CEF_CALLBACK window_maximize(struct _cef_window_t* self) { } void CEF_CALLBACK window_minimize(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -210,6 +239,8 @@ void CEF_CALLBACK window_minimize(struct _cef_window_t* self) { } void CEF_CALLBACK window_restore(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -222,6 +253,8 @@ void CEF_CALLBACK window_restore(struct _cef_window_t* self) { void CEF_CALLBACK window_set_fullscreen(struct _cef_window_t* self, int fullscreen) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -233,6 +266,8 @@ void CEF_CALLBACK window_set_fullscreen(struct _cef_window_t* self, } int CEF_CALLBACK window_is_maximized(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -247,6 +282,8 @@ int CEF_CALLBACK window_is_maximized(struct _cef_window_t* self) { } int CEF_CALLBACK window_is_minimized(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -261,6 +298,8 @@ int CEF_CALLBACK window_is_minimized(struct _cef_window_t* self) { } int CEF_CALLBACK window_is_fullscreen(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -276,6 +315,8 @@ int CEF_CALLBACK window_is_fullscreen(struct _cef_window_t* self) { void CEF_CALLBACK window_set_title(struct _cef_window_t* self, const cef_string_t* title) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -289,6 +330,8 @@ void CEF_CALLBACK window_set_title(struct _cef_window_t* self, cef_string_userfree_t CEF_CALLBACK window_get_title(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -304,6 +347,8 @@ window_get_title(struct _cef_window_t* self) { void CEF_CALLBACK window_set_window_icon(struct _cef_window_t* self, cef_image_t* image) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -319,6 +364,8 @@ void CEF_CALLBACK window_set_window_icon(struct _cef_window_t* self, } cef_image_t* CEF_CALLBACK window_get_window_icon(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -334,6 +381,8 @@ cef_image_t* CEF_CALLBACK window_get_window_icon(struct _cef_window_t* self) { void CEF_CALLBACK window_set_window_app_icon(struct _cef_window_t* self, cef_image_t* image) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -350,6 +399,8 @@ void CEF_CALLBACK window_set_window_app_icon(struct _cef_window_t* self, cef_image_t* CEF_CALLBACK window_get_window_app_icon(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -367,6 +418,8 @@ void CEF_CALLBACK window_show_menu(struct _cef_window_t* self, cef_menu_model_t* menu_model, const cef_point_t* screen_point, cef_menu_anchor_position_t anchor_position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -390,6 +443,8 @@ void CEF_CALLBACK window_show_menu(struct _cef_window_t* self, } void CEF_CALLBACK window_cancel_menu(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -401,6 +456,8 @@ void CEF_CALLBACK window_cancel_menu(struct _cef_window_t* self) { } cef_display_t* CEF_CALLBACK window_get_display(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -416,6 +473,8 @@ cef_display_t* CEF_CALLBACK window_get_display(struct _cef_window_t* self) { cef_rect_t CEF_CALLBACK window_get_client_area_bounds_in_screen(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -434,6 +493,8 @@ void CEF_CALLBACK window_set_draggable_regions(struct _cef_window_t* self, size_t regionsCount, cef_draggable_region_t const* regions) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -456,6 +517,8 @@ window_set_draggable_regions(struct _cef_window_t* self, cef_window_handle_t CEF_CALLBACK window_get_window_handle(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -472,6 +535,8 @@ window_get_window_handle(struct _cef_window_t* self) { void CEF_CALLBACK window_send_key_press(struct _cef_window_t* self, int key_code, uint32 event_flags) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -485,6 +550,8 @@ void CEF_CALLBACK window_send_key_press(struct _cef_window_t* self, void CEF_CALLBACK window_send_mouse_move(struct _cef_window_t* self, int screen_x, int screen_y) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -499,6 +566,8 @@ void CEF_CALLBACK window_send_mouse_events(struct _cef_window_t* self, cef_mouse_button_type_t button, int mouse_down, int mouse_up) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -516,6 +585,8 @@ void CEF_CALLBACK window_set_accelerator(struct _cef_window_t* self, int shift_pressed, int ctrl_pressed, int alt_pressed) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -530,6 +601,8 @@ void CEF_CALLBACK window_set_accelerator(struct _cef_window_t* self, void CEF_CALLBACK window_remove_accelerator(struct _cef_window_t* self, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -541,6 +614,8 @@ void CEF_CALLBACK window_remove_accelerator(struct _cef_window_t* self, } void CEF_CALLBACK window_remove_all_accelerators(struct _cef_window_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -552,6 +627,8 @@ void CEF_CALLBACK window_remove_all_accelerators(struct _cef_window_t* self) { } struct _cef_window_t* CEF_CALLBACK window_as_window(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -568,6 +645,8 @@ struct _cef_window_t* CEF_CALLBACK window_as_window(struct _cef_panel_t* self) { cef_fill_layout_t* CEF_CALLBACK window_set_to_fill_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -586,6 +665,8 @@ window_set_to_fill_layout(struct _cef_panel_t* self) { cef_box_layout_t* CEF_CALLBACK window_set_to_box_layout(struct _cef_panel_t* self, const struct _cef_box_layout_settings_t* settings) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -611,6 +692,8 @@ window_set_to_box_layout(struct _cef_panel_t* self, } cef_layout_t* CEF_CALLBACK window_get_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -626,6 +709,8 @@ cef_layout_t* CEF_CALLBACK window_get_layout(struct _cef_panel_t* self) { } void CEF_CALLBACK window_layout(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -638,6 +723,8 @@ void CEF_CALLBACK window_layout(struct _cef_panel_t* self) { void CEF_CALLBACK window_add_child_view(struct _cef_panel_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -656,6 +743,8 @@ void CEF_CALLBACK window_add_child_view(struct _cef_panel_t* self, void CEF_CALLBACK window_add_child_view_at(struct _cef_panel_t* self, cef_view_t* view, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -678,6 +767,8 @@ void CEF_CALLBACK window_add_child_view_at(struct _cef_panel_t* self, void CEF_CALLBACK window_reorder_child_view(struct _cef_panel_t* self, cef_view_t* view, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -695,6 +786,8 @@ void CEF_CALLBACK window_reorder_child_view(struct _cef_panel_t* self, void CEF_CALLBACK window_remove_child_view(struct _cef_panel_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -711,6 +804,8 @@ void CEF_CALLBACK window_remove_child_view(struct _cef_panel_t* self, } void CEF_CALLBACK window_remove_all_child_views(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -723,6 +818,8 @@ void CEF_CALLBACK window_remove_all_child_views(struct _cef_panel_t* self) { } size_t CEF_CALLBACK window_get_child_view_count(struct _cef_panel_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -739,6 +836,8 @@ size_t CEF_CALLBACK window_get_child_view_count(struct _cef_panel_t* self) { cef_view_t* CEF_CALLBACK window_get_child_view_at(struct _cef_panel_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -760,6 +859,8 @@ cef_view_t* CEF_CALLBACK window_get_child_view_at(struct _cef_panel_t* self, cef_browser_view_t* CEF_CALLBACK window_as_browser_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -776,6 +877,8 @@ window_as_browser_view(struct _cef_view_t* self) { } cef_button_t* CEF_CALLBACK window_as_button(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -791,6 +894,8 @@ cef_button_t* CEF_CALLBACK window_as_button(struct _cef_view_t* self) { } cef_panel_t* CEF_CALLBACK window_as_panel(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -807,6 +912,8 @@ cef_panel_t* CEF_CALLBACK window_as_panel(struct _cef_view_t* self) { cef_scroll_view_t* CEF_CALLBACK window_as_scroll_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -823,6 +930,8 @@ window_as_scroll_view(struct _cef_view_t* self) { } cef_textfield_t* CEF_CALLBACK window_as_textfield(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -840,6 +949,8 @@ cef_textfield_t* CEF_CALLBACK window_as_textfield(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK window_get_type_string(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -857,6 +968,8 @@ window_get_type_string(struct _cef_view_t* self) { cef_string_userfree_t CEF_CALLBACK window_to_string(struct _cef_view_t* self, int include_children) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -873,6 +986,8 @@ cef_string_userfree_t CEF_CALLBACK window_to_string(struct _cef_view_t* self, } int CEF_CALLBACK window_is_valid(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -888,6 +1003,8 @@ int CEF_CALLBACK window_is_valid(struct _cef_view_t* self) { } int CEF_CALLBACK window_is_attached(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -903,6 +1020,8 @@ int CEF_CALLBACK window_is_attached(struct _cef_view_t* self) { } int CEF_CALLBACK window_is_same(struct _cef_view_t* self, cef_view_t* that) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -923,6 +1042,8 @@ int CEF_CALLBACK window_is_same(struct _cef_view_t* self, cef_view_t* that) { cef_view_delegate_t* CEF_CALLBACK window_get_delegate(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -939,6 +1060,8 @@ window_get_delegate(struct _cef_view_t* self) { } struct _cef_window_t* CEF_CALLBACK window_get_window(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -954,6 +1077,8 @@ struct _cef_window_t* CEF_CALLBACK window_get_window(struct _cef_view_t* self) { } int CEF_CALLBACK window_get_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -969,6 +1094,8 @@ int CEF_CALLBACK window_get_id(struct _cef_view_t* self) { } void CEF_CALLBACK window_set_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -980,6 +1107,8 @@ void CEF_CALLBACK window_set_id(struct _cef_view_t* self, int id) { } int CEF_CALLBACK window_get_group_id(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -995,6 +1124,8 @@ int CEF_CALLBACK window_get_group_id(struct _cef_view_t* self) { } void CEF_CALLBACK window_set_group_id(struct _cef_view_t* self, int group_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1007,6 +1138,8 @@ void CEF_CALLBACK window_set_group_id(struct _cef_view_t* self, int group_id) { } cef_view_t* CEF_CALLBACK window_get_parent_view(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1024,6 +1157,8 @@ cef_view_t* CEF_CALLBACK window_get_parent_view(struct _cef_view_t* self) { cef_view_t* CEF_CALLBACK window_get_view_for_id(struct _cef_view_t* self, int id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1041,6 +1176,8 @@ cef_view_t* CEF_CALLBACK window_get_view_for_id(struct _cef_view_t* self, void CEF_CALLBACK window_set_bounds(struct _cef_view_t* self, const cef_rect_t* bounds) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1060,6 +1197,8 @@ void CEF_CALLBACK window_set_bounds(struct _cef_view_t* self, } cef_rect_t CEF_CALLBACK window_get_bounds(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1075,6 +1214,8 @@ cef_rect_t CEF_CALLBACK window_get_bounds(struct _cef_view_t* self) { } cef_rect_t CEF_CALLBACK window_get_bounds_in_screen(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1092,6 +1233,8 @@ cef_rect_t CEF_CALLBACK window_get_bounds_in_screen(struct _cef_view_t* self) { void CEF_CALLBACK window_set_size(struct _cef_view_t* self, const cef_size_t* size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1110,6 +1253,8 @@ void CEF_CALLBACK window_set_size(struct _cef_view_t* self, } cef_size_t CEF_CALLBACK window_get_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1126,6 +1271,8 @@ cef_size_t CEF_CALLBACK window_get_size(struct _cef_view_t* self) { void CEF_CALLBACK window_set_position(struct _cef_view_t* self, const cef_point_t* position) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1145,6 +1292,8 @@ void CEF_CALLBACK window_set_position(struct _cef_view_t* self, } cef_point_t CEF_CALLBACK window_get_position(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1161,6 +1310,8 @@ cef_point_t CEF_CALLBACK window_get_position(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK window_get_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1177,6 +1328,8 @@ cef_size_t CEF_CALLBACK window_get_preferred_size(struct _cef_view_t* self) { } void CEF_CALLBACK window_size_to_preferred_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1189,6 +1342,8 @@ void CEF_CALLBACK window_size_to_preferred_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK window_get_minimum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1205,6 +1360,8 @@ cef_size_t CEF_CALLBACK window_get_minimum_size(struct _cef_view_t* self) { } cef_size_t CEF_CALLBACK window_get_maximum_size(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1222,6 +1379,8 @@ cef_size_t CEF_CALLBACK window_get_maximum_size(struct _cef_view_t* self) { int CEF_CALLBACK window_get_height_for_width(struct _cef_view_t* self, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1237,6 +1396,8 @@ int CEF_CALLBACK window_get_height_for_width(struct _cef_view_t* self, } void CEF_CALLBACK window_invalidate_layout(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1249,6 +1410,8 @@ void CEF_CALLBACK window_invalidate_layout(struct _cef_view_t* self) { } void CEF_CALLBACK window_set_visible(struct _cef_view_t* self, int visible) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1261,6 +1424,8 @@ void CEF_CALLBACK window_set_visible(struct _cef_view_t* self, int visible) { } int CEF_CALLBACK window_is_visible(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1276,6 +1441,8 @@ int CEF_CALLBACK window_is_visible(struct _cef_view_t* self) { } int CEF_CALLBACK window_is_drawn(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1291,6 +1458,8 @@ int CEF_CALLBACK window_is_drawn(struct _cef_view_t* self) { } void CEF_CALLBACK window_set_enabled(struct _cef_view_t* self, int enabled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1303,6 +1472,8 @@ void CEF_CALLBACK window_set_enabled(struct _cef_view_t* self, int enabled) { } int CEF_CALLBACK window_is_enabled(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1319,6 +1490,8 @@ int CEF_CALLBACK window_is_enabled(struct _cef_view_t* self) { void CEF_CALLBACK window_set_focusable(struct _cef_view_t* self, int focusable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1331,6 +1504,8 @@ void CEF_CALLBACK window_set_focusable(struct _cef_view_t* self, } int CEF_CALLBACK window_is_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1346,6 +1521,8 @@ int CEF_CALLBACK window_is_focusable(struct _cef_view_t* self) { } int CEF_CALLBACK window_is_accessibility_focusable(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1361,6 +1538,8 @@ int CEF_CALLBACK window_is_accessibility_focusable(struct _cef_view_t* self) { } void CEF_CALLBACK window_request_focus(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1373,6 +1552,8 @@ void CEF_CALLBACK window_request_focus(struct _cef_view_t* self) { void CEF_CALLBACK window_set_background_color(struct _cef_view_t* self, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1385,6 +1566,8 @@ void CEF_CALLBACK window_set_background_color(struct _cef_view_t* self, } cef_color_t CEF_CALLBACK window_get_background_color(struct _cef_view_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1402,6 +1585,8 @@ cef_color_t CEF_CALLBACK window_get_background_color(struct _cef_view_t* self) { int CEF_CALLBACK window_convert_point_to_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1429,6 +1614,8 @@ int CEF_CALLBACK window_convert_point_to_screen(struct _cef_view_t* self, int CEF_CALLBACK window_convert_point_from_screen(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1456,6 +1643,8 @@ int CEF_CALLBACK window_convert_point_from_screen(struct _cef_view_t* self, int CEF_CALLBACK window_convert_point_to_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1483,6 +1672,8 @@ int CEF_CALLBACK window_convert_point_to_window(struct _cef_view_t* self, int CEF_CALLBACK window_convert_point_from_window(struct _cef_view_t* self, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1511,6 +1702,8 @@ int CEF_CALLBACK window_convert_point_from_window(struct _cef_view_t* self, int CEF_CALLBACK window_convert_point_to_view(struct _cef_view_t* self, cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1544,6 +1737,8 @@ int CEF_CALLBACK window_convert_point_to_view(struct _cef_view_t* self, int CEF_CALLBACK window_convert_point_from_view(struct _cef_view_t* self, cef_view_t* view, cef_point_t* point) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -1684,6 +1879,12 @@ CefWindowCppToC::CefWindowCppToC() { window_convert_point_from_view; } +// DESTRUCTOR - Do not edit by hand. + +CefWindowCppToC::~CefWindowCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted::UnwrapDerived( diff --git a/libcef_dll/cpptoc/views/window_cpptoc.h b/libcef_dll/cpptoc/views/window_cpptoc.h index cc9f08c31..d43c74798 100644 --- a/libcef_dll/cpptoc/views/window_cpptoc.h +++ b/libcef_dll/cpptoc/views/window_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0c35aab62df1016b079f366ca89142dfdcc7c6a4$ +// $hash=9aa8dae9113f8d6c1e5c4653c964e8acf2808d05$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_CPPTOC_H_ @@ -30,6 +30,7 @@ class CefWindowCppToC : public CefCppToCRefCounted { public: CefWindowCppToC(); + virtual ~CefWindowCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc b/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc index bb2ebb003..8bdfe4408 100644 --- a/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc +++ b/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a84d05f2898ac722925601819bd230a4d1126e26$ +// $hash=8f19f7715fef7895bfb1a18b72fdca41d965a415$ // #include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { void CEF_CALLBACK window_delegate_on_window_created(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -41,6 +44,8 @@ window_delegate_on_window_created(struct _cef_window_delegate_t* self, void CEF_CALLBACK window_delegate_on_window_destroyed(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -61,6 +66,8 @@ window_delegate_get_parent_window(struct _cef_window_delegate_t* self, cef_window_t* window, int* is_menu, int* can_activate_menu) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -104,6 +111,8 @@ window_delegate_get_parent_window(struct _cef_window_delegate_t* self, int CEF_CALLBACK window_delegate_is_frameless(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +133,8 @@ window_delegate_is_frameless(struct _cef_window_delegate_t* self, int CEF_CALLBACK window_delegate_can_resize(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -145,6 +156,8 @@ int CEF_CALLBACK window_delegate_can_resize(struct _cef_window_delegate_t* self, int CEF_CALLBACK window_delegate_can_maximize(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -166,6 +179,8 @@ window_delegate_can_maximize(struct _cef_window_delegate_t* self, int CEF_CALLBACK window_delegate_can_minimize(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -186,6 +201,8 @@ window_delegate_can_minimize(struct _cef_window_delegate_t* self, int CEF_CALLBACK window_delegate_can_close(struct _cef_window_delegate_t* self, cef_window_t* window) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -208,6 +225,8 @@ int CEF_CALLBACK window_delegate_on_accelerator(struct _cef_window_delegate_t* self, cef_window_t* window, int command_id) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -230,6 +249,8 @@ int CEF_CALLBACK window_delegate_on_key_event(struct _cef_window_delegate_t* self, cef_window_t* window, const struct _cef_key_event_t* event) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -260,6 +281,8 @@ window_delegate_on_key_event(struct _cef_window_delegate_t* self, cef_size_t CEF_CALLBACK window_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -282,6 +305,8 @@ window_delegate_get_preferred_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK window_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -304,6 +329,8 @@ window_delegate_get_minimum_size(struct _cef_view_delegate_t* self, cef_size_t CEF_CALLBACK window_delegate_get_maximum_size(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -327,6 +354,8 @@ int CEF_CALLBACK window_delegate_get_height_for_width(struct _cef_view_delegate_t* self, cef_view_t* view, int width) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -351,6 +380,8 @@ window_delegate_on_parent_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* parent) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -376,6 +407,8 @@ window_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, cef_view_t* view, int added, cef_view_t* child) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -398,6 +431,8 @@ window_delegate_on_child_view_changed(struct _cef_view_delegate_t* self, void CEF_CALLBACK window_delegate_on_focus(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -415,6 +450,8 @@ void CEF_CALLBACK window_delegate_on_focus(struct _cef_view_delegate_t* self, void CEF_CALLBACK window_delegate_on_blur(struct _cef_view_delegate_t* self, cef_view_t* view) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -459,6 +496,12 @@ CefWindowDelegateCppToC::CefWindowDelegateCppToC() { GetStruct()->base.base.on_blur = window_delegate_on_blur; } +// DESTRUCTOR - Do not edit by hand. + +CefWindowDelegateCppToC::~CefWindowDelegateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefWindowDelegateCppToC, diff --git a/libcef_dll/cpptoc/views/window_delegate_cpptoc.h b/libcef_dll/cpptoc/views/window_delegate_cpptoc.h index d68a95faa..485ce1139 100644 --- a/libcef_dll/cpptoc/views/window_delegate_cpptoc.h +++ b/libcef_dll/cpptoc/views/window_delegate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3a06ab7bcc914c7789e309f5e47a8504f6be0399$ +// $hash=ee2fcda18fd480a10fc3c5786d023f2bc58dda3c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_DELEGATE_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefWindowDelegateCppToC cef_window_delegate_t> { public: CefWindowDelegateCppToC(); + virtual ~CefWindowDelegateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_VIEWS_WINDOW_DELEGATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/waitable_event_cpptoc.cc b/libcef_dll/cpptoc/waitable_event_cpptoc.cc index b39808912..2350de953 100644 --- a/libcef_dll/cpptoc/waitable_event_cpptoc.cc +++ b/libcef_dll/cpptoc/waitable_event_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2859a79d30af061e8c779910c222fb0f0334d802$ +// $hash=e483a5336ac0f838ebd51e3db32c2bef4895a5ac$ // #include "libcef_dll/cpptoc/waitable_event_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_waitable_event_t* cef_waitable_event_create( int automatic_reset, int initially_signaled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -34,6 +37,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. void CEF_CALLBACK waitable_event_reset(struct _cef_waitable_event_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +50,8 @@ void CEF_CALLBACK waitable_event_reset(struct _cef_waitable_event_t* self) { } void CEF_CALLBACK waitable_event_signal(struct _cef_waitable_event_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -57,6 +64,8 @@ void CEF_CALLBACK waitable_event_signal(struct _cef_waitable_event_t* self) { int CEF_CALLBACK waitable_event_is_signaled(struct _cef_waitable_event_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +80,8 @@ waitable_event_is_signaled(struct _cef_waitable_event_t* self) { } void CEF_CALLBACK waitable_event_wait(struct _cef_waitable_event_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +94,8 @@ void CEF_CALLBACK waitable_event_wait(struct _cef_waitable_event_t* self) { int CEF_CALLBACK waitable_event_timed_wait(struct _cef_waitable_event_t* self, int64 max_ms) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -108,6 +121,12 @@ CefWaitableEventCppToC::CefWaitableEventCppToC() { GetStruct()->timed_wait = waitable_event_timed_wait; } +// DESTRUCTOR - Do not edit by hand. + +CefWaitableEventCppToC::~CefWaitableEventCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefWaitableEventCppToC, diff --git a/libcef_dll/cpptoc/waitable_event_cpptoc.h b/libcef_dll/cpptoc/waitable_event_cpptoc.h index adc4006d8..f2951f5f0 100644 --- a/libcef_dll/cpptoc/waitable_event_cpptoc.h +++ b/libcef_dll/cpptoc/waitable_event_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8460ceaa3e43ec8e41eefcfe923e1b52ae553f07$ +// $hash=9350d6fd92f52722653a6a02bfea148c099a096a$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_WAITABLE_EVENT_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefWaitableEventCppToC cef_waitable_event_t> { public: CefWaitableEventCppToC(); + virtual ~CefWaitableEventCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_WAITABLE_EVENT_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/web_plugin_info_cpptoc.cc b/libcef_dll/cpptoc/web_plugin_info_cpptoc.cc index 057959fd1..3794d544a 100644 --- a/libcef_dll/cpptoc/web_plugin_info_cpptoc.cc +++ b/libcef_dll/cpptoc/web_plugin_info_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=57cefda57397d39812a4b72c7e929e5ce07cd576$ +// $hash=96938638213bc6f72dba268295fd175b90ff3d2e$ // #include "libcef_dll/cpptoc/web_plugin_info_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -20,6 +21,8 @@ namespace { cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_name(struct _cef_web_plugin_info_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -35,6 +38,8 @@ web_plugin_info_get_name(struct _cef_web_plugin_info_t* self) { cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_path(struct _cef_web_plugin_info_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -50,6 +55,8 @@ web_plugin_info_get_path(struct _cef_web_plugin_info_t* self) { cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_version(struct _cef_web_plugin_info_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -65,6 +72,8 @@ web_plugin_info_get_version(struct _cef_web_plugin_info_t* self) { cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_description(struct _cef_web_plugin_info_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -89,6 +98,12 @@ CefWebPluginInfoCppToC::CefWebPluginInfoCppToC() { GetStruct()->get_description = web_plugin_info_get_description; } +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginInfoCppToC::~CefWebPluginInfoCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefWebPluginInfoCppToC, diff --git a/libcef_dll/cpptoc/web_plugin_info_cpptoc.h b/libcef_dll/cpptoc/web_plugin_info_cpptoc.h index 81d35979f..466cfbcea 100644 --- a/libcef_dll/cpptoc/web_plugin_info_cpptoc.h +++ b/libcef_dll/cpptoc/web_plugin_info_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b41a64e0cc272bc52d00df60266dc1c6a984baba$ +// $hash=15d763f28b3ad40c215143c7f70cda4f7a18654c$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefWebPluginInfoCppToC cef_web_plugin_info_t> { public: CefWebPluginInfoCppToC(); + virtual ~CefWebPluginInfoCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc b/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc index 83a4d9f8a..798cf71cf 100644 --- a/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc +++ b/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=999ed19695c3bae10f0aa9d145e66f69a9e41074$ +// $hash=0dca8341eda3c55d479561f2ddce5de0e2c4a4bd$ // #include "libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h" #include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -24,6 +25,8 @@ web_plugin_info_visitor_visit(struct _cef_web_plugin_info_visitor_t* self, cef_web_plugin_info_t* info, int count, int total) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -50,6 +53,12 @@ CefWebPluginInfoVisitorCppToC::CefWebPluginInfoVisitorCppToC() { GetStruct()->visit = web_plugin_info_visitor_visit; } +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginInfoVisitorCppToC::~CefWebPluginInfoVisitorCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefWebPluginInfoVisitorCppToC, diff --git a/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h b/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h index 6534f711d..6f5948327 100644 --- a/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h +++ b/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2e5c68727b26b0947ba16878275a09f5beee684e$ +// $hash=2602ada83129023b288002fede3c7aaf898d0e47$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_ @@ -34,6 +34,7 @@ class CefWebPluginInfoVisitorCppToC cef_web_plugin_info_visitor_t> { public: CefWebPluginInfoVisitorCppToC(); + virtual ~CefWebPluginInfoVisitorCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_INFO_VISITOR_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.cc b/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.cc index 8e0a551ed..15d08bb48 100644 --- a/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.cc +++ b/libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=64b74fdba92d155efb568bc26d927fdd08fe7edb$ +// $hash=77094a5641deaba588ae54340b4b2a4a67a63fb9$ // #include "libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ void CEF_CALLBACK web_plugin_unstable_callback_is_unstable( struct _cef_web_plugin_unstable_callback_t* self, const cef_string_t* path, int unstable) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -45,6 +48,12 @@ CefWebPluginUnstableCallbackCppToC::CefWebPluginUnstableCallbackCppToC() { GetStruct()->is_unstable = web_plugin_unstable_callback_is_unstable; } +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginUnstableCallbackCppToC::~CefWebPluginUnstableCallbackCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted { public: CefWebPluginUnstableCallbackCppToC(); + virtual ~CefWebPluginUnstableCallbackCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_WEB_PLUGIN_UNSTABLE_CALLBACK_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/write_handler_cpptoc.cc b/libcef_dll/cpptoc/write_handler_cpptoc.cc index bc735a757..0152e7f01 100644 --- a/libcef_dll/cpptoc/write_handler_cpptoc.cc +++ b/libcef_dll/cpptoc/write_handler_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4d5ddec8ccdc06aae8af94c7c3656148e5782d03$ +// $hash=b2bfbc295ed265014feea4c49f2cf663f7bf5bc2$ // #include "libcef_dll/cpptoc/write_handler_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -22,6 +23,8 @@ size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self, const void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -42,6 +45,8 @@ size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self, int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self, int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -56,6 +61,8 @@ int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self, } int64 CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -70,6 +77,8 @@ int64 CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self) { } int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -84,6 +93,8 @@ int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self) { } int CEF_CALLBACK write_handler_may_block(struct _cef_write_handler_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -109,6 +120,12 @@ CefWriteHandlerCppToC::CefWriteHandlerCppToC() { GetStruct()->may_block = write_handler_may_block; } +// DESTRUCTOR - Do not edit by hand. + +CefWriteHandlerCppToC::~CefWriteHandlerCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefWriteHandlerCppToC, diff --git a/libcef_dll/cpptoc/write_handler_cpptoc.h b/libcef_dll/cpptoc/write_handler_cpptoc.h index 4ac4150f0..725ff67e0 100644 --- a/libcef_dll/cpptoc/write_handler_cpptoc.h +++ b/libcef_dll/cpptoc/write_handler_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b4ba66a83d4f9e6802ea924f758df75b75d4f6df$ +// $hash=59d2e6390a01b3d7bded958c4d5c4416458ddbe4$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefWriteHandlerCppToC : public CefCppToCRefCounted { public: CefWriteHandlerCppToC(); + virtual ~CefWriteHandlerCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/x509cert_principal_cpptoc.cc b/libcef_dll/cpptoc/x509cert_principal_cpptoc.cc index 0b3f4e103..c437ec74f 100644 --- a/libcef_dll/cpptoc/x509cert_principal_cpptoc.cc +++ b/libcef_dll/cpptoc/x509cert_principal_cpptoc.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5675c17f7fd606f7b99d1b72021cc6c7de1de1d5$ +// $hash=33dd3be38d10acb86c72fc60b21549353113e126$ // #include "libcef_dll/cpptoc/x509cert_principal_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" namespace { @@ -21,6 +22,8 @@ namespace { cef_string_userfree_t CEF_CALLBACK x509cert_principal_get_display_name(struct _cef_x509cert_principal_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -36,6 +39,8 @@ x509cert_principal_get_display_name(struct _cef_x509cert_principal_t* self) { cef_string_userfree_t CEF_CALLBACK x509cert_principal_get_common_name(struct _cef_x509cert_principal_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -51,6 +56,8 @@ x509cert_principal_get_common_name(struct _cef_x509cert_principal_t* self) { cef_string_userfree_t CEF_CALLBACK x509cert_principal_get_locality_name(struct _cef_x509cert_principal_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -67,6 +74,8 @@ x509cert_principal_get_locality_name(struct _cef_x509cert_principal_t* self) { cef_string_userfree_t CEF_CALLBACK x509cert_principal_get_state_or_province_name( struct _cef_x509cert_principal_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -83,6 +92,8 @@ x509cert_principal_get_state_or_province_name( cef_string_userfree_t CEF_CALLBACK x509cert_principal_get_country_name(struct _cef_x509cert_principal_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -99,6 +110,8 @@ x509cert_principal_get_country_name(struct _cef_x509cert_principal_t* self) { void CEF_CALLBACK x509cert_principal_get_street_addresses(struct _cef_x509cert_principal_t* self, cef_string_list_t addresses) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -124,6 +137,8 @@ x509cert_principal_get_street_addresses(struct _cef_x509cert_principal_t* self, void CEF_CALLBACK x509cert_principal_get_organization_names( struct _cef_x509cert_principal_t* self, cef_string_list_t names) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -149,6 +164,8 @@ void CEF_CALLBACK x509cert_principal_get_organization_names( void CEF_CALLBACK x509cert_principal_get_organization_unit_names( struct _cef_x509cert_principal_t* self, cef_string_list_t names) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -174,6 +191,8 @@ void CEF_CALLBACK x509cert_principal_get_organization_unit_names( void CEF_CALLBACK x509cert_principal_get_domain_components(struct _cef_x509cert_principal_t* self, cef_string_list_t components) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -215,6 +234,12 @@ CefX509CertPrincipalCppToC::CefX509CertPrincipalCppToC() { GetStruct()->get_domain_components = x509cert_principal_get_domain_components; } +// DESTRUCTOR - Do not edit by hand. + +CefX509CertPrincipalCppToC::~CefX509CertPrincipalCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefX509CertPrincipalCppToC, diff --git a/libcef_dll/cpptoc/x509cert_principal_cpptoc.h b/libcef_dll/cpptoc/x509cert_principal_cpptoc.h index 68782c69e..70d02b4a4 100644 --- a/libcef_dll/cpptoc/x509cert_principal_cpptoc.h +++ b/libcef_dll/cpptoc/x509cert_principal_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=883a66504de7c580dc08f50bd80e93aca9a9c8f7$ +// $hash=5f39ce3caf8947a2813c04e3e93693c4356e8fdb$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_X509CERT_PRINCIPAL_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefX509CertPrincipalCppToC cef_x509cert_principal_t> { public: CefX509CertPrincipalCppToC(); + virtual ~CefX509CertPrincipalCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_X509CERT_PRINCIPAL_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/x509certificate_cpptoc.cc b/libcef_dll/cpptoc/x509certificate_cpptoc.cc index 849158933..d913e8748 100644 --- a/libcef_dll/cpptoc/x509certificate_cpptoc.cc +++ b/libcef_dll/cpptoc/x509certificate_cpptoc.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=73f0a2483ecfc0f9045b9c82a6b2508aade9672c$ +// $hash=fb0be9b1da38b7322058fd4785321fd104f0a81c$ // #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" #include #include "libcef_dll/cpptoc/binary_value_cpptoc.h" #include "libcef_dll/cpptoc/x509cert_principal_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" namespace { @@ -23,6 +24,8 @@ namespace { cef_x509cert_principal_t* CEF_CALLBACK x509certificate_get_subject(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -39,6 +42,8 @@ x509certificate_get_subject(struct _cef_x509certificate_t* self) { cef_x509cert_principal_t* CEF_CALLBACK x509certificate_get_issuer(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -55,6 +60,8 @@ x509certificate_get_issuer(struct _cef_x509certificate_t* self) { cef_binary_value_t* CEF_CALLBACK x509certificate_get_serial_number(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -71,6 +78,8 @@ x509certificate_get_serial_number(struct _cef_x509certificate_t* self) { cef_time_t CEF_CALLBACK x509certificate_get_valid_start(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -86,6 +95,8 @@ x509certificate_get_valid_start(struct _cef_x509certificate_t* self) { cef_time_t CEF_CALLBACK x509certificate_get_valid_expiry(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -101,6 +112,8 @@ x509certificate_get_valid_expiry(struct _cef_x509certificate_t* self) { cef_binary_value_t* CEF_CALLBACK x509certificate_get_derencoded(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +130,8 @@ x509certificate_get_derencoded(struct _cef_x509certificate_t* self) { cef_binary_value_t* CEF_CALLBACK x509certificate_get_pemencoded(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -133,6 +148,8 @@ x509certificate_get_pemencoded(struct _cef_x509certificate_t* self) { size_t CEF_CALLBACK x509certificate_get_issuer_chain_size(struct _cef_x509certificate_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -150,6 +167,8 @@ void CEF_CALLBACK x509certificate_get_derencoded_issuer_chain(struct _cef_x509certificate_t* self, size_t* chainCount, cef_binary_value_t** chain) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -186,6 +205,8 @@ void CEF_CALLBACK x509certificate_get_pemencoded_issuer_chain(struct _cef_x509certificate_t* self, size_t* chainCount, cef_binary_value_t** chain) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -237,6 +258,12 @@ CefX509CertificateCppToC::CefX509CertificateCppToC() { x509certificate_get_pemencoded_issuer_chain; } +// DESTRUCTOR - Do not edit by hand. + +CefX509CertificateCppToC::~CefX509CertificateCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted< CefX509CertificateCppToC, diff --git a/libcef_dll/cpptoc/x509certificate_cpptoc.h b/libcef_dll/cpptoc/x509certificate_cpptoc.h index f0a59282e..7e1a4892a 100644 --- a/libcef_dll/cpptoc/x509certificate_cpptoc.h +++ b/libcef_dll/cpptoc/x509certificate_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d4e6a7db24b55b1ffecf43c91a6f816d96ea71b7$ +// $hash=2c470dab1ef6ff3674da8fa6fc15ee14660bebac$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_X509CERTIFICATE_CPPTOC_H_ @@ -32,6 +32,7 @@ class CefX509CertificateCppToC cef_x509certificate_t> { public: CefX509CertificateCppToC(); + virtual ~CefX509CertificateCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_X509CERTIFICATE_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/xml_reader_cpptoc.cc b/libcef_dll/cpptoc/xml_reader_cpptoc.cc index 1a71b7783..cd5fc245d 100644 --- a/libcef_dll/cpptoc/xml_reader_cpptoc.cc +++ b/libcef_dll/cpptoc/xml_reader_cpptoc.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4b78db2c891fd33c8c18ceb9de659153342902f0$ +// $hash=d4e98b82023e39bffa847c9a862ba8907d80cdfc$ // #include "libcef_dll/cpptoc/xml_reader_cpptoc.h" #include "libcef_dll/cpptoc/stream_reader_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -21,6 +22,8 @@ CEF_EXPORT cef_xml_reader_t* cef_xml_reader_create( cef_stream_reader_t* stream, cef_xml_encoding_type_t encodingType, const cef_string_t* URI) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: stream; type: refptr_same @@ -45,6 +48,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK xml_reader_move_to_next_node(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -59,6 +64,8 @@ int CEF_CALLBACK xml_reader_move_to_next_node(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_close(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -73,6 +80,8 @@ int CEF_CALLBACK xml_reader_close(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_has_error(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -88,6 +97,8 @@ int CEF_CALLBACK xml_reader_has_error(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_error(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -103,6 +114,8 @@ xml_reader_get_error(struct _cef_xml_reader_t* self) { cef_xml_node_type_t CEF_CALLBACK xml_reader_get_type(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +130,8 @@ xml_reader_get_type(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_get_depth(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -132,6 +147,8 @@ int CEF_CALLBACK xml_reader_get_depth(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_local_name(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -147,6 +164,8 @@ xml_reader_get_local_name(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_prefix(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +181,8 @@ xml_reader_get_prefix(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_qualified_name(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -177,6 +198,8 @@ xml_reader_get_qualified_name(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_namespace_uri(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -192,6 +215,8 @@ xml_reader_get_namespace_uri(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_base_uri(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -207,6 +232,8 @@ xml_reader_get_base_uri(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_xml_lang(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -221,6 +248,8 @@ xml_reader_get_xml_lang(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_is_empty_element(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -235,6 +264,8 @@ int CEF_CALLBACK xml_reader_is_empty_element(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_has_value(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -250,6 +281,8 @@ int CEF_CALLBACK xml_reader_has_value(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_value(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -264,6 +297,8 @@ xml_reader_get_value(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_has_attributes(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -279,6 +314,8 @@ int CEF_CALLBACK xml_reader_has_attributes(struct _cef_xml_reader_t* self) { size_t CEF_CALLBACK xml_reader_get_attribute_count(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -294,6 +331,8 @@ xml_reader_get_attribute_count(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_attribute_byindex(struct _cef_xml_reader_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -314,6 +353,8 @@ xml_reader_get_attribute_byindex(struct _cef_xml_reader_t* self, int index) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_attribute_byqname(struct _cef_xml_reader_t* self, const cef_string_t* qualifiedName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -336,6 +377,8 @@ cef_string_userfree_t CEF_CALLBACK xml_reader_get_attribute_bylname(struct _cef_xml_reader_t* self, const cef_string_t* localName, const cef_string_t* namespaceURI) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -360,6 +403,8 @@ xml_reader_get_attribute_bylname(struct _cef_xml_reader_t* self, cef_string_userfree_t CEF_CALLBACK xml_reader_get_inner_xml(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -375,6 +420,8 @@ xml_reader_get_inner_xml(struct _cef_xml_reader_t* self) { cef_string_userfree_t CEF_CALLBACK xml_reader_get_outer_xml(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -389,6 +436,8 @@ xml_reader_get_outer_xml(struct _cef_xml_reader_t* self) { } int CEF_CALLBACK xml_reader_get_line_number(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -405,6 +454,8 @@ int CEF_CALLBACK xml_reader_get_line_number(struct _cef_xml_reader_t* self) { int CEF_CALLBACK xml_reader_move_to_attribute_byindex(struct _cef_xml_reader_t* self, int index) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -425,6 +476,8 @@ xml_reader_move_to_attribute_byindex(struct _cef_xml_reader_t* self, int CEF_CALLBACK xml_reader_move_to_attribute_byqname(struct _cef_xml_reader_t* self, const cef_string_t* qualifiedName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -447,6 +500,8 @@ int CEF_CALLBACK xml_reader_move_to_attribute_bylname(struct _cef_xml_reader_t* self, const cef_string_t* localName, const cef_string_t* namespaceURI) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -471,6 +526,8 @@ xml_reader_move_to_attribute_bylname(struct _cef_xml_reader_t* self, int CEF_CALLBACK xml_reader_move_to_first_attribute(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -486,6 +543,8 @@ xml_reader_move_to_first_attribute(struct _cef_xml_reader_t* self) { int CEF_CALLBACK xml_reader_move_to_next_attribute(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -501,6 +560,8 @@ xml_reader_move_to_next_attribute(struct _cef_xml_reader_t* self) { int CEF_CALLBACK xml_reader_move_to_carrying_element(struct _cef_xml_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -550,6 +611,12 @@ CefXmlReaderCppToC::CefXmlReaderCppToC() { GetStruct()->move_to_carrying_element = xml_reader_move_to_carrying_element; } +// DESTRUCTOR - Do not edit by hand. + +CefXmlReaderCppToC::~CefXmlReaderCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/xml_reader_cpptoc.h b/libcef_dll/cpptoc/xml_reader_cpptoc.h index f5911ad03..ccd28673a 100644 --- a/libcef_dll/cpptoc/xml_reader_cpptoc.h +++ b/libcef_dll/cpptoc/xml_reader_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a3e11a8e498a380408c8eb7086d8a34786812f0b$ +// $hash=f1491c098d9c4929a84b80616d5a21d9b5b104df$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_XML_READER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefXmlReaderCppToC : public CefCppToCRefCounted { public: CefXmlReaderCppToC(); + virtual ~CefXmlReaderCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_XML_READER_CPPTOC_H_ diff --git a/libcef_dll/cpptoc/zip_reader_cpptoc.cc b/libcef_dll/cpptoc/zip_reader_cpptoc.cc index 6b57d275e..6182f2336 100644 --- a/libcef_dll/cpptoc/zip_reader_cpptoc.cc +++ b/libcef_dll/cpptoc/zip_reader_cpptoc.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=125ee09b935c0f1701b359a81b75558a5439f576$ +// $hash=e36ec82777cd8eb831debef2c9f5310bf175526e$ // #include "libcef_dll/cpptoc/zip_reader_cpptoc.h" #include "libcef_dll/cpptoc/stream_reader_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // GLOBAL FUNCTIONS - Body may be edited by hand. CEF_EXPORT cef_zip_reader_t* cef_zip_reader_create( cef_stream_reader_t* stream) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: stream; type: refptr_same @@ -39,6 +42,8 @@ namespace { // MEMBER FUNCTIONS - Body may be edited by hand. int CEF_CALLBACK zip_reader_move_to_first_file(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -53,6 +58,8 @@ int CEF_CALLBACK zip_reader_move_to_first_file(struct _cef_zip_reader_t* self) { } int CEF_CALLBACK zip_reader_move_to_next_file(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -69,6 +76,8 @@ int CEF_CALLBACK zip_reader_move_to_next_file(struct _cef_zip_reader_t* self) { int CEF_CALLBACK zip_reader_move_to_file(struct _cef_zip_reader_t* self, const cef_string_t* fileName, int caseSensitive) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -88,6 +97,8 @@ int CEF_CALLBACK zip_reader_move_to_file(struct _cef_zip_reader_t* self, } int CEF_CALLBACK zip_reader_close(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -103,6 +114,8 @@ int CEF_CALLBACK zip_reader_close(struct _cef_zip_reader_t* self) { cef_string_userfree_t CEF_CALLBACK zip_reader_get_file_name(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -117,6 +130,8 @@ zip_reader_get_file_name(struct _cef_zip_reader_t* self) { } int64 CEF_CALLBACK zip_reader_get_file_size(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -132,6 +147,8 @@ int64 CEF_CALLBACK zip_reader_get_file_size(struct _cef_zip_reader_t* self) { cef_time_t CEF_CALLBACK zip_reader_get_file_last_modified(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -147,6 +164,8 @@ zip_reader_get_file_last_modified(struct _cef_zip_reader_t* self) { int CEF_CALLBACK zip_reader_open_file(struct _cef_zip_reader_t* self, const cef_string_t* password) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -162,6 +181,8 @@ int CEF_CALLBACK zip_reader_open_file(struct _cef_zip_reader_t* self, } int CEF_CALLBACK zip_reader_close_file(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -178,6 +199,8 @@ int CEF_CALLBACK zip_reader_close_file(struct _cef_zip_reader_t* self) { int CEF_CALLBACK zip_reader_read_file(struct _cef_zip_reader_t* self, void* buffer, size_t bufferSize) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -196,6 +219,8 @@ int CEF_CALLBACK zip_reader_read_file(struct _cef_zip_reader_t* self, } int64 CEF_CALLBACK zip_reader_tell(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -210,6 +235,8 @@ int64 CEF_CALLBACK zip_reader_tell(struct _cef_zip_reader_t* self) { } int CEF_CALLBACK zip_reader_eof(struct _cef_zip_reader_t* self) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING DCHECK(self); @@ -242,6 +269,12 @@ CefZipReaderCppToC::CefZipReaderCppToC() { GetStruct()->eof = zip_reader_eof; } +// DESTRUCTOR - Do not edit by hand. + +CefZipReaderCppToC::~CefZipReaderCppToC() { + shutdown_checker::AssertNotShutdown(); +} + template <> CefRefPtr CefCppToCRefCounted:: diff --git a/libcef_dll/cpptoc/zip_reader_cpptoc.h b/libcef_dll/cpptoc/zip_reader_cpptoc.h index 5aa455516..11175aa81 100644 --- a/libcef_dll/cpptoc/zip_reader_cpptoc.h +++ b/libcef_dll/cpptoc/zip_reader_cpptoc.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6ac712878bf45597b5ebb9e5d452d21ba87c859a$ +// $hash=4e4be661c833d5e298eb818fbb4676d4761a85a2$ // #ifndef CEF_LIBCEF_DLL_CPPTOC_ZIP_READER_CPPTOC_H_ @@ -31,6 +31,7 @@ class CefZipReaderCppToC : public CefCppToCRefCounted { public: CefZipReaderCppToC(); + virtual ~CefZipReaderCppToC(); }; #endif // CEF_LIBCEF_DLL_CPPTOC_ZIP_READER_CPPTOC_H_ diff --git a/libcef_dll/ctocpp/accessibility_handler_ctocpp.cc b/libcef_dll/ctocpp/accessibility_handler_ctocpp.cc index 65b582aa4..8949fd31a 100644 --- a/libcef_dll/ctocpp/accessibility_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/accessibility_handler_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0191a03a4fde402c6c3949f8f8b86e7066ff0308$ +// $hash=1f6d487d87b69001c7d312d54e07131b9c572a01$ // #include "libcef_dll/ctocpp/accessibility_handler_ctocpp.h" #include "libcef_dll/cpptoc/value_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefAccessibilityHandlerCToCpp::OnAccessibilityTreeChange( CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_accessibility_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_accessibility_tree_change)) return; @@ -38,6 +41,8 @@ void CefAccessibilityHandlerCToCpp::OnAccessibilityTreeChange( NO_SANITIZE("cfi-icall") void CefAccessibilityHandlerCToCpp::OnAccessibilityLocationChange( CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_accessibility_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_accessibility_location_change)) return; @@ -58,6 +63,12 @@ void CefAccessibilityHandlerCToCpp::OnAccessibilityLocationChange( CefAccessibilityHandlerCToCpp::CefAccessibilityHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefAccessibilityHandlerCToCpp::~CefAccessibilityHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_accessibility_handler_t* CefCToCppRefCounted< CefAccessibilityHandlerCToCpp, diff --git a/libcef_dll/ctocpp/accessibility_handler_ctocpp.h b/libcef_dll/ctocpp/accessibility_handler_ctocpp.h index 455ec695f..e4fbacb0a 100644 --- a/libcef_dll/ctocpp/accessibility_handler_ctocpp.h +++ b/libcef_dll/ctocpp/accessibility_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=af559ea113e73a5ec2f7601df449fa0d16dbeff3$ +// $hash=39efeb85718f40c3e155eb1ab237b220f9a21e7b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_ACCESSIBILITY_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefAccessibilityHandlerCToCpp cef_accessibility_handler_t> { public: CefAccessibilityHandlerCToCpp(); + virtual ~CefAccessibilityHandlerCToCpp(); // CefAccessibilityHandler methods. void OnAccessibilityTreeChange(CefRefPtr value) override; diff --git a/libcef_dll/ctocpp/app_ctocpp.cc b/libcef_dll/ctocpp/app_ctocpp.cc index ee727c51f..52763336c 100644 --- a/libcef_dll/ctocpp/app_ctocpp.cc +++ b/libcef_dll/ctocpp/app_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=12047a7b797b349b954f40de4eabe6ca4ee7acbe$ +// $hash=6011ba51ef34b7ff0287a83c23b0a586a966bc04$ // #include "libcef_dll/ctocpp/app_ctocpp.h" @@ -117,6 +117,10 @@ CefRefPtr CefAppCToCpp::GetRenderProcessHandler() { CefAppCToCpp::CefAppCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefAppCToCpp::~CefAppCToCpp() {} + template <> cef_app_t* CefCToCppRefCounted::UnwrapDerived( CefWrapperType type, diff --git a/libcef_dll/ctocpp/app_ctocpp.h b/libcef_dll/ctocpp/app_ctocpp.h index 5324accd5..0890c31cd 100644 --- a/libcef_dll/ctocpp/app_ctocpp.h +++ b/libcef_dll/ctocpp/app_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0ceb6624f04b4560f64f6977970c70c675533bbf$ +// $hash=681a5d98bc6bf5a9dd75dec86257cff092e2e1e5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_APP_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefAppCToCpp : public CefCToCppRefCounted { public: CefAppCToCpp(); + virtual ~CefAppCToCpp(); // CefApp methods. void OnBeforeCommandLineProcessing( diff --git a/libcef_dll/ctocpp/auth_callback_ctocpp.cc b/libcef_dll/ctocpp/auth_callback_ctocpp.cc index 8e36f7fd9..15d510220 100644 --- a/libcef_dll/ctocpp/auth_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/auth_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f0726f007fd7ead352058c1301d19cda693e940c$ +// $hash=09aa28001ce5c27be8aabaaac447ffd425649774$ // #include "libcef_dll/ctocpp/auth_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefAuthCallbackCToCpp::Continue(const CefString& username, const CefString& password) { + shutdown_checker::AssertNotShutdown(); + cef_auth_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -32,6 +35,8 @@ void CefAuthCallbackCToCpp::Continue(const CefString& username, } NO_SANITIZE("cfi-icall") void CefAuthCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_auth_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -46,6 +51,12 @@ NO_SANITIZE("cfi-icall") void CefAuthCallbackCToCpp::Cancel() { CefAuthCallbackCToCpp::CefAuthCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefAuthCallbackCToCpp::~CefAuthCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_auth_callback_t* CefCToCppRefCounted { public: CefAuthCallbackCToCpp(); + virtual ~CefAuthCallbackCToCpp(); // CefAuthCallback methods. void Continue(const CefString& username, const CefString& password) OVERRIDE; diff --git a/libcef_dll/ctocpp/before_download_callback_ctocpp.cc b/libcef_dll/ctocpp/before_download_callback_ctocpp.cc index 9db226951..35ffde2b5 100644 --- a/libcef_dll/ctocpp/before_download_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/before_download_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f554dcaf4d279e662f6dad4a6fe2b4cae9082c27$ +// $hash=26958e33f8c5428edc461d6e58fe8b31ebc8037c$ // #include "libcef_dll/ctocpp/before_download_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path, bool show_dialog) { + shutdown_checker::AssertNotShutdown(); + cef_before_download_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -35,6 +38,12 @@ void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path, CefBeforeDownloadCallbackCToCpp::CefBeforeDownloadCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBeforeDownloadCallbackCToCpp::~CefBeforeDownloadCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_before_download_callback_t* CefCToCppRefCounted< CefBeforeDownloadCallbackCToCpp, diff --git a/libcef_dll/ctocpp/before_download_callback_ctocpp.h b/libcef_dll/ctocpp/before_download_callback_ctocpp.h index 954725fdc..6cd8512fd 100644 --- a/libcef_dll/ctocpp/before_download_callback_ctocpp.h +++ b/libcef_dll/ctocpp/before_download_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=fd17f75c38bf7875a5fbb44c528ef8fdb81c1687$ +// $hash=aee80702bde12fee07017808bf9ab8204672e2cf$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BEFORE_DOWNLOAD_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefBeforeDownloadCallbackCToCpp cef_before_download_callback_t> { public: CefBeforeDownloadCallbackCToCpp(); + virtual ~CefBeforeDownloadCallbackCToCpp(); // CefBeforeDownloadCallback methods. void Continue(const CefString& download_path, bool show_dialog) OVERRIDE; diff --git a/libcef_dll/ctocpp/binary_value_ctocpp.cc b/libcef_dll/ctocpp/binary_value_ctocpp.cc index 2c38f3f0b..c28bdcb2d 100644 --- a/libcef_dll/ctocpp/binary_value_ctocpp.cc +++ b/libcef_dll/ctocpp/binary_value_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7d4fc8d4813c6afd32ef61e58ea0b5e7dd150b88$ +// $hash=def1e99d2868c97fc449b5fbe53143131ebdc297$ // #include "libcef_dll/ctocpp/binary_value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefBinaryValue::Create(const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: data; type: simple_byaddr @@ -36,6 +39,8 @@ CefRefPtr CefBinaryValue::Create(const void* data, // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -50,6 +55,8 @@ NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsOwned() { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_owned)) return false; @@ -65,6 +72,8 @@ NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsOwned() { NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -85,6 +94,8 @@ bool CefBinaryValueCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") bool CefBinaryValueCToCpp::IsEqual(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_equal)) return false; @@ -105,6 +116,8 @@ bool CefBinaryValueCToCpp::IsEqual(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefBinaryValueCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -119,6 +132,8 @@ CefRefPtr CefBinaryValueCToCpp::Copy() { } NO_SANITIZE("cfi-icall") size_t CefBinaryValueCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_size)) return 0; @@ -136,6 +151,8 @@ NO_SANITIZE("cfi-icall") size_t CefBinaryValueCToCpp::GetData(void* buffer, size_t buffer_size, size_t data_offset) { + shutdown_checker::AssertNotShutdown(); + cef_binary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_data)) return 0; @@ -158,6 +175,12 @@ size_t CefBinaryValueCToCpp::GetData(void* buffer, CefBinaryValueCToCpp::CefBinaryValueCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBinaryValueCToCpp::~CefBinaryValueCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_binary_value_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/binary_value_ctocpp.h b/libcef_dll/ctocpp/binary_value_ctocpp.h index 33c497b39..8703d73c0 100644 --- a/libcef_dll/ctocpp/binary_value_ctocpp.h +++ b/libcef_dll/ctocpp/binary_value_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8341ed8de354de4f2ad2b6ed087021b230b9fc29$ +// $hash=789a1cb3970193193b0e5216be27e4d0b989fd54$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BINARY_VALUE_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefBinaryValueCToCpp : public CefCToCppRefCounted { public: CefBinaryValueCToCpp(); + virtual ~CefBinaryValueCToCpp(); // CefBinaryValue methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/browser_ctocpp.cc b/libcef_dll/ctocpp/browser_ctocpp.cc index 9405bb223..bdd67f744 100644 --- a/libcef_dll/ctocpp/browser_ctocpp.cc +++ b/libcef_dll/ctocpp/browser_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d2a8df591c6cf2c7784fed2d636a2fb3b2568acc$ +// $hash=bbbbf904786232880d26213bfc922ca278a4ea22$ // #include "libcef_dll/ctocpp/browser_ctocpp.h" @@ -17,11 +17,14 @@ #include "libcef_dll/ctocpp/browser_host_ctocpp.h" #include "libcef_dll/ctocpp/frame_ctocpp.h" #include "libcef_dll/ctocpp/process_message_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetHost() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_host)) return NULL; @@ -36,6 +39,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetHost() { } NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::CanGoBack() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_go_back)) return false; @@ -50,6 +55,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::CanGoBack() { } NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GoBack() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, go_back)) return; @@ -61,6 +68,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GoBack() { } NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::CanGoForward() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_go_forward)) return false; @@ -75,6 +84,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::CanGoForward() { } NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GoForward() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, go_forward)) return; @@ -86,6 +97,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GoForward() { } NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::IsLoading() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_loading)) return false; @@ -100,6 +113,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::IsLoading() { } NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::Reload() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reload)) return; @@ -111,6 +126,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::Reload() { } NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::ReloadIgnoreCache() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reload_ignore_cache)) return; @@ -122,6 +139,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::ReloadIgnoreCache() { } NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::StopLoad() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, stop_load)) return; @@ -133,6 +152,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::StopLoad() { } NO_SANITIZE("cfi-icall") int CefBrowserCToCpp::GetIdentifier() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_identifier)) return 0; @@ -148,6 +169,8 @@ NO_SANITIZE("cfi-icall") int CefBrowserCToCpp::GetIdentifier() { NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -167,6 +190,8 @@ bool CefBrowserCToCpp::IsSame(CefRefPtr that) { } NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::IsPopup() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_popup)) return false; @@ -181,6 +206,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::IsPopup() { } NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::HasDocument() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_document)) return false; @@ -195,6 +222,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::HasDocument() { } NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetMainFrame() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_main_frame)) return NULL; @@ -210,6 +239,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetMainFrame() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetFocusedFrame() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_focused_frame)) return NULL; @@ -225,6 +256,8 @@ CefRefPtr CefBrowserCToCpp::GetFocusedFrame() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetFrame(int64 identifier) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_byident)) return NULL; @@ -240,6 +273,8 @@ CefRefPtr CefBrowserCToCpp::GetFrame(int64 identifier) { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserCToCpp::GetFrame(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame)) return NULL; @@ -256,6 +291,8 @@ CefRefPtr CefBrowserCToCpp::GetFrame(const CefString& name) { } NO_SANITIZE("cfi-icall") size_t CefBrowserCToCpp::GetFrameCount() { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_count)) return 0; @@ -271,6 +308,8 @@ NO_SANITIZE("cfi-icall") size_t CefBrowserCToCpp::GetFrameCount() { NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GetFrameIdentifiers(std::vector& identifiers) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_identifiers)) return; @@ -309,6 +348,8 @@ void CefBrowserCToCpp::GetFrameIdentifiers(std::vector& identifiers) { NO_SANITIZE("cfi-icall") void CefBrowserCToCpp::GetFrameNames(std::vector& names) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_names)) return; @@ -336,6 +377,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserCToCpp::SendProcessMessage( CefProcessId target_process, CefRefPtr message) { + shutdown_checker::AssertNotShutdown(); + cef_browser_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_process_message)) return false; @@ -359,6 +402,12 @@ bool CefBrowserCToCpp::SendProcessMessage( CefBrowserCToCpp::CefBrowserCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBrowserCToCpp::~CefBrowserCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_browser_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/browser_ctocpp.h b/libcef_dll/ctocpp/browser_ctocpp.h index 036e0598e..1c30ade79 100644 --- a/libcef_dll/ctocpp/browser_ctocpp.h +++ b/libcef_dll/ctocpp/browser_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7962144ddad9960282099196184e1fedbf387c89$ +// $hash=8f3cd27505fb1c95ab77ce1ca8a499eb79c0ede4$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefBrowserCToCpp : public CefCToCppRefCounted { public: CefBrowserCToCpp(); + virtual ~CefBrowserCToCpp(); // CefBrowser methods. CefRefPtr GetHost() OVERRIDE; diff --git a/libcef_dll/ctocpp/browser_host_ctocpp.cc b/libcef_dll/ctocpp/browser_host_ctocpp.cc index 08082af85..1f933bf7c 100644 --- a/libcef_dll/ctocpp/browser_host_ctocpp.cc +++ b/libcef_dll/ctocpp/browser_host_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f60a48364a8a829b25ac48261e8147f5974175a3$ +// $hash=e7fff2115c4dcd6d6c1cc6954eb985b817153a02$ // #include "libcef_dll/ctocpp/browser_host_ctocpp.h" @@ -23,6 +23,7 @@ #include "libcef_dll/ctocpp/extension_ctocpp.h" #include "libcef_dll/ctocpp/navigation_entry_ctocpp.h" #include "libcef_dll/ctocpp/request_context_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // STATIC METHODS - Body may be edited by hand. @@ -34,6 +35,8 @@ bool CefBrowserHost::CreateBrowser( const CefString& url, const CefBrowserSettings& settings, CefRefPtr request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: client, url, request_context @@ -54,6 +57,8 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( const CefString& url, const CefBrowserSettings& settings, CefRefPtr request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: client, url, request_context @@ -71,6 +76,8 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetBrowser() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_browser)) return NULL; @@ -86,6 +93,8 @@ CefRefPtr CefBrowserHostCToCpp::GetBrowser() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseBrowser(bool force_close) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_browser)) return; @@ -97,6 +106,8 @@ void CefBrowserHostCToCpp::CloseBrowser(bool force_close) { } NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::TryCloseBrowser() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, try_close_browser)) return false; @@ -111,6 +122,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::TryCloseBrowser() { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetFocus(bool focus) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_focus)) return; @@ -123,6 +136,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetFocus(bool focus) { NO_SANITIZE("cfi-icall") CefWindowHandle CefBrowserHostCToCpp::GetWindowHandle() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window_handle)) return kNullWindowHandle; @@ -138,6 +153,8 @@ CefWindowHandle CefBrowserHostCToCpp::GetWindowHandle() { NO_SANITIZE("cfi-icall") CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_opener_window_handle)) return kNullWindowHandle; @@ -152,6 +169,8 @@ CefWindowHandle CefBrowserHostCToCpp::GetOpenerWindowHandle() { } NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasView() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_view)) return false; @@ -167,6 +186,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasView() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetClient() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_client)) return NULL; @@ -182,6 +203,8 @@ CefRefPtr CefBrowserHostCToCpp::GetClient() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetRequestContext() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_request_context)) return NULL; @@ -196,6 +219,8 @@ CefRefPtr CefBrowserHostCToCpp::GetRequestContext() { } NO_SANITIZE("cfi-icall") double CefBrowserHostCToCpp::GetZoomLevel() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_zoom_level)) return 0; @@ -211,6 +236,8 @@ NO_SANITIZE("cfi-icall") double CefBrowserHostCToCpp::GetZoomLevel() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetZoomLevel(double zoomLevel) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_zoom_level)) return; @@ -229,6 +256,8 @@ void CefBrowserHostCToCpp::RunFileDialog( const std::vector& accept_filters, int selected_accept_filter, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, run_file_dialog)) return; @@ -264,6 +293,8 @@ void CefBrowserHostCToCpp::RunFileDialog( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::StartDownload(const CefString& url) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, start_download)) return; @@ -286,6 +317,8 @@ void CefBrowserHostCToCpp::DownloadImage( uint32 max_image_size, bool bypass_cache, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, download_image)) return; @@ -308,6 +341,8 @@ void CefBrowserHostCToCpp::DownloadImage( } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Print() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, print)) return; @@ -322,6 +357,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::PrintToPDF(const CefString& path, const CefPdfPrintSettings& settings, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, print_to_pdf)) return; @@ -345,6 +382,8 @@ void CefBrowserHostCToCpp::Find(int identifier, bool forward, bool matchCase, bool findNext) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, find)) return; @@ -363,6 +402,8 @@ void CefBrowserHostCToCpp::Find(int identifier, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::StopFinding(bool clearSelection) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, stop_finding)) return; @@ -378,6 +419,8 @@ void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo, CefRefPtr client, const CefBrowserSettings& settings, const CefPoint& inspect_element_at) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, show_dev_tools)) return; @@ -392,6 +435,8 @@ void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo, } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseDevTools() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_dev_tools)) return; @@ -403,6 +448,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::CloseDevTools() { } NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::HasDevTools() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_dev_tools)) return false; @@ -420,6 +467,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::GetNavigationEntries( CefRefPtr visitor, bool current_only) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_navigation_entries)) return; @@ -438,6 +487,8 @@ void CefBrowserHostCToCpp::GetNavigationEntries( NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetMouseCursorChangeDisabled(bool disabled) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_mouse_cursor_change_disabled)) return; @@ -450,6 +501,8 @@ void CefBrowserHostCToCpp::SetMouseCursorChangeDisabled(bool disabled) { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsMouseCursorChangeDisabled() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_mouse_cursor_change_disabled)) return false; @@ -465,6 +518,8 @@ bool CefBrowserHostCToCpp::IsMouseCursorChangeDisabled() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, replace_misspelling)) return; @@ -482,6 +537,8 @@ void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_word_to_dictionary)) return; @@ -499,6 +556,8 @@ void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) { NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_window_rendering_disabled)) return false; @@ -513,6 +572,8 @@ bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasResized() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, was_resized)) return; @@ -524,6 +585,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasResized() { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasHidden(bool hidden) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, was_hidden)) return; @@ -535,6 +598,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::WasHidden(bool hidden) { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyScreenInfoChanged() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, notify_screen_info_changed)) return; @@ -547,6 +612,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyScreenInfoChanged() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::Invalidate(PaintElementType type) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, invalidate)) return; @@ -558,6 +625,8 @@ void CefBrowserHostCToCpp::Invalidate(PaintElementType type) { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendExternalBeginFrame() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_external_begin_frame)) return; @@ -570,6 +639,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendExternalBeginFrame() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendKeyEvent(const CefKeyEvent& event) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_key_event)) return; @@ -585,6 +656,8 @@ void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event, MouseButtonType type, bool mouseUp, int clickCount) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_click_event)) return; @@ -598,6 +671,8 @@ void CefBrowserHostCToCpp::SendMouseClickEvent(const CefMouseEvent& event, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendMouseMoveEvent(const CefMouseEvent& event, bool mouseLeave) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_move_event)) return; @@ -612,6 +687,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event, int deltaX, int deltaY) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_wheel_event)) return; @@ -624,6 +701,8 @@ void CefBrowserHostCToCpp::SendMouseWheelEvent(const CefMouseEvent& event, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendFocusEvent(bool setFocus) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_focus_event)) return; @@ -635,6 +714,8 @@ void CefBrowserHostCToCpp::SendFocusEvent(bool setFocus) { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendCaptureLostEvent() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_capture_lost_event)) return; @@ -647,6 +728,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SendCaptureLostEvent() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, notify_move_or_resize_started)) return; @@ -658,6 +741,8 @@ void CefBrowserHostCToCpp::NotifyMoveOrResizeStarted() { } NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::GetWindowlessFrameRate() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_windowless_frame_rate)) return 0; @@ -673,6 +758,8 @@ NO_SANITIZE("cfi-icall") int CefBrowserHostCToCpp::GetWindowlessFrameRate() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetWindowlessFrameRate(int frame_rate) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_windowless_frame_rate)) return; @@ -689,6 +776,8 @@ void CefBrowserHostCToCpp::ImeSetComposition( const std::vector& underlines, const CefRange& replacement_range, const CefRange& selection_range) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_set_composition)) return; @@ -724,6 +813,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeCommitText(const CefString& text, const CefRange& replacement_range, int relative_cursor_pos) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_commit_text)) return; @@ -739,6 +830,8 @@ void CefBrowserHostCToCpp::ImeCommitText(const CefString& text, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_finish_composing_text)) return; @@ -750,6 +843,8 @@ void CefBrowserHostCToCpp::ImeFinishComposingText(bool keep_selection) { } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::ImeCancelComposition() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, ime_cancel_composition)) return; @@ -764,6 +859,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr drag_data, const CefMouseEvent& event, DragOperationsMask allowed_ops) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_enter)) return; @@ -783,6 +880,8 @@ void CefBrowserHostCToCpp::DragTargetDragEnter(CefRefPtr drag_data, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event, DragOperationsMask allowed_ops) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_over)) return; @@ -794,6 +893,8 @@ void CefBrowserHostCToCpp::DragTargetDragOver(const CefMouseEvent& event, } NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragLeave() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drag_leave)) return; @@ -806,6 +907,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDragLeave() { NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragTargetDrop(const CefMouseEvent& event) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_target_drop)) return; @@ -820,6 +923,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragSourceEndedAt(int x, int y, DragOperationsMask op) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_source_ended_at)) return; @@ -832,6 +937,8 @@ void CefBrowserHostCToCpp::DragSourceEndedAt(int x, NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::DragSourceSystemDragEnded() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, drag_source_system_drag_ended)) return; @@ -843,8 +950,10 @@ void CefBrowserHostCToCpp::DragSourceSystemDragEnded() { } NO_SANITIZE("cfi-icall") -CefRefPtr< - CefNavigationEntry> CefBrowserHostCToCpp::GetVisibleNavigationEntry() { +CefRefPtr +CefBrowserHostCToCpp::GetVisibleNavigationEntry() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_visible_navigation_entry)) return NULL; @@ -862,6 +971,8 @@ CefRefPtr< NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAccessibilityState( cef_state_t accessibility_state) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accessibility_state)) return; @@ -876,6 +987,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserHostCToCpp::SetAutoResizeEnabled(bool enabled, const CefSize& min_size, const CefSize& max_size) { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_auto_resize_enabled)) return; @@ -888,6 +1001,8 @@ void CefBrowserHostCToCpp::SetAutoResizeEnabled(bool enabled, NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserHostCToCpp::GetExtension() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_extension)) return NULL; @@ -902,6 +1017,8 @@ CefRefPtr CefBrowserHostCToCpp::GetExtension() { } NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsBackgroundHost() { + shutdown_checker::AssertNotShutdown(); + cef_browser_host_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_background_host)) return false; @@ -919,6 +1036,12 @@ NO_SANITIZE("cfi-icall") bool CefBrowserHostCToCpp::IsBackgroundHost() { CefBrowserHostCToCpp::CefBrowserHostCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBrowserHostCToCpp::~CefBrowserHostCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_browser_host_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/browser_host_ctocpp.h b/libcef_dll/ctocpp/browser_host_ctocpp.h index 28edfce60..3ccbe9982 100644 --- a/libcef_dll/ctocpp/browser_host_ctocpp.h +++ b/libcef_dll/ctocpp/browser_host_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b12307f9b88f1fe1fd7ec6ba2c17d1599b679618$ +// $hash=afb348f0b0421d4d4202fac43edc2378c5a2d92c$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_HOST_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefBrowserHostCToCpp : public CefCToCppRefCounted { public: CefBrowserHostCToCpp(); + virtual ~CefBrowserHostCToCpp(); // CefBrowserHost methods. CefRefPtr GetBrowser() OVERRIDE; diff --git a/libcef_dll/ctocpp/browser_process_handler_ctocpp.cc b/libcef_dll/ctocpp/browser_process_handler_ctocpp.cc index 3251b2581..d4cb8357d 100644 --- a/libcef_dll/ctocpp/browser_process_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/browser_process_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1b1682d32eebdeeaac23aa92227d871f49fa7707$ +// $hash=27f76f8f3e56a348adc0c8466f171db8180e32ba$ // #include "libcef_dll/ctocpp/browser_process_handler_ctocpp.h" @@ -100,6 +100,10 @@ void CefBrowserProcessHandlerCToCpp::OnScheduleMessagePumpWork(int64 delay_ms) { CefBrowserProcessHandlerCToCpp::CefBrowserProcessHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBrowserProcessHandlerCToCpp::~CefBrowserProcessHandlerCToCpp() {} + template <> cef_browser_process_handler_t* CefCToCppRefCounted< CefBrowserProcessHandlerCToCpp, diff --git a/libcef_dll/ctocpp/browser_process_handler_ctocpp.h b/libcef_dll/ctocpp/browser_process_handler_ctocpp.h index a07d50cb2..602507372 100644 --- a/libcef_dll/ctocpp/browser_process_handler_ctocpp.h +++ b/libcef_dll/ctocpp/browser_process_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e495f891a565efe8f5cd7cddeea84a8ab7e5bbc4$ +// $hash=5d14d0a2f4c73edfec24c56998bdb66c8646d23a$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_PROCESS_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefBrowserProcessHandlerCToCpp cef_browser_process_handler_t> { public: CefBrowserProcessHandlerCToCpp(); + virtual ~CefBrowserProcessHandlerCToCpp(); // CefBrowserProcessHandler methods. void OnContextInitialized() override; diff --git a/libcef_dll/ctocpp/callback_ctocpp.cc b/libcef_dll/ctocpp/callback_ctocpp.cc index 51c18a070..72e7a3d8f 100644 --- a/libcef_dll/ctocpp/callback_ctocpp.cc +++ b/libcef_dll/ctocpp/callback_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d3fdd40153d21d06a0797791a71ac877dc8563d0$ +// $hash=6396d8906ae30f670b9ad387f83c400133591d58$ // #include "libcef_dll/ctocpp/callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Continue() { + shutdown_checker::AssertNotShutdown(); + cef_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -28,6 +31,8 @@ NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Continue() { } NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -42,6 +47,12 @@ NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Cancel() { CefCallbackCToCpp::CefCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefCallbackCToCpp::~CefCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_callback_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/callback_ctocpp.h b/libcef_dll/ctocpp/callback_ctocpp.h index 1d9e30bc5..fddba407a 100644 --- a/libcef_dll/ctocpp/callback_ctocpp.h +++ b/libcef_dll/ctocpp/callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=86c41d34e961da5c065e13c6faede50294cf4050$ +// $hash=43e81996fa631df9a05493e8ca020a90a2831b96$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_CALLBACK_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefCallbackCToCpp : public CefCToCppRefCounted { public: CefCallbackCToCpp(); + virtual ~CefCallbackCToCpp(); // CefCallback methods. void Continue() OVERRIDE; diff --git a/libcef_dll/ctocpp/client_ctocpp.cc b/libcef_dll/ctocpp/client_ctocpp.cc index 819668b10..39ee1c8ba 100644 --- a/libcef_dll/ctocpp/client_ctocpp.cc +++ b/libcef_dll/ctocpp/client_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=206c9d8f26cdcf1d7a879aab7c92712c3c10781c$ +// $hash=2f337e1a32d2f421fe8fcfc046b5992e5a1ce8c0$ // #include "libcef_dll/ctocpp/client_ctocpp.h" @@ -260,6 +260,10 @@ bool CefClientCToCpp::OnProcessMessageReceived( CefClientCToCpp::CefClientCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefClientCToCpp::~CefClientCToCpp() {} + template <> cef_client_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/client_ctocpp.h b/libcef_dll/ctocpp/client_ctocpp.h index 8e88c3a43..f62612af3 100644 --- a/libcef_dll/ctocpp/client_ctocpp.h +++ b/libcef_dll/ctocpp/client_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bf7c09d3ce6778f188b0ded7c16bde93b3875a8b$ +// $hash=602d9ae37bbd54ba2e8acb3ac2103f418aa65657$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefClientCToCpp : public CefCToCppRefCounted { public: CefClientCToCpp(); + virtual ~CefClientCToCpp(); // CefClient methods. CefRefPtr GetContextMenuHandler() override; diff --git a/libcef_dll/ctocpp/command_line_ctocpp.cc b/libcef_dll/ctocpp/command_line_ctocpp.cc index 973493cb1..dd4123580 100644 --- a/libcef_dll/ctocpp/command_line_ctocpp.cc +++ b/libcef_dll/ctocpp/command_line_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1c498e2873d5fc44f66de6a1faa1cb786465c293$ +// $hash=c50cd1a504c4f58009b0a54ccf5c87ffd8e2bbbd$ // #include "libcef_dll/ctocpp/command_line_ctocpp.h" @@ -418,6 +418,10 @@ void CefCommandLineCToCpp::PrependWrapper(const CefString& wrapper) { CefCommandLineCToCpp::CefCommandLineCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefCommandLineCToCpp::~CefCommandLineCToCpp() {} + template <> cef_command_line_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/command_line_ctocpp.h b/libcef_dll/ctocpp/command_line_ctocpp.h index f4bd9a81e..929666eda 100644 --- a/libcef_dll/ctocpp/command_line_ctocpp.h +++ b/libcef_dll/ctocpp/command_line_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=afd4d970c72ca973e55083a29ec5267dd9451697$ +// $hash=dadda752a23cc7c0e21ebc9e0fb39d3cdc1e05a1$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefCommandLineCToCpp : public CefCToCppRefCounted { public: CefCommandLineCToCpp(); + virtual ~CefCommandLineCToCpp(); // CefCommandLine methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/completion_callback_ctocpp.cc b/libcef_dll/ctocpp/completion_callback_ctocpp.cc index bacc453e2..f977cbfdc 100644 --- a/libcef_dll/ctocpp/completion_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/completion_callback_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=09314c7eb39354c47d9e48fdda3d89764ad05dad$ +// $hash=c34c782c8c4d8bfacaeeb06f7e824afead5cf8ed$ // #include "libcef_dll/ctocpp/completion_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefCompletionCallbackCToCpp::OnComplete() { + shutdown_checker::AssertNotShutdown(); + cef_completion_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_complete)) return; @@ -31,6 +34,12 @@ NO_SANITIZE("cfi-icall") void CefCompletionCallbackCToCpp::OnComplete() { CefCompletionCallbackCToCpp::CefCompletionCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefCompletionCallbackCToCpp::~CefCompletionCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_completion_callback_t* CefCToCppRefCounted< CefCompletionCallbackCToCpp, diff --git a/libcef_dll/ctocpp/completion_callback_ctocpp.h b/libcef_dll/ctocpp/completion_callback_ctocpp.h index 0ee4ce431..a937e9b47 100644 --- a/libcef_dll/ctocpp/completion_callback_ctocpp.h +++ b/libcef_dll/ctocpp/completion_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b9fff0d790b5a757539db1e5afa3bc025a2d8300$ +// $hash=7b743cd250ceb6111d8504cdd68783c53fad46e5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_COMPLETION_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefCompletionCallbackCToCpp cef_completion_callback_t> { public: CefCompletionCallbackCToCpp(); + virtual ~CefCompletionCallbackCToCpp(); // CefCompletionCallback methods. void OnComplete() override; diff --git a/libcef_dll/ctocpp/context_menu_handler_ctocpp.cc b/libcef_dll/ctocpp/context_menu_handler_ctocpp.cc index 01a841f23..7ee2f3905 100644 --- a/libcef_dll/ctocpp/context_menu_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/context_menu_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4fd9a1c6a93d830bbf774e19230de1142f798746$ +// $hash=411f3c8711e8f5ebdfd9db99ceb041f1a5a3302b$ // #include "libcef_dll/ctocpp/context_menu_handler_ctocpp.h" @@ -18,6 +18,7 @@ #include "libcef_dll/cpptoc/frame_cpptoc.h" #include "libcef_dll/cpptoc/menu_model_cpptoc.h" #include "libcef_dll/cpptoc/run_context_menu_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -27,6 +28,8 @@ void CefContextMenuHandlerCToCpp::OnBeforeContextMenu( CefRefPtr frame, CefRefPtr params, CefRefPtr model) { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_context_menu)) return; @@ -64,6 +67,8 @@ bool CefContextMenuHandlerCToCpp::RunContextMenu( CefRefPtr params, CefRefPtr model, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, run_context_menu)) return false; @@ -108,6 +113,8 @@ bool CefContextMenuHandlerCToCpp::OnContextMenuCommand( CefRefPtr params, int command_id, EventFlags event_flags) { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_context_menu_command)) return false; @@ -140,6 +147,8 @@ NO_SANITIZE("cfi-icall") void CefContextMenuHandlerCToCpp::OnContextMenuDismissed( CefRefPtr browser, CefRefPtr frame) { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_context_menu_dismissed)) return; @@ -164,6 +173,12 @@ void CefContextMenuHandlerCToCpp::OnContextMenuDismissed( CefContextMenuHandlerCToCpp::CefContextMenuHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefContextMenuHandlerCToCpp::~CefContextMenuHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_context_menu_handler_t* CefCToCppRefCounted< CefContextMenuHandlerCToCpp, diff --git a/libcef_dll/ctocpp/context_menu_handler_ctocpp.h b/libcef_dll/ctocpp/context_menu_handler_ctocpp.h index 93fd47324..9d3690363 100644 --- a/libcef_dll/ctocpp/context_menu_handler_ctocpp.h +++ b/libcef_dll/ctocpp/context_menu_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=aa0637ec0541e926371ab5d89a1b9157adc29320$ +// $hash=b2fe2dc3b7f7b98715127c75ad6fa2f0980e36f5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_CONTEXT_MENU_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefContextMenuHandlerCToCpp cef_context_menu_handler_t> { public: CefContextMenuHandlerCToCpp(); + virtual ~CefContextMenuHandlerCToCpp(); // CefContextMenuHandler methods. void OnBeforeContextMenu(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/context_menu_params_ctocpp.cc b/libcef_dll/ctocpp/context_menu_params_ctocpp.cc index 65aa1e1f9..931a558da 100644 --- a/libcef_dll/ctocpp/context_menu_params_ctocpp.cc +++ b/libcef_dll/ctocpp/context_menu_params_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=42ff674e90448b09757c4f8cd202204a429bf0d6$ +// $hash=9ffb7c3d5516da08002154cd57ba9a2f36435097$ // #include "libcef_dll/ctocpp/context_menu_params_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") int CefContextMenuParamsCToCpp::GetXCoord() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_xcoord)) return 0; @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") int CefContextMenuParamsCToCpp::GetXCoord() { } NO_SANITIZE("cfi-icall") int CefContextMenuParamsCToCpp::GetYCoord() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ycoord)) return 0; @@ -47,6 +52,8 @@ NO_SANITIZE("cfi-icall") int CefContextMenuParamsCToCpp::GetYCoord() { NO_SANITIZE("cfi-icall") CefContextMenuParams::TypeFlags CefContextMenuParamsCToCpp::GetTypeFlags() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type_flags)) return CM_TYPEFLAG_NONE; @@ -61,6 +68,8 @@ CefContextMenuParams::TypeFlags CefContextMenuParamsCToCpp::GetTypeFlags() { } NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetLinkUrl() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_link_url)) return CefString(); @@ -78,6 +87,8 @@ NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetLinkUrl() { NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetUnfilteredLinkUrl() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_unfiltered_link_url)) return CefString(); @@ -94,6 +105,8 @@ CefString CefContextMenuParamsCToCpp::GetUnfilteredLinkUrl() { } NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetSourceUrl() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_source_url)) return CefString(); @@ -110,6 +123,8 @@ NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetSourceUrl() { } NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::HasImageContents() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_image_contents)) return false; @@ -124,6 +139,8 @@ NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::HasImageContents() { } NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetTitleText() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_title_text)) return CefString(); @@ -140,6 +157,8 @@ NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetTitleText() { } NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetPageUrl() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_page_url)) return CefString(); @@ -156,6 +175,8 @@ NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetPageUrl() { } NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetFrameUrl() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_url)) return CefString(); @@ -173,6 +194,8 @@ NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetFrameUrl() { NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetFrameCharset() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_charset)) return CefString(); @@ -190,6 +213,8 @@ CefString CefContextMenuParamsCToCpp::GetFrameCharset() { NO_SANITIZE("cfi-icall") CefContextMenuParams::MediaType CefContextMenuParamsCToCpp::GetMediaType() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_media_type)) return CM_MEDIATYPE_NONE; @@ -205,7 +230,9 @@ CefContextMenuParams::MediaType CefContextMenuParamsCToCpp::GetMediaType() { NO_SANITIZE("cfi-icall") CefContextMenuParams::MediaStateFlags - CefContextMenuParamsCToCpp::GetMediaStateFlags() { +CefContextMenuParamsCToCpp::GetMediaStateFlags() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_media_state_flags)) return CM_MEDIAFLAG_NONE; @@ -222,6 +249,8 @@ CefContextMenuParams::MediaStateFlags NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetSelectionText() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_text)) return CefString(); @@ -239,6 +268,8 @@ CefString CefContextMenuParamsCToCpp::GetSelectionText() { NO_SANITIZE("cfi-icall") CefString CefContextMenuParamsCToCpp::GetMisspelledWord() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_misspelled_word)) return CefString(); @@ -257,6 +288,8 @@ CefString CefContextMenuParamsCToCpp::GetMisspelledWord() { NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::GetDictionarySuggestions( std::vector& suggestions) { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_dictionary_suggestions)) return false; @@ -284,6 +317,8 @@ bool CefContextMenuParamsCToCpp::GetDictionarySuggestions( } NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsEditable() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_editable)) return false; @@ -299,6 +334,8 @@ NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsEditable() { NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsSpellCheckEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_spell_check_enabled)) return false; @@ -314,7 +351,9 @@ bool CefContextMenuParamsCToCpp::IsSpellCheckEnabled() { NO_SANITIZE("cfi-icall") CefContextMenuParams::EditStateFlags - CefContextMenuParamsCToCpp::GetEditStateFlags() { +CefContextMenuParamsCToCpp::GetEditStateFlags() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_edit_state_flags)) return CM_EDITFLAG_NONE; @@ -330,6 +369,8 @@ CefContextMenuParams::EditStateFlags } NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsCustomMenu() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_custom_menu)) return false; @@ -344,6 +385,8 @@ NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsCustomMenu() { } NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsPepperMenu() { + shutdown_checker::AssertNotShutdown(); + cef_context_menu_params_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_pepper_menu)) return false; @@ -361,6 +404,12 @@ NO_SANITIZE("cfi-icall") bool CefContextMenuParamsCToCpp::IsPepperMenu() { CefContextMenuParamsCToCpp::CefContextMenuParamsCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefContextMenuParamsCToCpp::~CefContextMenuParamsCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_context_menu_params_t* CefCToCppRefCounted< CefContextMenuParamsCToCpp, diff --git a/libcef_dll/ctocpp/context_menu_params_ctocpp.h b/libcef_dll/ctocpp/context_menu_params_ctocpp.h index 1c348e5ee..3a2e55394 100644 --- a/libcef_dll/ctocpp/context_menu_params_ctocpp.h +++ b/libcef_dll/ctocpp/context_menu_params_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c17ffc9433d72bc86a6ba0a5bd603ebb549bb18d$ +// $hash=6f71ae783e4b56110ae2806c943c4492406674aa$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_CONTEXT_MENU_PARAMS_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefContextMenuParamsCToCpp cef_context_menu_params_t> { public: CefContextMenuParamsCToCpp(); + virtual ~CefContextMenuParamsCToCpp(); // CefContextMenuParams methods. int GetXCoord() OVERRIDE; diff --git a/libcef_dll/ctocpp/cookie_manager_ctocpp.cc b/libcef_dll/ctocpp/cookie_manager_ctocpp.cc index 182edf61c..be9fa6e52 100644 --- a/libcef_dll/ctocpp/cookie_manager_ctocpp.cc +++ b/libcef_dll/ctocpp/cookie_manager_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4733700c909455722e13e510b8455c0c6943c575$ +// $hash=48ecf12e406c38ec0401872055a75cff0495f4d3$ // #include "libcef_dll/ctocpp/cookie_manager_ctocpp.h" @@ -237,6 +237,10 @@ bool CefCookieManagerCToCpp::FlushStore( CefCookieManagerCToCpp::CefCookieManagerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefCookieManagerCToCpp::~CefCookieManagerCToCpp() {} + template <> cef_cookie_manager_t* CefCToCppRefCounted { public: CefCookieManagerCToCpp(); + virtual ~CefCookieManagerCToCpp(); // CefCookieManager methods. void SetSupportedSchemes(const std::vector& schemes, diff --git a/libcef_dll/ctocpp/cookie_visitor_ctocpp.cc b/libcef_dll/ctocpp/cookie_visitor_ctocpp.cc index 433bfac65..ef063a5df 100644 --- a/libcef_dll/ctocpp/cookie_visitor_ctocpp.cc +++ b/libcef_dll/ctocpp/cookie_visitor_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cc7953100a41fe56e8ac1391557b47db8235e0ce$ +// $hash=694484dc32c906f1f06a9255b26b92ebe1965194$ // #include "libcef_dll/ctocpp/cookie_visitor_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ bool CefCookieVisitorCToCpp::Visit(const CefCookie& cookie, int count, int total, bool& deleteCookie) { + shutdown_checker::AssertNotShutdown(); + cef_cookie_visitor_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit)) return false; @@ -45,6 +48,12 @@ bool CefCookieVisitorCToCpp::Visit(const CefCookie& cookie, CefCookieVisitorCToCpp::CefCookieVisitorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefCookieVisitorCToCpp::~CefCookieVisitorCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_cookie_visitor_t* CefCToCppRefCounted { public: CefCookieVisitorCToCpp(); + virtual ~CefCookieVisitorCToCpp(); // CefCookieVisitor methods. bool Visit(const CefCookie& cookie, diff --git a/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.cc b/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.cc index e517e624d..5c63baf38 100644 --- a/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=261b4e8a966a8cd4f414aac1ffe32a71d01f1b41$ +// $hash=ca1c53bea95dc37b23757cbc9662987078c4b599$ // #include "libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefDeleteCookiesCallbackCToCpp::OnComplete(int num_deleted) { + shutdown_checker::AssertNotShutdown(); + cef_delete_cookies_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_complete)) return; @@ -32,6 +35,12 @@ void CefDeleteCookiesCallbackCToCpp::OnComplete(int num_deleted) { CefDeleteCookiesCallbackCToCpp::CefDeleteCookiesCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDeleteCookiesCallbackCToCpp::~CefDeleteCookiesCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_delete_cookies_callback_t* CefCToCppRefCounted< CefDeleteCookiesCallbackCToCpp, diff --git a/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h b/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h index b6a1611fa..0cf253d25 100644 --- a/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h +++ b/libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0669e7e94e509f84ae0b3a773dd4440e27744a53$ +// $hash=bb30745842421f2bd23704b57cc105ae9b5246f8$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DELETE_COOKIES_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDeleteCookiesCallbackCToCpp cef_delete_cookies_callback_t> { public: CefDeleteCookiesCallbackCToCpp(); + virtual ~CefDeleteCookiesCallbackCToCpp(); // CefDeleteCookiesCallback methods. void OnComplete(int num_deleted) override; diff --git a/libcef_dll/ctocpp/dialog_handler_ctocpp.cc b/libcef_dll/ctocpp/dialog_handler_ctocpp.cc index d1d7d4d15..5ee63ab33 100644 --- a/libcef_dll/ctocpp/dialog_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/dialog_handler_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2ea9fcfc1d97de23b310d45db666b9ee973ac837$ +// $hash=81b96c346a7a258ed32d0a0d07ab4d021cb819f3$ // #include "libcef_dll/ctocpp/dialog_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -28,6 +29,8 @@ bool CefDialogHandlerCToCpp::OnFileDialog( const std::vector& accept_filters, int selected_accept_filter, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_dialog_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_file_dialog)) return false; @@ -72,6 +75,12 @@ bool CefDialogHandlerCToCpp::OnFileDialog( CefDialogHandlerCToCpp::CefDialogHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDialogHandlerCToCpp::~CefDialogHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_dialog_handler_t* CefCToCppRefCounted { public: CefDialogHandlerCToCpp(); + virtual ~CefDialogHandlerCToCpp(); // CefDialogHandler methods. bool OnFileDialog(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/dictionary_value_ctocpp.cc b/libcef_dll/ctocpp/dictionary_value_ctocpp.cc index dbd1de232..6fa1de821 100644 --- a/libcef_dll/ctocpp/dictionary_value_ctocpp.cc +++ b/libcef_dll/ctocpp/dictionary_value_ctocpp.cc @@ -9,19 +9,22 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=058d877f8a940f551a6479bc79e177be8aad716c$ +// $hash=36c007f5921b2b41b2a5931e453ad465e7768037$ // #include "libcef_dll/ctocpp/dictionary_value_ctocpp.h" #include "libcef_dll/ctocpp/binary_value_ctocpp.h" #include "libcef_dll/ctocpp/list_value_ctocpp.h" #include "libcef_dll/ctocpp/value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValue::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -34,6 +37,8 @@ CefRefPtr CefDictionaryValue::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -48,6 +53,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsOwned() { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_owned)) return false; @@ -62,6 +69,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsOwned() { } NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -77,6 +86,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsReadOnly() { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -98,6 +109,8 @@ bool CefDictionaryValueCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::IsEqual(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_equal)) return false; @@ -120,6 +133,8 @@ bool CefDictionaryValueCToCpp::IsEqual(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValueCToCpp::Copy( bool exclude_empty_children) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -135,6 +150,8 @@ CefRefPtr CefDictionaryValueCToCpp::Copy( } NO_SANITIZE("cfi-icall") size_t CefDictionaryValueCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_size)) return 0; @@ -149,6 +166,8 @@ NO_SANITIZE("cfi-icall") size_t CefDictionaryValueCToCpp::GetSize() { } NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::Clear() { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear)) return false; @@ -164,6 +183,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::Clear() { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::HasKey(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_key)) return false; @@ -183,6 +204,8 @@ bool CefDictionaryValueCToCpp::HasKey(const CefString& key) { } NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::GetKeys(KeyList& keys) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_keys)) return false; @@ -211,6 +234,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::GetKeys(KeyList& keys) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::Remove(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove)) return false; @@ -231,6 +256,8 @@ bool CefDictionaryValueCToCpp::Remove(const CefString& key) { NO_SANITIZE("cfi-icall") CefValueType CefDictionaryValueCToCpp::GetType(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return VTYPE_INVALID; @@ -251,6 +278,8 @@ CefValueType CefDictionaryValueCToCpp::GetType(const CefString& key) { NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValueCToCpp::GetValue(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return NULL; @@ -271,6 +300,8 @@ CefRefPtr CefDictionaryValueCToCpp::GetValue(const CefString& key) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::GetBool(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bool)) return false; @@ -291,6 +322,8 @@ bool CefDictionaryValueCToCpp::GetBool(const CefString& key) { NO_SANITIZE("cfi-icall") int CefDictionaryValueCToCpp::GetInt(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int)) return 0; @@ -311,6 +344,8 @@ int CefDictionaryValueCToCpp::GetInt(const CefString& key) { NO_SANITIZE("cfi-icall") double CefDictionaryValueCToCpp::GetDouble(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_double)) return 0; @@ -331,6 +366,8 @@ double CefDictionaryValueCToCpp::GetDouble(const CefString& key) { NO_SANITIZE("cfi-icall") CefString CefDictionaryValueCToCpp::GetString(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string)) return CefString(); @@ -354,6 +391,8 @@ CefString CefDictionaryValueCToCpp::GetString(const CefString& key) { NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValueCToCpp::GetBinary( const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_binary)) return NULL; @@ -375,6 +414,8 @@ CefRefPtr CefDictionaryValueCToCpp::GetBinary( NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValueCToCpp::GetDictionary( const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_dictionary)) return NULL; @@ -397,6 +438,8 @@ CefRefPtr CefDictionaryValueCToCpp::GetDictionary( NO_SANITIZE("cfi-icall") CefRefPtr CefDictionaryValueCToCpp::GetList( const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_list)) return NULL; @@ -418,6 +461,8 @@ CefRefPtr CefDictionaryValueCToCpp::GetList( NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetValue(const CefString& key, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_value)) return false; @@ -443,6 +488,8 @@ bool CefDictionaryValueCToCpp::SetValue(const CefString& key, NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetNull(const CefString& key) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_null)) return false; @@ -463,6 +510,8 @@ bool CefDictionaryValueCToCpp::SetNull(const CefString& key) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetBool(const CefString& key, bool value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_bool)) return false; @@ -483,6 +532,8 @@ bool CefDictionaryValueCToCpp::SetBool(const CefString& key, bool value) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetInt(const CefString& key, int value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_int)) return false; @@ -503,6 +554,8 @@ bool CefDictionaryValueCToCpp::SetInt(const CefString& key, int value) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetDouble(const CefString& key, double value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_double)) return false; @@ -524,6 +577,8 @@ bool CefDictionaryValueCToCpp::SetDouble(const CefString& key, double value) { NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetString(const CefString& key, const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string)) return false; @@ -547,6 +602,8 @@ bool CefDictionaryValueCToCpp::SetString(const CefString& key, NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetBinary(const CefString& key, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_binary)) return false; @@ -574,6 +631,8 @@ NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetDictionary( const CefString& key, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_dictionary)) return false; @@ -600,6 +659,8 @@ bool CefDictionaryValueCToCpp::SetDictionary( NO_SANITIZE("cfi-icall") bool CefDictionaryValueCToCpp::SetList(const CefString& key, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_dictionary_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_list)) return false; @@ -627,6 +688,12 @@ bool CefDictionaryValueCToCpp::SetList(const CefString& key, CefDictionaryValueCToCpp::CefDictionaryValueCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDictionaryValueCToCpp::~CefDictionaryValueCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_dictionary_value_t* CefCToCppRefCounted< CefDictionaryValueCToCpp, diff --git a/libcef_dll/ctocpp/dictionary_value_ctocpp.h b/libcef_dll/ctocpp/dictionary_value_ctocpp.h index 179275416..398b2d1ee 100644 --- a/libcef_dll/ctocpp/dictionary_value_ctocpp.h +++ b/libcef_dll/ctocpp/dictionary_value_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=38beda5a32f3283d8f253a2f465f3227468c00e5$ +// $hash=78f4c316f837573dc42702821deefc4d6c0e0860$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DICTIONARY_VALUE_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDictionaryValueCToCpp cef_dictionary_value_t> { public: CefDictionaryValueCToCpp(); + virtual ~CefDictionaryValueCToCpp(); // CefDictionaryValue methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/display_handler_ctocpp.cc b/libcef_dll/ctocpp/display_handler_ctocpp.cc index ed71612ec..4059682a8 100644 --- a/libcef_dll/ctocpp/display_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/display_handler_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ff8fa574035e68e700fcb134ffef674bc7d72f1a$ +// $hash=4109a221d676024ebcd41ce7b3ce617ba72a64b8$ // #include "libcef_dll/ctocpp/display_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/frame_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -23,6 +24,8 @@ NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnAddressChange(CefRefPtr browser, CefRefPtr frame, const CefString& url) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_address_change)) return; @@ -50,6 +53,8 @@ void CefDisplayHandlerCToCpp::OnAddressChange(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnTitleChange(CefRefPtr browser, const CefString& title) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_title_change)) return; @@ -71,6 +76,8 @@ NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnFaviconURLChange( CefRefPtr browser, const std::vector& icon_urls) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_favicon_urlchange)) return; @@ -102,6 +109,8 @@ NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnFullscreenModeChange( CefRefPtr browser, bool fullscreen) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_fullscreen_mode_change)) return; @@ -121,6 +130,8 @@ void CefDisplayHandlerCToCpp::OnFullscreenModeChange( NO_SANITIZE("cfi-icall") bool CefDisplayHandlerCToCpp::OnTooltip(CefRefPtr browser, CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_tooltip)) return false; @@ -144,6 +155,8 @@ bool CefDisplayHandlerCToCpp::OnTooltip(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnStatusMessage(CefRefPtr browser, const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_status_message)) return; @@ -167,6 +180,8 @@ bool CefDisplayHandlerCToCpp::OnConsoleMessage(CefRefPtr browser, const CefString& message, const CefString& source, int line) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_console_message)) return false; @@ -191,6 +206,8 @@ bool CefDisplayHandlerCToCpp::OnConsoleMessage(CefRefPtr browser, NO_SANITIZE("cfi-icall") bool CefDisplayHandlerCToCpp::OnAutoResize(CefRefPtr browser, const CefSize& new_size) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_auto_resize)) return false; @@ -214,6 +231,8 @@ NO_SANITIZE("cfi-icall") void CefDisplayHandlerCToCpp::OnLoadingProgressChange( CefRefPtr browser, double progress) { + shutdown_checker::AssertNotShutdown(); + cef_display_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_loading_progress_change)) return; @@ -234,6 +253,12 @@ void CefDisplayHandlerCToCpp::OnLoadingProgressChange( CefDisplayHandlerCToCpp::CefDisplayHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDisplayHandlerCToCpp::~CefDisplayHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_display_handler_t* CefCToCppRefCounted< CefDisplayHandlerCToCpp, diff --git a/libcef_dll/ctocpp/display_handler_ctocpp.h b/libcef_dll/ctocpp/display_handler_ctocpp.h index 1eb55e2a8..f206c4579 100644 --- a/libcef_dll/ctocpp/display_handler_ctocpp.h +++ b/libcef_dll/ctocpp/display_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a4a46936eb9009b219b9f3e912a02a69d0de62aa$ +// $hash=20a96394a559d98532ad12bfab14b030c5d23710$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DISPLAY_HANDLER_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefDisplayHandlerCToCpp cef_display_handler_t> { public: CefDisplayHandlerCToCpp(); + virtual ~CefDisplayHandlerCToCpp(); // CefDisplayHandler methods. void OnAddressChange(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/domdocument_ctocpp.cc b/libcef_dll/ctocpp/domdocument_ctocpp.cc index b419ab87e..35d11b769 100644 --- a/libcef_dll/ctocpp/domdocument_ctocpp.cc +++ b/libcef_dll/ctocpp/domdocument_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=797d9020f785c7521edae3526cbed9e32995a7cf$ +// $hash=dc9048aa667fcc10c1172f994145f6ccc796f897$ // #include "libcef_dll/ctocpp/domdocument_ctocpp.h" #include "libcef_dll/ctocpp/domnode_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefDOMDocument::Type CefDOMDocumentCToCpp::GetType() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return DOM_DOCUMENT_TYPE_UNKNOWN; @@ -33,6 +36,8 @@ NO_SANITIZE("cfi-icall") CefDOMDocument::Type CefDOMDocumentCToCpp::GetType() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetDocument() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_document)) return NULL; @@ -47,6 +52,8 @@ CefRefPtr CefDOMDocumentCToCpp::GetDocument() { } NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetBody() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_body)) return NULL; @@ -61,6 +68,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetBody() { } NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetHead() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_head)) return NULL; @@ -75,6 +84,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetHead() { } NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetTitle() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_title)) return CefString(); @@ -93,6 +104,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetTitle() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetElementById( const CefString& id) { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_by_id)) return NULL; @@ -113,6 +126,8 @@ CefRefPtr CefDOMDocumentCToCpp::GetElementById( NO_SANITIZE("cfi-icall") CefRefPtr CefDOMDocumentCToCpp::GetFocusedNode() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_focused_node)) return NULL; @@ -127,6 +142,8 @@ CefRefPtr CefDOMDocumentCToCpp::GetFocusedNode() { } NO_SANITIZE("cfi-icall") bool CefDOMDocumentCToCpp::HasSelection() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_selection)) return false; @@ -141,6 +158,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMDocumentCToCpp::HasSelection() { } NO_SANITIZE("cfi-icall") int CefDOMDocumentCToCpp::GetSelectionStartOffset() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_start_offset)) return 0; @@ -155,6 +174,8 @@ NO_SANITIZE("cfi-icall") int CefDOMDocumentCToCpp::GetSelectionStartOffset() { } NO_SANITIZE("cfi-icall") int CefDOMDocumentCToCpp::GetSelectionEndOffset() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_end_offset)) return 0; @@ -170,6 +191,8 @@ NO_SANITIZE("cfi-icall") int CefDOMDocumentCToCpp::GetSelectionEndOffset() { NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetSelectionAsMarkup() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_as_markup)) return CefString(); @@ -186,6 +209,8 @@ CefString CefDOMDocumentCToCpp::GetSelectionAsMarkup() { } NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetSelectionAsText() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_as_text)) return CefString(); @@ -202,6 +227,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetSelectionAsText() { } NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetBaseURL() { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_base_url)) return CefString(); @@ -219,6 +246,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetBaseURL() { NO_SANITIZE("cfi-icall") CefString CefDOMDocumentCToCpp::GetCompleteURL(const CefString& partialURL) { + shutdown_checker::AssertNotShutdown(); + cef_domdocument_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_complete_url)) return CefString(); @@ -244,6 +273,12 @@ CefString CefDOMDocumentCToCpp::GetCompleteURL(const CefString& partialURL) { CefDOMDocumentCToCpp::CefDOMDocumentCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDOMDocumentCToCpp::~CefDOMDocumentCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_domdocument_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/domdocument_ctocpp.h b/libcef_dll/ctocpp/domdocument_ctocpp.h index 6acb7c403..b484daaf5 100644 --- a/libcef_dll/ctocpp/domdocument_ctocpp.h +++ b/libcef_dll/ctocpp/domdocument_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0539b94d6141f5ae563ed29e835a58721cbce76b$ +// $hash=7d7e8cc63f96452658cde9ea1d6a22849bd94ce4$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefDOMDocumentCToCpp : public CefCToCppRefCounted { public: CefDOMDocumentCToCpp(); + virtual ~CefDOMDocumentCToCpp(); // CefDOMDocument methods. Type GetType() OVERRIDE; diff --git a/libcef_dll/ctocpp/domnode_ctocpp.cc b/libcef_dll/ctocpp/domnode_ctocpp.cc index 745782459..699b1c146 100644 --- a/libcef_dll/ctocpp/domnode_ctocpp.cc +++ b/libcef_dll/ctocpp/domnode_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d1c9fbac0bfabfb6e53e259c43e9ca18736d7940$ +// $hash=6c13c72b73396f4516dafd6e9a51f7023497f926$ // #include "libcef_dll/ctocpp/domnode_ctocpp.h" #include "libcef_dll/ctocpp/domdocument_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefDOMNode::Type CefDOMNodeCToCpp::GetType() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return DOM_NODE_TYPE_UNSUPPORTED; @@ -33,6 +36,8 @@ NO_SANITIZE("cfi-icall") CefDOMNode::Type CefDOMNodeCToCpp::GetType() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsText() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_text)) return false; @@ -47,6 +52,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsText() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsElement() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_element)) return false; @@ -61,6 +68,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsElement() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsEditable() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_editable)) return false; @@ -75,6 +84,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsEditable() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsFormControlElement() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_form_control_element)) return false; @@ -90,6 +101,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsFormControlElement() { NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetFormControlElementType() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_form_control_element_type)) return CefString(); @@ -108,6 +121,8 @@ CefString CefDOMNodeCToCpp::GetFormControlElementType() { NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -127,6 +142,8 @@ bool CefDOMNodeCToCpp::IsSame(CefRefPtr that) { } NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetName() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_name)) return CefString(); @@ -143,6 +160,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetName() { } NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return CefString(); @@ -160,6 +179,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetValue() { NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::SetValue(const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_value)) return false; @@ -179,6 +200,8 @@ bool CefDOMNodeCToCpp::SetValue(const CefString& value) { } NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetAsMarkup() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_as_markup)) return CefString(); @@ -196,6 +219,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetAsMarkup() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetDocument() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_document)) return NULL; @@ -210,6 +235,8 @@ CefRefPtr CefDOMNodeCToCpp::GetDocument() { } NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetParent() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_parent)) return NULL; @@ -225,6 +252,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetParent() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetPreviousSibling() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_previous_sibling)) return NULL; @@ -240,6 +269,8 @@ CefRefPtr CefDOMNodeCToCpp::GetPreviousSibling() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetNextSibling() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_next_sibling)) return NULL; @@ -254,6 +285,8 @@ CefRefPtr CefDOMNodeCToCpp::GetNextSibling() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::HasChildren() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_children)) return false; @@ -269,6 +302,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::HasChildren() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetFirstChild() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_first_child)) return NULL; @@ -284,6 +319,8 @@ CefRefPtr CefDOMNodeCToCpp::GetFirstChild() { NO_SANITIZE("cfi-icall") CefRefPtr CefDOMNodeCToCpp::GetLastChild() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_last_child)) return NULL; @@ -298,6 +335,8 @@ CefRefPtr CefDOMNodeCToCpp::GetLastChild() { } NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetElementTagName() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_tag_name)) return CefString(); @@ -314,6 +353,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetElementTagName() { } NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::HasElementAttributes() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_element_attributes)) return false; @@ -329,6 +370,8 @@ NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::HasElementAttributes() { NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_element_attribute)) return false; @@ -349,6 +392,8 @@ bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) { NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_attribute)) return CefString(); @@ -372,6 +417,8 @@ CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) { NO_SANITIZE("cfi-icall") void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_attributes)) return; @@ -398,6 +445,8 @@ void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) { NO_SANITIZE("cfi-icall") bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName, const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_element_attribute)) return false; @@ -422,6 +471,8 @@ bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName, } NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetElementInnerText() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_inner_text)) return CefString(); @@ -438,6 +489,8 @@ NO_SANITIZE("cfi-icall") CefString CefDOMNodeCToCpp::GetElementInnerText() { } NO_SANITIZE("cfi-icall") CefRect CefDOMNodeCToCpp::GetElementBounds() { + shutdown_checker::AssertNotShutdown(); + cef_domnode_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_element_bounds)) return CefRect(); @@ -455,6 +508,12 @@ NO_SANITIZE("cfi-icall") CefRect CefDOMNodeCToCpp::GetElementBounds() { CefDOMNodeCToCpp::CefDOMNodeCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDOMNodeCToCpp::~CefDOMNodeCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_domnode_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/domnode_ctocpp.h b/libcef_dll/ctocpp/domnode_ctocpp.h index 70e9e52b6..efa1643e1 100644 --- a/libcef_dll/ctocpp/domnode_ctocpp.h +++ b/libcef_dll/ctocpp/domnode_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=aaaf37e4a40f966ab8f7f94b6573b7961c6dc468$ +// $hash=480b6a47d341f2ec9e977f9b50f2305507e2cc40$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOMNODE_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefDOMNodeCToCpp : public CefCToCppRefCounted { public: CefDOMNodeCToCpp(); + virtual ~CefDOMNodeCToCpp(); // CefDOMNode methods. Type GetType() OVERRIDE; diff --git a/libcef_dll/ctocpp/domvisitor_ctocpp.cc b/libcef_dll/ctocpp/domvisitor_ctocpp.cc index bf5104a5b..5d0cffeda 100644 --- a/libcef_dll/ctocpp/domvisitor_ctocpp.cc +++ b/libcef_dll/ctocpp/domvisitor_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ac477bcaad45bdd6044b25caa961e365f3911e78$ +// $hash=ffd387c34bd079a23947b6e4a73cf8b48ad073d2$ // #include "libcef_dll/ctocpp/domvisitor_ctocpp.h" #include "libcef_dll/cpptoc/domdocument_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefDOMVisitorCToCpp::Visit(CefRefPtr document) { + shutdown_checker::AssertNotShutdown(); + cef_domvisitor_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit)) return; @@ -38,6 +41,12 @@ void CefDOMVisitorCToCpp::Visit(CefRefPtr document) { CefDOMVisitorCToCpp::CefDOMVisitorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDOMVisitorCToCpp::~CefDOMVisitorCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_domvisitor_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/domvisitor_ctocpp.h b/libcef_dll/ctocpp/domvisitor_ctocpp.h index 73065fdd3..1771dba24 100644 --- a/libcef_dll/ctocpp/domvisitor_ctocpp.h +++ b/libcef_dll/ctocpp/domvisitor_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f8391f0b198f21e05fedada30434dad8b7c322a9$ +// $hash=767f2131dcef4b3cf1df5c8f04b3a417da0ff7de$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOMVISITOR_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefDOMVisitorCToCpp : public CefCToCppRefCounted { public: CefDOMVisitorCToCpp(); + virtual ~CefDOMVisitorCToCpp(); // CefDOMVisitor methods. void Visit(CefRefPtr document) override; diff --git a/libcef_dll/ctocpp/download_handler_ctocpp.cc b/libcef_dll/ctocpp/download_handler_ctocpp.cc index 0ae2cef17..b0a29e4db 100644 --- a/libcef_dll/ctocpp/download_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/download_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a33091f27a4e35291e8647d0ba652e8bdf955dcb$ +// $hash=27b40a80b45391aee6e294d1c6100ebc5aa7b72a$ // #include "libcef_dll/ctocpp/download_handler_ctocpp.h" @@ -17,6 +17,7 @@ #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/download_item_callback_cpptoc.h" #include "libcef_dll/cpptoc/download_item_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -26,6 +27,8 @@ void CefDownloadHandlerCToCpp::OnBeforeDownload( CefRefPtr download_item, const CefString& suggested_name, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_download_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_download)) return; @@ -61,6 +64,8 @@ void CefDownloadHandlerCToCpp::OnDownloadUpdated( CefRefPtr browser, CefRefPtr download_item, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_download_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_download_updated)) return; @@ -90,6 +95,12 @@ void CefDownloadHandlerCToCpp::OnDownloadUpdated( CefDownloadHandlerCToCpp::CefDownloadHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDownloadHandlerCToCpp::~CefDownloadHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_download_handler_t* CefCToCppRefCounted< CefDownloadHandlerCToCpp, diff --git a/libcef_dll/ctocpp/download_handler_ctocpp.h b/libcef_dll/ctocpp/download_handler_ctocpp.h index 2f85acf6f..71b7fa241 100644 --- a/libcef_dll/ctocpp/download_handler_ctocpp.h +++ b/libcef_dll/ctocpp/download_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a68f24910e2c3cc0041a8e79591caada687936ca$ +// $hash=ebb683fd9361eaf6d8fdb1e526fc3d4c3a0cfb1e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDownloadHandlerCToCpp cef_download_handler_t> { public: CefDownloadHandlerCToCpp(); + virtual ~CefDownloadHandlerCToCpp(); // CefDownloadHandler methods. void OnBeforeDownload(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/download_image_callback_ctocpp.cc b/libcef_dll/ctocpp/download_image_callback_ctocpp.cc index b4dda21bb..e9c1600cb 100644 --- a/libcef_dll/ctocpp/download_image_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/download_image_callback_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3ac710c118a913c65b0ceb3774e53f3bf87a6d27$ +// $hash=6631dc10b7d3aaad5b5478006120a7219b076e0f$ // #include "libcef_dll/ctocpp/download_image_callback_ctocpp.h" #include "libcef_dll/cpptoc/image_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -22,6 +23,8 @@ void CefDownloadImageCallbackCToCpp::OnDownloadImageFinished( const CefString& image_url, int http_status_code, CefRefPtr image) { + shutdown_checker::AssertNotShutdown(); + cef_download_image_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_download_image_finished)) return; @@ -44,6 +47,12 @@ void CefDownloadImageCallbackCToCpp::OnDownloadImageFinished( CefDownloadImageCallbackCToCpp::CefDownloadImageCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDownloadImageCallbackCToCpp::~CefDownloadImageCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_download_image_callback_t* CefCToCppRefCounted< CefDownloadImageCallbackCToCpp, diff --git a/libcef_dll/ctocpp/download_image_callback_ctocpp.h b/libcef_dll/ctocpp/download_image_callback_ctocpp.h index 58b0d07cb..1193fa732 100644 --- a/libcef_dll/ctocpp/download_image_callback_ctocpp.h +++ b/libcef_dll/ctocpp/download_image_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=af0d745cfae7d0a4fdbe5887e2fcdab8f0bd942d$ +// $hash=f5388d9c8ba3267d8ad2b566f4128f1674410ea2$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_IMAGE_CALLBACK_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefDownloadImageCallbackCToCpp cef_download_image_callback_t> { public: CefDownloadImageCallbackCToCpp(); + virtual ~CefDownloadImageCallbackCToCpp(); // CefDownloadImageCallback methods. void OnDownloadImageFinished(const CefString& image_url, diff --git a/libcef_dll/ctocpp/download_item_callback_ctocpp.cc b/libcef_dll/ctocpp/download_item_callback_ctocpp.cc index 65a23a358..9b4c1677c 100644 --- a/libcef_dll/ctocpp/download_item_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/download_item_callback_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=507008786167dc93b7e0c23f37948494d3ada86c$ +// $hash=022eec3794b62fef9b0610a509f12faebbbc853a$ // #include "libcef_dll/ctocpp/download_item_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -28,6 +31,8 @@ NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Cancel() { } NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Pause() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, pause)) return; @@ -39,6 +44,8 @@ NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Pause() { } NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Resume() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, resume)) return; @@ -53,6 +60,12 @@ NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Resume() { CefDownloadItemCallbackCToCpp::CefDownloadItemCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDownloadItemCallbackCToCpp::~CefDownloadItemCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_download_item_callback_t* CefCToCppRefCounted< CefDownloadItemCallbackCToCpp, diff --git a/libcef_dll/ctocpp/download_item_callback_ctocpp.h b/libcef_dll/ctocpp/download_item_callback_ctocpp.h index cccd15b9c..7c9b1c08e 100644 --- a/libcef_dll/ctocpp/download_item_callback_ctocpp.h +++ b/libcef_dll/ctocpp/download_item_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3c0ec9b914eaa9a61e5b9e598204c959a5475299$ +// $hash=31b30ec0fc431a4d7dd9d2e1c3025065b2001987$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_ITEM_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDownloadItemCallbackCToCpp cef_download_item_callback_t> { public: CefDownloadItemCallbackCToCpp(); + virtual ~CefDownloadItemCallbackCToCpp(); // CefDownloadItemCallback methods. void Cancel() OVERRIDE; diff --git a/libcef_dll/ctocpp/download_item_ctocpp.cc b/libcef_dll/ctocpp/download_item_ctocpp.cc index 339b26187..b628d504e 100644 --- a/libcef_dll/ctocpp/download_item_ctocpp.cc +++ b/libcef_dll/ctocpp/download_item_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f5497229fdd1656113f814e06bc13e89ffe57764$ +// $hash=41cfc26da6ec18c0782a77f36b2427d283305ee4$ // #include "libcef_dll/ctocpp/download_item_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -31,6 +34,8 @@ NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsInProgress() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_in_progress)) return false; @@ -45,6 +50,8 @@ NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsInProgress() { } NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsComplete() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_complete)) return false; @@ -59,6 +66,8 @@ NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsComplete() { } NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsCanceled() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_canceled)) return false; @@ -73,6 +82,8 @@ NO_SANITIZE("cfi-icall") bool CefDownloadItemCToCpp::IsCanceled() { } NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetCurrentSpeed() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_current_speed)) return 0; @@ -87,6 +98,8 @@ NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetCurrentSpeed() { } NO_SANITIZE("cfi-icall") int CefDownloadItemCToCpp::GetPercentComplete() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_percent_complete)) return 0; @@ -101,6 +114,8 @@ NO_SANITIZE("cfi-icall") int CefDownloadItemCToCpp::GetPercentComplete() { } NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetTotalBytes() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_total_bytes)) return 0; @@ -115,6 +130,8 @@ NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetTotalBytes() { } NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetReceivedBytes() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_received_bytes)) return 0; @@ -129,6 +146,8 @@ NO_SANITIZE("cfi-icall") int64 CefDownloadItemCToCpp::GetReceivedBytes() { } NO_SANITIZE("cfi-icall") CefTime CefDownloadItemCToCpp::GetStartTime() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_start_time)) return CefTime(); @@ -143,6 +162,8 @@ NO_SANITIZE("cfi-icall") CefTime CefDownloadItemCToCpp::GetStartTime() { } NO_SANITIZE("cfi-icall") CefTime CefDownloadItemCToCpp::GetEndTime() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_end_time)) return CefTime(); @@ -157,6 +178,8 @@ NO_SANITIZE("cfi-icall") CefTime CefDownloadItemCToCpp::GetEndTime() { } NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetFullPath() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_full_path)) return CefString(); @@ -173,6 +196,8 @@ NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetFullPath() { } NO_SANITIZE("cfi-icall") uint32 CefDownloadItemCToCpp::GetId() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -187,6 +212,8 @@ NO_SANITIZE("cfi-icall") uint32 CefDownloadItemCToCpp::GetId() { } NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetURL() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_url)) return CefString(); @@ -203,6 +230,8 @@ NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetURL() { } NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetOriginalUrl() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_original_url)) return CefString(); @@ -220,6 +249,8 @@ NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetOriginalUrl() { NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetSuggestedFileName() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_suggested_file_name)) return CefString(); @@ -237,6 +268,8 @@ CefString CefDownloadItemCToCpp::GetSuggestedFileName() { NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetContentDisposition() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_content_disposition)) return CefString(); @@ -253,6 +286,8 @@ CefString CefDownloadItemCToCpp::GetContentDisposition() { } NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetMimeType() { + shutdown_checker::AssertNotShutdown(); + cef_download_item_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_mime_type)) return CefString(); @@ -272,6 +307,12 @@ NO_SANITIZE("cfi-icall") CefString CefDownloadItemCToCpp::GetMimeType() { CefDownloadItemCToCpp::CefDownloadItemCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDownloadItemCToCpp::~CefDownloadItemCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_download_item_t* CefCToCppRefCounted { public: CefDownloadItemCToCpp(); + virtual ~CefDownloadItemCToCpp(); // CefDownloadItem methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/drag_data_ctocpp.cc b/libcef_dll/ctocpp/drag_data_ctocpp.cc index 2a609635e..d25fcd310 100644 --- a/libcef_dll/ctocpp/drag_data_ctocpp.cc +++ b/libcef_dll/ctocpp/drag_data_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8d26076d68d9c8f63d39dfea6d03a5571400d984$ +// $hash=2f134f62a1117f31958bb26ca9859961ba86fd7b$ // #include "libcef_dll/ctocpp/drag_data_ctocpp.h" #include "libcef_dll/ctocpp/image_ctocpp.h" #include "libcef_dll/ctocpp/stream_writer_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefDragData::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDragData::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefDragDataCToCpp::Clone() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clone)) return NULL; @@ -46,6 +51,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDragDataCToCpp::Clone() { } NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -60,6 +67,8 @@ NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsReadOnly() { } NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsLink() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_link)) return false; @@ -74,6 +83,8 @@ NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsLink() { } NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsFragment() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_fragment)) return false; @@ -88,6 +99,8 @@ NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsFragment() { } NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsFile() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_file)) return false; @@ -102,6 +115,8 @@ NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::IsFile() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkURL() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_link_url)) return CefString(); @@ -118,6 +133,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkURL() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkTitle() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_link_title)) return CefString(); @@ -134,6 +151,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkTitle() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkMetadata() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_link_metadata)) return CefString(); @@ -150,6 +169,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetLinkMetadata() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentText() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_fragment_text)) return CefString(); @@ -166,6 +187,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentText() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentHtml() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_fragment_html)) return CefString(); @@ -182,6 +205,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentHtml() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentBaseURL() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_fragment_base_url)) return CefString(); @@ -198,6 +223,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFragmentBaseURL() { } NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFileName() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_name)) return CefString(); @@ -215,6 +242,8 @@ NO_SANITIZE("cfi-icall") CefString CefDragDataCToCpp::GetFileName() { NO_SANITIZE("cfi-icall") size_t CefDragDataCToCpp::GetFileContents(CefRefPtr writer) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_contents)) return 0; @@ -233,6 +262,8 @@ size_t CefDragDataCToCpp::GetFileContents(CefRefPtr writer) { NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::GetFileNames(std::vector& names) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_names)) return false; @@ -261,6 +292,8 @@ bool CefDragDataCToCpp::GetFileNames(std::vector& names) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetLinkURL(const CefString& url) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_link_url)) return; @@ -275,6 +308,8 @@ void CefDragDataCToCpp::SetLinkURL(const CefString& url) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetLinkTitle(const CefString& title) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_link_title)) return; @@ -289,6 +324,8 @@ void CefDragDataCToCpp::SetLinkTitle(const CefString& title) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetLinkMetadata(const CefString& data) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_link_metadata)) return; @@ -303,6 +340,8 @@ void CefDragDataCToCpp::SetLinkMetadata(const CefString& data) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetFragmentText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_fragment_text)) return; @@ -317,6 +356,8 @@ void CefDragDataCToCpp::SetFragmentText(const CefString& text) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetFragmentHtml(const CefString& html) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_fragment_html)) return; @@ -331,6 +372,8 @@ void CefDragDataCToCpp::SetFragmentHtml(const CefString& html) { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::SetFragmentBaseURL(const CefString& base_url) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_fragment_base_url)) return; @@ -344,6 +387,8 @@ void CefDragDataCToCpp::SetFragmentBaseURL(const CefString& base_url) { } NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::ResetFileContents() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reset_file_contents)) return; @@ -357,6 +402,8 @@ NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::ResetFileContents() { NO_SANITIZE("cfi-icall") void CefDragDataCToCpp::AddFile(const CefString& path, const CefString& display_name) { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_file)) return; @@ -374,6 +421,8 @@ void CefDragDataCToCpp::AddFile(const CefString& path, } NO_SANITIZE("cfi-icall") CefRefPtr CefDragDataCToCpp::GetImage() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_image)) return NULL; @@ -388,6 +437,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDragDataCToCpp::GetImage() { } NO_SANITIZE("cfi-icall") CefPoint CefDragDataCToCpp::GetImageHotspot() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_image_hotspot)) return CefPoint(); @@ -402,6 +453,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefDragDataCToCpp::GetImageHotspot() { } NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::HasImage() { + shutdown_checker::AssertNotShutdown(); + cef_drag_data_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_image)) return false; @@ -419,6 +472,12 @@ NO_SANITIZE("cfi-icall") bool CefDragDataCToCpp::HasImage() { CefDragDataCToCpp::CefDragDataCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDragDataCToCpp::~CefDragDataCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_drag_data_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/drag_data_ctocpp.h b/libcef_dll/ctocpp/drag_data_ctocpp.h index 135b503c7..7907d2dd3 100644 --- a/libcef_dll/ctocpp/drag_data_ctocpp.h +++ b/libcef_dll/ctocpp/drag_data_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8aa0e18eefedd1198250d499326c30b8882491cf$ +// $hash=6e3784bb8fd9a3af1009dd8eb15ec053c454b509$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDragDataCToCpp : public CefCToCppRefCounted { public: CefDragDataCToCpp(); + virtual ~CefDragDataCToCpp(); // CefDragData methods. CefRefPtr Clone() OVERRIDE; diff --git a/libcef_dll/ctocpp/drag_handler_ctocpp.cc b/libcef_dll/ctocpp/drag_handler_ctocpp.cc index a7cccaad5..e7afb051e 100644 --- a/libcef_dll/ctocpp/drag_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/drag_handler_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=61efed61128e62e4ba7024e64f987657665924d3$ +// $hash=534d68f913ce9f4e7ab7b8a61f0be1c5087f4ca5$ // #include "libcef_dll/ctocpp/drag_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/drag_data_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -22,6 +23,8 @@ NO_SANITIZE("cfi-icall") bool CefDragHandlerCToCpp::OnDragEnter(CefRefPtr browser, CefRefPtr dragData, DragOperationsMask mask) { + shutdown_checker::AssertNotShutdown(); + cef_drag_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_drag_enter)) return false; @@ -49,6 +52,8 @@ NO_SANITIZE("cfi-icall") void CefDragHandlerCToCpp::OnDraggableRegionsChanged( CefRefPtr browser, const std::vector& regions) { + shutdown_checker::AssertNotShutdown(); + cef_drag_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_draggable_regions_changed)) return; @@ -86,6 +91,12 @@ void CefDragHandlerCToCpp::OnDraggableRegionsChanged( CefDragHandlerCToCpp::CefDragHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDragHandlerCToCpp::~CefDragHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_drag_handler_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/drag_handler_ctocpp.h b/libcef_dll/ctocpp/drag_handler_ctocpp.h index 8a34c5a3a..3ffd1f6da 100644 --- a/libcef_dll/ctocpp/drag_handler_ctocpp.h +++ b/libcef_dll/ctocpp/drag_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d56da9bf3cc0f6418629a12b54bc072d2eb5baaf$ +// $hash=a602f4f6b80980bc86d8bb814e6ce34d07a2e4b6$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefDragHandlerCToCpp : public CefCToCppRefCounted { public: CefDragHandlerCToCpp(); + virtual ~CefDragHandlerCToCpp(); // CefDragHandler methods. bool OnDragEnter(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/end_tracing_callback_ctocpp.cc b/libcef_dll/ctocpp/end_tracing_callback_ctocpp.cc index 8c2631e4d..4e67c3faa 100644 --- a/libcef_dll/ctocpp/end_tracing_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/end_tracing_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=67be49662843b260fb51d6b63474ed11ddcebeed$ +// $hash=e058040d92110f4c34e8e3dbfdeb6ea7083648c3$ // #include "libcef_dll/ctocpp/end_tracing_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefEndTracingCallbackCToCpp::OnEndTracingComplete( const CefString& tracing_file) { + shutdown_checker::AssertNotShutdown(); + cef_end_tracing_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_end_tracing_complete)) return; @@ -38,6 +41,12 @@ void CefEndTracingCallbackCToCpp::OnEndTracingComplete( CefEndTracingCallbackCToCpp::CefEndTracingCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefEndTracingCallbackCToCpp::~CefEndTracingCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_end_tracing_callback_t* CefCToCppRefCounted< CefEndTracingCallbackCToCpp, diff --git a/libcef_dll/ctocpp/end_tracing_callback_ctocpp.h b/libcef_dll/ctocpp/end_tracing_callback_ctocpp.h index 9aa49b6f0..6125bad92 100644 --- a/libcef_dll/ctocpp/end_tracing_callback_ctocpp.h +++ b/libcef_dll/ctocpp/end_tracing_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=73b02285c96babd4305aa35285d07a2feb197918$ +// $hash=686620ac38f250297b0b15afcfb595e3ed3c1314$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_END_TRACING_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefEndTracingCallbackCToCpp cef_end_tracing_callback_t> { public: CefEndTracingCallbackCToCpp(); + virtual ~CefEndTracingCallbackCToCpp(); // CefEndTracingCallback methods. void OnEndTracingComplete(const CefString& tracing_file) override; diff --git a/libcef_dll/ctocpp/extension_ctocpp.cc b/libcef_dll/ctocpp/extension_ctocpp.cc index 63505d607..f7da4c23e 100644 --- a/libcef_dll/ctocpp/extension_ctocpp.cc +++ b/libcef_dll/ctocpp/extension_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=df88727696814380598576d97723f02198bb77a0$ +// $hash=4a31f02c1c26d2293cf7f0ad01ffa5bf5e8b21aa$ // #include "libcef_dll/ctocpp/extension_ctocpp.h" #include "libcef_dll/cpptoc/extension_handler_cpptoc.h" #include "libcef_dll/ctocpp/dictionary_value_ctocpp.h" #include "libcef_dll/ctocpp/request_context_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefString CefExtensionCToCpp::GetIdentifier() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_identifier)) return CefString(); @@ -36,6 +39,8 @@ NO_SANITIZE("cfi-icall") CefString CefExtensionCToCpp::GetIdentifier() { } NO_SANITIZE("cfi-icall") CefString CefExtensionCToCpp::GetPath() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_path)) return CefString(); @@ -53,6 +58,8 @@ NO_SANITIZE("cfi-icall") CefString CefExtensionCToCpp::GetPath() { NO_SANITIZE("cfi-icall") CefRefPtr CefExtensionCToCpp::GetManifest() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_manifest)) return NULL; @@ -68,6 +75,8 @@ CefRefPtr CefExtensionCToCpp::GetManifest() { NO_SANITIZE("cfi-icall") bool CefExtensionCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -88,6 +97,8 @@ bool CefExtensionCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefExtensionCToCpp::GetHandler() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_handler)) return NULL; @@ -103,6 +114,8 @@ CefRefPtr CefExtensionCToCpp::GetHandler() { NO_SANITIZE("cfi-icall") CefRefPtr CefExtensionCToCpp::GetLoaderContext() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_loader_context)) return NULL; @@ -117,6 +130,8 @@ CefRefPtr CefExtensionCToCpp::GetLoaderContext() { } NO_SANITIZE("cfi-icall") bool CefExtensionCToCpp::IsLoaded() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_loaded)) return false; @@ -131,6 +146,8 @@ NO_SANITIZE("cfi-icall") bool CefExtensionCToCpp::IsLoaded() { } NO_SANITIZE("cfi-icall") void CefExtensionCToCpp::Unload() { + shutdown_checker::AssertNotShutdown(); + cef_extension_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, unload)) return; @@ -145,6 +162,12 @@ NO_SANITIZE("cfi-icall") void CefExtensionCToCpp::Unload() { CefExtensionCToCpp::CefExtensionCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefExtensionCToCpp::~CefExtensionCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_extension_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/extension_ctocpp.h b/libcef_dll/ctocpp/extension_ctocpp.h index 55ee3710c..0124d7c93 100644 --- a/libcef_dll/ctocpp/extension_ctocpp.h +++ b/libcef_dll/ctocpp/extension_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=904d9a64d7afbfb3adfea9069c6b5340d511a08f$ +// $hash=87fdfab045038e939a688294888138220b99f012$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_EXTENSION_CTOCPP_H_ @@ -35,6 +35,7 @@ class CefExtensionCToCpp : public CefCToCppRefCounted { public: CefExtensionCToCpp(); + virtual ~CefExtensionCToCpp(); // CefExtension methods. CefString GetIdentifier() OVERRIDE; diff --git a/libcef_dll/ctocpp/extension_handler_ctocpp.cc b/libcef_dll/ctocpp/extension_handler_ctocpp.cc index 7dee995d3..e3c8314a2 100644 --- a/libcef_dll/ctocpp/extension_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/extension_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bea9daf42740ccd53e0696008f1a8fc1de194687$ +// $hash=6533981bee56064d41536225997c0cd73e2b67e3$ // #include "libcef_dll/ctocpp/extension_handler_ctocpp.h" @@ -17,11 +17,14 @@ #include "libcef_dll/cpptoc/extension_cpptoc.h" #include "libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.h" #include "libcef_dll/ctocpp/client_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefExtensionHandlerCToCpp::OnExtensionLoadFailed(cef_errorcode_t result) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_extension_load_failed)) return; @@ -35,6 +38,8 @@ void CefExtensionHandlerCToCpp::OnExtensionLoadFailed(cef_errorcode_t result) { NO_SANITIZE("cfi-icall") void CefExtensionHandlerCToCpp::OnExtensionLoaded( CefRefPtr extension) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_extension_loaded)) return; @@ -53,6 +58,8 @@ void CefExtensionHandlerCToCpp::OnExtensionLoaded( NO_SANITIZE("cfi-icall") void CefExtensionHandlerCToCpp::OnExtensionUnloaded( CefRefPtr extension) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_extension_unloaded)) return; @@ -74,6 +81,8 @@ bool CefExtensionHandlerCToCpp::OnBeforeBackgroundBrowser( const CefString& url, CefRefPtr& client, CefBrowserSettings& settings) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_background_browser)) return false; @@ -124,6 +133,8 @@ bool CefExtensionHandlerCToCpp::OnBeforeBrowser( CefWindowInfo& windowInfo, CefRefPtr& client, CefBrowserSettings& settings) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_browser)) return false; @@ -177,6 +188,8 @@ CefRefPtr CefExtensionHandlerCToCpp::GetActiveBrowser( CefRefPtr extension, CefRefPtr browser, bool include_incognito) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_active_browser)) return NULL; @@ -207,6 +220,8 @@ bool CefExtensionHandlerCToCpp::CanAccessBrowser( CefRefPtr browser, bool include_incognito, CefRefPtr target_browser) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_access_browser)) return false; @@ -242,6 +257,8 @@ bool CefExtensionHandlerCToCpp::GetExtensionResource( CefRefPtr browser, const CefString& file, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_extension_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_extension_resource)) return false; @@ -279,6 +296,12 @@ bool CefExtensionHandlerCToCpp::GetExtensionResource( CefExtensionHandlerCToCpp::CefExtensionHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefExtensionHandlerCToCpp::~CefExtensionHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_extension_handler_t* CefCToCppRefCounted< CefExtensionHandlerCToCpp, diff --git a/libcef_dll/ctocpp/extension_handler_ctocpp.h b/libcef_dll/ctocpp/extension_handler_ctocpp.h index b15402923..e272c6a77 100644 --- a/libcef_dll/ctocpp/extension_handler_ctocpp.h +++ b/libcef_dll/ctocpp/extension_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a79fd3786abe785d767f83088e083774625510d4$ +// $hash=660faa70210239490765580900c343a164945914$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_EXTENSION_HANDLER_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefExtensionHandlerCToCpp cef_extension_handler_t> { public: CefExtensionHandlerCToCpp(); + virtual ~CefExtensionHandlerCToCpp(); // CefExtensionHandler methods. void OnExtensionLoadFailed(cef_errorcode_t result) override; diff --git a/libcef_dll/ctocpp/file_dialog_callback_ctocpp.cc b/libcef_dll/ctocpp/file_dialog_callback_ctocpp.cc index 1507f89dc..3424c3a09 100644 --- a/libcef_dll/ctocpp/file_dialog_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/file_dialog_callback_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=167e8ba9251ed87cc1f6b58dd37e1710b2529d26$ +// $hash=8754096526915ed6639c8e2c63c0b940697675cf$ // #include "libcef_dll/ctocpp/file_dialog_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall") void CefFileDialogCallbackCToCpp::Continue( int selected_accept_filter, const std::vector& file_paths) { + shutdown_checker::AssertNotShutdown(); + cef_file_dialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -48,6 +51,8 @@ void CefFileDialogCallbackCToCpp::Continue( } NO_SANITIZE("cfi-icall") void CefFileDialogCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_file_dialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -62,6 +67,12 @@ NO_SANITIZE("cfi-icall") void CefFileDialogCallbackCToCpp::Cancel() { CefFileDialogCallbackCToCpp::CefFileDialogCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefFileDialogCallbackCToCpp::~CefFileDialogCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_file_dialog_callback_t* CefCToCppRefCounted< CefFileDialogCallbackCToCpp, diff --git a/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h b/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h index 121f5a32c..aaaab0c2e 100644 --- a/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h +++ b/libcef_dll/ctocpp/file_dialog_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=46710eeb65a3626da72cf0e003b71c3c5a29342a$ +// $hash=b6a5f3fd596f4e256062768297ba5b93d2d2c176$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_FILE_DIALOG_CALLBACK_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefFileDialogCallbackCToCpp cef_file_dialog_callback_t> { public: CefFileDialogCallbackCToCpp(); + virtual ~CefFileDialogCallbackCToCpp(); // CefFileDialogCallback methods. void Continue(int selected_accept_filter, diff --git a/libcef_dll/ctocpp/find_handler_ctocpp.cc b/libcef_dll/ctocpp/find_handler_ctocpp.cc index b991ceaaa..deff18f69 100644 --- a/libcef_dll/ctocpp/find_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/find_handler_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d18415c27d19d26c645ce02b90576388da5ccd50$ +// $hash=150b04443f01c6f7302905a40df23aadfae0aed4$ // #include "libcef_dll/ctocpp/find_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -24,6 +25,8 @@ void CefFindHandlerCToCpp::OnFindResult(CefRefPtr browser, const CefRect& selectionRect, int activeMatchOrdinal, bool finalUpdate) { + shutdown_checker::AssertNotShutdown(); + cef_find_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_find_result)) return; @@ -45,6 +48,12 @@ void CefFindHandlerCToCpp::OnFindResult(CefRefPtr browser, CefFindHandlerCToCpp::CefFindHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefFindHandlerCToCpp::~CefFindHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_find_handler_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/find_handler_ctocpp.h b/libcef_dll/ctocpp/find_handler_ctocpp.h index e4a99434d..e4ae33750 100644 --- a/libcef_dll/ctocpp/find_handler_ctocpp.h +++ b/libcef_dll/ctocpp/find_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a2dd80312492ec3e22fa80da2120b251b293cc5b$ +// $hash=fad2428820baf2c2e4b06dfa206cd40b41bbf729$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_FIND_HANDLER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefFindHandlerCToCpp : public CefCToCppRefCounted { public: CefFindHandlerCToCpp(); + virtual ~CefFindHandlerCToCpp(); // CefFindHandler methods. void OnFindResult(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/focus_handler_ctocpp.cc b/libcef_dll/ctocpp/focus_handler_ctocpp.cc index 72a1a0952..0e7faefcc 100644 --- a/libcef_dll/ctocpp/focus_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/focus_handler_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=88479e1a1971eaf4dc6d0e5c07d755be5e07ba3b$ +// $hash=6bab076c88e4f3fa1337dde16e9784b993a0599c$ // #include "libcef_dll/ctocpp/focus_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefFocusHandlerCToCpp::OnTakeFocus(CefRefPtr browser, bool next) { + shutdown_checker::AssertNotShutdown(); + cef_focus_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_take_focus)) return; @@ -38,6 +41,8 @@ void CefFocusHandlerCToCpp::OnTakeFocus(CefRefPtr browser, NO_SANITIZE("cfi-icall") bool CefFocusHandlerCToCpp::OnSetFocus(CefRefPtr browser, FocusSource source) { + shutdown_checker::AssertNotShutdown(); + cef_focus_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_set_focus)) return false; @@ -59,6 +64,8 @@ bool CefFocusHandlerCToCpp::OnSetFocus(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefFocusHandlerCToCpp::OnGotFocus(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_focus_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_got_focus)) return; @@ -78,6 +85,12 @@ void CefFocusHandlerCToCpp::OnGotFocus(CefRefPtr browser) { CefFocusHandlerCToCpp::CefFocusHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefFocusHandlerCToCpp::~CefFocusHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_focus_handler_t* CefCToCppRefCounted { public: CefFocusHandlerCToCpp(); + virtual ~CefFocusHandlerCToCpp(); // CefFocusHandler methods. void OnTakeFocus(CefRefPtr browser, bool next) override; diff --git a/libcef_dll/ctocpp/frame_ctocpp.cc b/libcef_dll/ctocpp/frame_ctocpp.cc index 71c96d7d1..8a7311d7b 100644 --- a/libcef_dll/ctocpp/frame_ctocpp.cc +++ b/libcef_dll/ctocpp/frame_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1b7ef1af49a43743a2a42c81aa243fdcf6f213f9$ +// $hash=ac7fd764c71d3fb5859ca9e129b6b747c720ba10$ // #include "libcef_dll/ctocpp/frame_ctocpp.h" @@ -18,10 +18,13 @@ #include "libcef_dll/ctocpp/browser_ctocpp.h" #include "libcef_dll/ctocpp/request_ctocpp.h" #include "libcef_dll/ctocpp/v8context_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -36,6 +39,8 @@ NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Undo() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, undo)) return; @@ -47,6 +52,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Undo() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Redo() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, redo)) return; @@ -58,6 +65,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Redo() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Cut() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cut)) return; @@ -69,6 +78,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Cut() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return; @@ -80,6 +91,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Copy() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Paste() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, paste)) return; @@ -91,6 +104,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Paste() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Delete() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, del)) return; @@ -102,6 +117,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::Delete() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::SelectAll() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, select_all)) return; @@ -113,6 +130,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::SelectAll() { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::ViewSource() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, view_source)) return; @@ -125,6 +144,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::ViewSource() { NO_SANITIZE("cfi-icall") void CefFrameCToCpp::GetSource(CefRefPtr visitor) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_source)) return; @@ -142,6 +163,8 @@ void CefFrameCToCpp::GetSource(CefRefPtr visitor) { NO_SANITIZE("cfi-icall") void CefFrameCToCpp::GetText(CefRefPtr visitor) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_text)) return; @@ -159,6 +182,8 @@ void CefFrameCToCpp::GetText(CefRefPtr visitor) { NO_SANITIZE("cfi-icall") void CefFrameCToCpp::LoadRequest(CefRefPtr request) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, load_request)) return; @@ -175,6 +200,8 @@ void CefFrameCToCpp::LoadRequest(CefRefPtr request) { } NO_SANITIZE("cfi-icall") void CefFrameCToCpp::LoadURL(const CefString& url) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, load_url)) return; @@ -193,6 +220,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::LoadURL(const CefString& url) { NO_SANITIZE("cfi-icall") void CefFrameCToCpp::LoadString(const CefString& string_val, const CefString& url) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, load_string)) return; @@ -216,6 +245,8 @@ NO_SANITIZE("cfi-icall") void CefFrameCToCpp::ExecuteJavaScript(const CefString& code, const CefString& script_url, int start_line) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, execute_java_script)) return; @@ -234,6 +265,8 @@ void CefFrameCToCpp::ExecuteJavaScript(const CefString& code, } NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsMain() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_main)) return false; @@ -248,6 +281,8 @@ NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsMain() { } NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsFocused() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_focused)) return false; @@ -262,6 +297,8 @@ NO_SANITIZE("cfi-icall") bool CefFrameCToCpp::IsFocused() { } NO_SANITIZE("cfi-icall") CefString CefFrameCToCpp::GetName() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_name)) return CefString(); @@ -278,6 +315,8 @@ NO_SANITIZE("cfi-icall") CefString CefFrameCToCpp::GetName() { } NO_SANITIZE("cfi-icall") int64 CefFrameCToCpp::GetIdentifier() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_identifier)) return 0; @@ -292,6 +331,8 @@ NO_SANITIZE("cfi-icall") int64 CefFrameCToCpp::GetIdentifier() { } NO_SANITIZE("cfi-icall") CefRefPtr CefFrameCToCpp::GetParent() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_parent)) return NULL; @@ -306,6 +347,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefFrameCToCpp::GetParent() { } NO_SANITIZE("cfi-icall") CefString CefFrameCToCpp::GetURL() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_url)) return CefString(); @@ -322,6 +365,8 @@ NO_SANITIZE("cfi-icall") CefString CefFrameCToCpp::GetURL() { } NO_SANITIZE("cfi-icall") CefRefPtr CefFrameCToCpp::GetBrowser() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_browser)) return NULL; @@ -337,6 +382,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefFrameCToCpp::GetBrowser() { NO_SANITIZE("cfi-icall") CefRefPtr CefFrameCToCpp::GetV8Context() { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_v8context)) return NULL; @@ -352,6 +399,8 @@ CefRefPtr CefFrameCToCpp::GetV8Context() { NO_SANITIZE("cfi-icall") void CefFrameCToCpp::VisitDOM(CefRefPtr visitor) { + shutdown_checker::AssertNotShutdown(); + cef_frame_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit_dom)) return; @@ -371,6 +420,12 @@ void CefFrameCToCpp::VisitDOM(CefRefPtr visitor) { CefFrameCToCpp::CefFrameCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefFrameCToCpp::~CefFrameCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_frame_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/frame_ctocpp.h b/libcef_dll/ctocpp/frame_ctocpp.h index 5aa308a6d..69d80aa16 100644 --- a/libcef_dll/ctocpp/frame_ctocpp.h +++ b/libcef_dll/ctocpp/frame_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=556b030d238229c5be92688fb9dc9899ef686b72$ +// $hash=756629986a078c1403693255503cc6307215126b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefFrameCToCpp : public CefCToCppRefCounted { public: CefFrameCToCpp(); + virtual ~CefFrameCToCpp(); // CefFrame methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.cc b/libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.cc index 3cd25ddd2..36e25778c 100644 --- a/libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1ef68f8867b2479a9832a1b132f37380630079a1$ +// $hash=57baa0469fab143d1598ab18cf8b92891751c8b0$ // #include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h" #include "libcef_dll/ctocpp/stream_reader_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefGetExtensionResourceCallbackCToCpp::Continue( CefRefPtr stream) { + shutdown_checker::AssertNotShutdown(); + cef_get_extension_resource_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -33,6 +36,8 @@ void CefGetExtensionResourceCallbackCToCpp::Continue( } NO_SANITIZE("cfi-icall") void CefGetExtensionResourceCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_get_extension_resource_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -48,6 +53,13 @@ NO_SANITIZE("cfi-icall") void CefGetExtensionResourceCallbackCToCpp::Cancel() { CefGetExtensionResourceCallbackCToCpp::CefGetExtensionResourceCallbackCToCpp() { } +// DESTRUCTOR - Do not edit by hand. + +CefGetExtensionResourceCallbackCToCpp:: + ~CefGetExtensionResourceCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_get_extension_resource_callback_t* CefCToCppRefCounted { public: CefGetExtensionResourceCallbackCToCpp(); + virtual ~CefGetExtensionResourceCallbackCToCpp(); // CefGetExtensionResourceCallback methods. void Continue(CefRefPtr stream) OVERRIDE; diff --git a/libcef_dll/ctocpp/image_ctocpp.cc b/libcef_dll/ctocpp/image_ctocpp.cc index 301005ae0..168de816c 100644 --- a/libcef_dll/ctocpp/image_ctocpp.cc +++ b/libcef_dll/ctocpp/image_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3118d51cf2e7d8c4c038f9f9b704a6e2e90cbaa8$ +// $hash=06c14a883d9bfa1f82af9c0e4dce4e5ae5680d00$ // #include "libcef_dll/ctocpp/image_ctocpp.h" #include "libcef_dll/ctocpp/binary_value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefImage::CreateImage() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -30,6 +33,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefImage::CreateImage() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefImageCToCpp::IsEmpty() { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_empty)) return false; @@ -44,6 +49,8 @@ NO_SANITIZE("cfi-icall") bool CefImageCToCpp::IsEmpty() { } NO_SANITIZE("cfi-icall") bool CefImageCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -70,6 +77,8 @@ bool CefImageCToCpp::AddBitmap(float scale_factor, cef_alpha_type_t alpha_type, const void* pixel_data, size_t pixel_data_size) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_bitmap)) return false; @@ -94,6 +103,8 @@ NO_SANITIZE("cfi-icall") bool CefImageCToCpp::AddPNG(float scale_factor, const void* png_data, size_t png_data_size) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_png)) return false; @@ -117,6 +128,8 @@ NO_SANITIZE("cfi-icall") bool CefImageCToCpp::AddJPEG(float scale_factor, const void* jpeg_data, size_t jpeg_data_size) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_jpeg)) return false; @@ -137,6 +150,8 @@ bool CefImageCToCpp::AddJPEG(float scale_factor, } NO_SANITIZE("cfi-icall") size_t CefImageCToCpp::GetWidth() { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_width)) return 0; @@ -151,6 +166,8 @@ NO_SANITIZE("cfi-icall") size_t CefImageCToCpp::GetWidth() { } NO_SANITIZE("cfi-icall") size_t CefImageCToCpp::GetHeight() { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_height)) return 0; @@ -166,6 +183,8 @@ NO_SANITIZE("cfi-icall") size_t CefImageCToCpp::GetHeight() { NO_SANITIZE("cfi-icall") bool CefImageCToCpp::HasRepresentation(float scale_factor) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_representation)) return false; @@ -181,6 +200,8 @@ bool CefImageCToCpp::HasRepresentation(float scale_factor) { NO_SANITIZE("cfi-icall") bool CefImageCToCpp::RemoveRepresentation(float scale_factor) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_representation)) return false; @@ -199,6 +220,8 @@ bool CefImageCToCpp::GetRepresentationInfo(float scale_factor, float& actual_scale_factor, int& pixel_width, int& pixel_height) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_representation_info)) return false; @@ -220,6 +243,8 @@ CefRefPtr CefImageCToCpp::GetAsBitmap( cef_alpha_type_t alpha_type, int& pixel_width, int& pixel_height) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_as_bitmap)) return NULL; @@ -240,6 +265,8 @@ CefRefPtr CefImageCToCpp::GetAsPNG(float scale_factor, bool with_transparency, int& pixel_width, int& pixel_height) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_as_png)) return NULL; @@ -259,6 +286,8 @@ CefRefPtr CefImageCToCpp::GetAsJPEG(float scale_factor, int quality, int& pixel_width, int& pixel_height) { + shutdown_checker::AssertNotShutdown(); + cef_image_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_as_jpeg)) return NULL; @@ -277,6 +306,12 @@ CefRefPtr CefImageCToCpp::GetAsJPEG(float scale_factor, CefImageCToCpp::CefImageCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefImageCToCpp::~CefImageCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_image_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/image_ctocpp.h b/libcef_dll/ctocpp/image_ctocpp.h index 4d41085e5..88d40718a 100644 --- a/libcef_dll/ctocpp/image_ctocpp.h +++ b/libcef_dll/ctocpp/image_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5b89a001c69aafb7ea8929a155a352c5c21f545d$ +// $hash=805b8d1743259584baff4a4a9c3eb39fa14d0d68$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_IMAGE_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefImageCToCpp : public CefCToCppRefCounted { public: CefImageCToCpp(); + virtual ~CefImageCToCpp(); // CefImage methods. bool IsEmpty() OVERRIDE; diff --git a/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc b/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc index 8ad1284a4..d8a9dc3c2 100644 --- a/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/jsdialog_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3ad4477ab13234da7dcaad9b2486e759eac48a39$ +// $hash=d64872738297fd38a5cda226d88d0e2a57d5508f$ // #include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefJSDialogCallbackCToCpp::Continue(bool success, const CefString& user_input) { + shutdown_checker::AssertNotShutdown(); + cef_jsdialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -35,6 +38,12 @@ void CefJSDialogCallbackCToCpp::Continue(bool success, CefJSDialogCallbackCToCpp::CefJSDialogCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefJSDialogCallbackCToCpp::~CefJSDialogCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_jsdialog_callback_t* CefCToCppRefCounted< CefJSDialogCallbackCToCpp, diff --git a/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h b/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h index 3449ea5c4..dcd1f95fb 100644 --- a/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h +++ b/libcef_dll/ctocpp/jsdialog_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=31620c04ffa6a4dfa720a1d6d3100835c0b9eea1$ +// $hash=e20ea19501ceaff9e7fd076a507465546a160171$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefJSDialogCallbackCToCpp cef_jsdialog_callback_t> { public: CefJSDialogCallbackCToCpp(); + virtual ~CefJSDialogCallbackCToCpp(); // CefJSDialogCallback methods. void Continue(bool success, const CefString& user_input) OVERRIDE; diff --git a/libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc b/libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc index 0c6609cf0..2714ebc4b 100644 --- a/libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d278db8250349062e4d1f815b9dc19c5ec93da73$ +// $hash=111270fc06dea87c9f4e4fd6c56eea3f019bbb71$ // #include "libcef_dll/ctocpp/jsdialog_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/jsdialog_callback_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -27,6 +28,8 @@ bool CefJSDialogHandlerCToCpp::OnJSDialog( const CefString& default_prompt_text, CefRefPtr callback, bool& suppress_message) { + shutdown_checker::AssertNotShutdown(); + cef_jsdialog_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_jsdialog)) return false; @@ -65,6 +68,8 @@ bool CefJSDialogHandlerCToCpp::OnBeforeUnloadDialog( const CefString& message_text, bool is_reload, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_jsdialog_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_unload_dialog)) return false; @@ -93,6 +98,8 @@ bool CefJSDialogHandlerCToCpp::OnBeforeUnloadDialog( NO_SANITIZE("cfi-icall") void CefJSDialogHandlerCToCpp::OnResetDialogState( CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_jsdialog_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_reset_dialog_state)) return; @@ -110,6 +117,8 @@ void CefJSDialogHandlerCToCpp::OnResetDialogState( NO_SANITIZE("cfi-icall") void CefJSDialogHandlerCToCpp::OnDialogClosed(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_jsdialog_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_dialog_closed)) return; @@ -129,6 +138,12 @@ void CefJSDialogHandlerCToCpp::OnDialogClosed(CefRefPtr browser) { CefJSDialogHandlerCToCpp::CefJSDialogHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefJSDialogHandlerCToCpp::~CefJSDialogHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_jsdialog_handler_t* CefCToCppRefCounted< CefJSDialogHandlerCToCpp, diff --git a/libcef_dll/ctocpp/jsdialog_handler_ctocpp.h b/libcef_dll/ctocpp/jsdialog_handler_ctocpp.h index 20cb87213..3b0dbbc57 100644 --- a/libcef_dll/ctocpp/jsdialog_handler_ctocpp.h +++ b/libcef_dll/ctocpp/jsdialog_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dae0cf5900784ba7163c44486a19008830f1d754$ +// $hash=a0adffaa0f96264e5e73d9e78f121f22f8bff30b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefJSDialogHandlerCToCpp cef_jsdialog_handler_t> { public: CefJSDialogHandlerCToCpp(); + virtual ~CefJSDialogHandlerCToCpp(); // CefJSDialogHandler methods. bool OnJSDialog(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/keyboard_handler_ctocpp.cc b/libcef_dll/ctocpp/keyboard_handler_ctocpp.cc index 775929f4e..60732659e 100644 --- a/libcef_dll/ctocpp/keyboard_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/keyboard_handler_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dcb4e070b6e929839efd757a245505c03dbf97df$ +// $hash=0b567fcc9961c3640ad6040e1ed4c6d9717f8034$ // #include "libcef_dll/ctocpp/keyboard_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -22,6 +23,8 @@ bool CefKeyboardHandlerCToCpp::OnPreKeyEvent(CefRefPtr browser, const CefKeyEvent& event, CefEventHandle os_event, bool* is_keyboard_shortcut) { + shutdown_checker::AssertNotShutdown(); + cef_keyboard_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_pre_key_event)) return false; @@ -58,6 +61,8 @@ NO_SANITIZE("cfi-icall") bool CefKeyboardHandlerCToCpp::OnKeyEvent(CefRefPtr browser, const CefKeyEvent& event, CefEventHandle os_event) { + shutdown_checker::AssertNotShutdown(); + cef_keyboard_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_key_event)) return false; @@ -81,6 +86,12 @@ bool CefKeyboardHandlerCToCpp::OnKeyEvent(CefRefPtr browser, CefKeyboardHandlerCToCpp::CefKeyboardHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefKeyboardHandlerCToCpp::~CefKeyboardHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_keyboard_handler_t* CefCToCppRefCounted< CefKeyboardHandlerCToCpp, diff --git a/libcef_dll/ctocpp/keyboard_handler_ctocpp.h b/libcef_dll/ctocpp/keyboard_handler_ctocpp.h index 5ee3b3b68..ddbae7e3b 100644 --- a/libcef_dll/ctocpp/keyboard_handler_ctocpp.h +++ b/libcef_dll/ctocpp/keyboard_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d816d397970c0e3a6fb4030f6d9dfa61d6fe5e1f$ +// $hash=6a1dcbe2905a9b08ae2103f54ed7247e5de13a94$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_KEYBOARD_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefKeyboardHandlerCToCpp cef_keyboard_handler_t> { public: CefKeyboardHandlerCToCpp(); + virtual ~CefKeyboardHandlerCToCpp(); // CefKeyboardHandler methods. bool OnPreKeyEvent(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/life_span_handler_ctocpp.cc b/libcef_dll/ctocpp/life_span_handler_ctocpp.cc index 94a2022f8..722c51d32 100644 --- a/libcef_dll/ctocpp/life_span_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/life_span_handler_ctocpp.cc @@ -9,13 +9,14 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5ca0dcecb510fc40906043821ecdd6021060ec29$ +// $hash=62a4635c56e709876e99f0e3286ee769b6158c3e$ // #include "libcef_dll/ctocpp/life_span_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/frame_cpptoc.h" #include "libcef_dll/ctocpp/client_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -32,6 +33,8 @@ bool CefLifeSpanHandlerCToCpp::OnBeforePopup( CefRefPtr& client, CefBrowserSettings& settings, bool* no_javascript_access) { + shutdown_checker::AssertNotShutdown(); + cef_life_span_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_popup)) return false; @@ -86,6 +89,8 @@ bool CefLifeSpanHandlerCToCpp::OnBeforePopup( NO_SANITIZE("cfi-icall") void CefLifeSpanHandlerCToCpp::OnAfterCreated(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_life_span_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_after_created)) return; @@ -103,6 +108,8 @@ void CefLifeSpanHandlerCToCpp::OnAfterCreated(CefRefPtr browser) { NO_SANITIZE("cfi-icall") bool CefLifeSpanHandlerCToCpp::DoClose(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_life_span_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, do_close)) return false; @@ -123,6 +130,8 @@ bool CefLifeSpanHandlerCToCpp::DoClose(CefRefPtr browser) { NO_SANITIZE("cfi-icall") void CefLifeSpanHandlerCToCpp::OnBeforeClose(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_life_span_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_close)) return; @@ -142,6 +151,12 @@ void CefLifeSpanHandlerCToCpp::OnBeforeClose(CefRefPtr browser) { CefLifeSpanHandlerCToCpp::CefLifeSpanHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefLifeSpanHandlerCToCpp::~CefLifeSpanHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_life_span_handler_t* CefCToCppRefCounted< CefLifeSpanHandlerCToCpp, diff --git a/libcef_dll/ctocpp/life_span_handler_ctocpp.h b/libcef_dll/ctocpp/life_span_handler_ctocpp.h index 232245b33..1234294e3 100644 --- a/libcef_dll/ctocpp/life_span_handler_ctocpp.h +++ b/libcef_dll/ctocpp/life_span_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5dc59223f19f543dd404a5303e15f5e77486e3a$ +// $hash=6684419c997eeb24a3b7e646e51f8164aa98694f$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_LIFE_SPAN_HANDLER_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefLifeSpanHandlerCToCpp cef_life_span_handler_t> { public: CefLifeSpanHandlerCToCpp(); + virtual ~CefLifeSpanHandlerCToCpp(); // CefLifeSpanHandler methods. bool OnBeforePopup(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/list_value_ctocpp.cc b/libcef_dll/ctocpp/list_value_ctocpp.cc index 1db914541..0f0360ffa 100644 --- a/libcef_dll/ctocpp/list_value_ctocpp.cc +++ b/libcef_dll/ctocpp/list_value_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=33f8e757e1eeec6a4123e78ff5e54a3efb7b286c$ +// $hash=763c48dc879e975a0981659d024746ce3ba25696$ // #include "libcef_dll/ctocpp/list_value_ctocpp.h" #include "libcef_dll/ctocpp/binary_value_ctocpp.h" #include "libcef_dll/ctocpp/dictionary_value_ctocpp.h" #include "libcef_dll/ctocpp/value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefListValue::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefListValue::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -46,6 +51,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsOwned() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_owned)) return false; @@ -60,6 +67,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsOwned() { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -75,6 +84,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsReadOnly() { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -95,6 +106,8 @@ bool CefListValueCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::IsEqual(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_equal)) return false; @@ -114,6 +127,8 @@ bool CefListValueCToCpp::IsEqual(CefRefPtr that) { } NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -128,6 +143,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::Copy() { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetSize(size_t size) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_size)) return false; @@ -142,6 +159,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetSize(size_t size) { } NO_SANITIZE("cfi-icall") size_t CefListValueCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_size)) return 0; @@ -156,6 +175,8 @@ NO_SANITIZE("cfi-icall") size_t CefListValueCToCpp::GetSize() { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::Clear() { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear)) return false; @@ -170,6 +191,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::Clear() { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::Remove(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove)) return false; @@ -185,6 +208,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::Remove(size_t index) { NO_SANITIZE("cfi-icall") CefValueType CefListValueCToCpp::GetType(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return VTYPE_INVALID; @@ -200,6 +225,8 @@ CefValueType CefListValueCToCpp::GetType(size_t index) { NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::GetValue(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return NULL; @@ -214,6 +241,8 @@ CefRefPtr CefListValueCToCpp::GetValue(size_t index) { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::GetBool(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bool)) return false; @@ -228,6 +257,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::GetBool(size_t index) { } NO_SANITIZE("cfi-icall") int CefListValueCToCpp::GetInt(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int)) return 0; @@ -242,6 +273,8 @@ NO_SANITIZE("cfi-icall") int CefListValueCToCpp::GetInt(size_t index) { } NO_SANITIZE("cfi-icall") double CefListValueCToCpp::GetDouble(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_double)) return 0; @@ -256,6 +289,8 @@ NO_SANITIZE("cfi-icall") double CefListValueCToCpp::GetDouble(size_t index) { } NO_SANITIZE("cfi-icall") CefString CefListValueCToCpp::GetString(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string)) return CefString(); @@ -273,6 +308,8 @@ NO_SANITIZE("cfi-icall") CefString CefListValueCToCpp::GetString(size_t index) { NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::GetBinary(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_binary)) return NULL; @@ -288,6 +325,8 @@ CefRefPtr CefListValueCToCpp::GetBinary(size_t index) { NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::GetDictionary(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_dictionary)) return NULL; @@ -303,6 +342,8 @@ CefRefPtr CefListValueCToCpp::GetDictionary(size_t index) { NO_SANITIZE("cfi-icall") CefRefPtr CefListValueCToCpp::GetList(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_list)) return NULL; @@ -318,6 +359,8 @@ CefRefPtr CefListValueCToCpp::GetList(size_t index) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetValue(size_t index, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_value)) return false; @@ -338,6 +381,8 @@ bool CefListValueCToCpp::SetValue(size_t index, CefRefPtr value) { } NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetNull(size_t index) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_null)) return false; @@ -353,6 +398,8 @@ NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetNull(size_t index) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetBool(size_t index, bool value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_bool)) return false; @@ -368,6 +415,8 @@ bool CefListValueCToCpp::SetBool(size_t index, bool value) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetInt(size_t index, int value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_int)) return false; @@ -383,6 +432,8 @@ bool CefListValueCToCpp::SetInt(size_t index, int value) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetDouble(size_t index, double value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_double)) return false; @@ -398,6 +449,8 @@ bool CefListValueCToCpp::SetDouble(size_t index, double value) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetString(size_t index, const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string)) return false; @@ -416,6 +469,8 @@ bool CefListValueCToCpp::SetString(size_t index, const CefString& value) { NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetBinary(size_t index, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_binary)) return false; @@ -438,6 +493,8 @@ bool CefListValueCToCpp::SetBinary(size_t index, NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetDictionary(size_t index, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_dictionary)) return false; @@ -459,6 +516,8 @@ bool CefListValueCToCpp::SetDictionary(size_t index, NO_SANITIZE("cfi-icall") bool CefListValueCToCpp::SetList(size_t index, CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_list_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_list)) return false; @@ -482,6 +541,12 @@ bool CefListValueCToCpp::SetList(size_t index, CefRefPtr value) { CefListValueCToCpp::CefListValueCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefListValueCToCpp::~CefListValueCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_list_value_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/list_value_ctocpp.h b/libcef_dll/ctocpp/list_value_ctocpp.h index 145d1c01b..19d163060 100644 --- a/libcef_dll/ctocpp/list_value_ctocpp.h +++ b/libcef_dll/ctocpp/list_value_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5104cbd12e2407220291f6463bf2b25d3de776ee$ +// $hash=5686551f8cdf6c1be674fe87a67a6b1f972fcf2d$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_LIST_VALUE_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefListValueCToCpp : public CefCToCppRefCounted { public: CefListValueCToCpp(); + virtual ~CefListValueCToCpp(); // CefListValue methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/load_handler_ctocpp.cc b/libcef_dll/ctocpp/load_handler_ctocpp.cc index 7a831dab4..a2f1bfd38 100644 --- a/libcef_dll/ctocpp/load_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/load_handler_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1fcc60d4d317c92b3d54e05f2e04daac60330cd9$ +// $hash=dabe15dc36f41ee10d0bd236b22dfa256695189a$ // #include "libcef_dll/ctocpp/load_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/frame_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -23,6 +24,8 @@ void CefLoadHandlerCToCpp::OnLoadingStateChange(CefRefPtr browser, bool isLoading, bool canGoBack, bool canGoForward) { + shutdown_checker::AssertNotShutdown(); + cef_load_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_loading_state_change)) return; @@ -43,6 +46,8 @@ NO_SANITIZE("cfi-icall") void CefLoadHandlerCToCpp::OnLoadStart(CefRefPtr browser, CefRefPtr frame, TransitionType transition_type) { + shutdown_checker::AssertNotShutdown(); + cef_load_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_load_start)) return; @@ -67,6 +72,8 @@ NO_SANITIZE("cfi-icall") void CefLoadHandlerCToCpp::OnLoadEnd(CefRefPtr browser, CefRefPtr frame, int httpStatusCode) { + shutdown_checker::AssertNotShutdown(); + cef_load_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_load_end)) return; @@ -93,6 +100,8 @@ void CefLoadHandlerCToCpp::OnLoadError(CefRefPtr browser, ErrorCode errorCode, const CefString& errorText, const CefString& failedUrl) { + shutdown_checker::AssertNotShutdown(); + cef_load_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_load_error)) return; @@ -123,6 +132,12 @@ void CefLoadHandlerCToCpp::OnLoadError(CefRefPtr browser, CefLoadHandlerCToCpp::CefLoadHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefLoadHandlerCToCpp::~CefLoadHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_load_handler_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/load_handler_ctocpp.h b/libcef_dll/ctocpp/load_handler_ctocpp.h index 1ed3640b7..00340aed0 100644 --- a/libcef_dll/ctocpp/load_handler_ctocpp.h +++ b/libcef_dll/ctocpp/load_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5ef9d37d67b0bc2b3ef678ba9314ea36641be65c$ +// $hash=77d84010ec7af52afbac561313613dec341ab33e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_LOAD_HANDLER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefLoadHandlerCToCpp : public CefCToCppRefCounted { public: CefLoadHandlerCToCpp(); + virtual ~CefLoadHandlerCToCpp(); // CefLoadHandler methods. void OnLoadingStateChange(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/menu_model_ctocpp.cc b/libcef_dll/ctocpp/menu_model_ctocpp.cc index a82762ddb..c75bd70c0 100644 --- a/libcef_dll/ctocpp/menu_model_ctocpp.cc +++ b/libcef_dll/ctocpp/menu_model_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2ef9d00940facc5274c7c72720be4df0ff4fa2fe$ +// $hash=52c596cce6ec67ca96eaf2550d9a6b456e7536d1$ // #include "libcef_dll/ctocpp/menu_model_ctocpp.h" #include "libcef_dll/cpptoc/menu_model_delegate_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefMenuModel::CreateMenuModel( CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -38,6 +41,8 @@ CefRefPtr CefMenuModel::CreateMenuModel( // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsSubMenu() { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_sub_menu)) return false; @@ -52,6 +57,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsSubMenu() { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::Clear() { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear)) return false; @@ -66,6 +73,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::Clear() { } NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetCount() { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_count)) return 0; @@ -80,6 +89,8 @@ NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetCount() { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::AddSeparator() { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_separator)) return false; @@ -95,6 +106,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::AddSeparator() { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::AddItem(int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_item)) return false; @@ -115,6 +128,8 @@ bool CefMenuModelCToCpp::AddItem(int command_id, const CefString& label) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::AddCheckItem(int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_check_item)) return false; @@ -137,6 +152,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::AddRadioItem(int command_id, const CefString& label, int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_radio_item)) return false; @@ -159,6 +176,8 @@ bool CefMenuModelCToCpp::AddRadioItem(int command_id, NO_SANITIZE("cfi-icall") CefRefPtr CefMenuModelCToCpp::AddSubMenu(int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_sub_menu)) return NULL; @@ -179,6 +198,8 @@ CefRefPtr CefMenuModelCToCpp::AddSubMenu(int command_id, } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::InsertSeparatorAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_separator_at)) return false; @@ -196,6 +217,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::InsertItemAt(int index, int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_item_at)) return false; @@ -219,6 +242,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::InsertCheckItemAt(int index, int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_check_item_at)) return false; @@ -243,6 +268,8 @@ bool CefMenuModelCToCpp::InsertRadioItemAt(int index, int command_id, const CefString& label, int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_radio_item_at)) return false; @@ -267,6 +294,8 @@ CefRefPtr CefMenuModelCToCpp::InsertSubMenuAt( int index, int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_sub_menu_at)) return NULL; @@ -287,6 +316,8 @@ CefRefPtr CefMenuModelCToCpp::InsertSubMenuAt( } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::Remove(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove)) return false; @@ -301,6 +332,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::Remove(int command_id) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::RemoveAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_at)) return false; @@ -315,6 +348,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::RemoveAt(int index) { } NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetIndexOf(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_index_of)) return 0; @@ -329,6 +364,8 @@ NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetIndexOf(int command_id) { } NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetCommandIdAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_command_id_at)) return 0; @@ -344,6 +381,8 @@ NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetCommandIdAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetCommandIdAt(int index, int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_command_id_at)) return false; @@ -359,6 +398,8 @@ bool CefMenuModelCToCpp::SetCommandIdAt(int index, int command_id) { NO_SANITIZE("cfi-icall") CefString CefMenuModelCToCpp::GetLabel(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_label)) return CefString(); @@ -375,6 +416,8 @@ CefString CefMenuModelCToCpp::GetLabel(int command_id) { } NO_SANITIZE("cfi-icall") CefString CefMenuModelCToCpp::GetLabelAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_label_at)) return CefString(); @@ -392,6 +435,8 @@ NO_SANITIZE("cfi-icall") CefString CefMenuModelCToCpp::GetLabelAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetLabel(int command_id, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_label)) return false; @@ -412,6 +457,8 @@ bool CefMenuModelCToCpp::SetLabel(int command_id, const CefString& label) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetLabelAt(int index, const CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_label_at)) return false; @@ -432,6 +479,8 @@ bool CefMenuModelCToCpp::SetLabelAt(int index, const CefString& label) { NO_SANITIZE("cfi-icall") CefMenuModel::MenuItemType CefMenuModelCToCpp::GetType(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return MENUITEMTYPE_NONE; @@ -447,6 +496,8 @@ CefMenuModel::MenuItemType CefMenuModelCToCpp::GetType(int command_id) { NO_SANITIZE("cfi-icall") CefMenuModel::MenuItemType CefMenuModelCToCpp::GetTypeAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type_at)) return MENUITEMTYPE_NONE; @@ -461,6 +512,8 @@ CefMenuModel::MenuItemType CefMenuModelCToCpp::GetTypeAt(int index) { } NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetGroupId(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -475,6 +528,8 @@ NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetGroupId(int command_id) { } NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetGroupIdAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_group_id_at)) return 0; @@ -490,6 +545,8 @@ NO_SANITIZE("cfi-icall") int CefMenuModelCToCpp::GetGroupIdAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetGroupId(int command_id, int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return false; @@ -505,6 +562,8 @@ bool CefMenuModelCToCpp::SetGroupId(int command_id, int group_id) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetGroupIdAt(int index, int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_group_id_at)) return false; @@ -520,6 +579,8 @@ bool CefMenuModelCToCpp::SetGroupIdAt(int index, int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuModelCToCpp::GetSubMenu(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_sub_menu)) return NULL; @@ -535,6 +596,8 @@ CefRefPtr CefMenuModelCToCpp::GetSubMenu(int command_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuModelCToCpp::GetSubMenuAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_sub_menu_at)) return NULL; @@ -549,6 +612,8 @@ CefRefPtr CefMenuModelCToCpp::GetSubMenuAt(int index) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsVisible(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -563,6 +628,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsVisible(int command_id) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsVisibleAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_visible_at)) return false; @@ -578,6 +645,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsVisibleAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetVisible(int command_id, bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_visible)) return false; @@ -593,6 +662,8 @@ bool CefMenuModelCToCpp::SetVisible(int command_id, bool visible) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetVisibleAt(int index, bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_visible_at)) return false; @@ -607,6 +678,8 @@ bool CefMenuModelCToCpp::SetVisibleAt(int index, bool visible) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsEnabled(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -621,6 +694,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsEnabled(int command_id) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsEnabledAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_enabled_at)) return false; @@ -636,6 +711,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsEnabledAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetEnabled(int command_id, bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return false; @@ -651,6 +728,8 @@ bool CefMenuModelCToCpp::SetEnabled(int command_id, bool enabled) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetEnabledAt(int index, bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_enabled_at)) return false; @@ -665,6 +744,8 @@ bool CefMenuModelCToCpp::SetEnabledAt(int index, bool enabled) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsChecked(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_checked)) return false; @@ -679,6 +760,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsChecked(int command_id) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsCheckedAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_checked_at)) return false; @@ -694,6 +777,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::IsCheckedAt(int index) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetChecked(int command_id, bool checked) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_checked)) return false; @@ -709,6 +794,8 @@ bool CefMenuModelCToCpp::SetChecked(int command_id, bool checked) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetCheckedAt(int index, bool checked) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_checked_at)) return false; @@ -724,6 +811,8 @@ bool CefMenuModelCToCpp::SetCheckedAt(int index, bool checked) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::HasAccelerator(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_accelerator)) return false; @@ -738,6 +827,8 @@ bool CefMenuModelCToCpp::HasAccelerator(int command_id) { } NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::HasAcceleratorAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_accelerator_at)) return false; @@ -757,6 +848,8 @@ bool CefMenuModelCToCpp::SetAccelerator(int command_id, bool shift_pressed, bool ctrl_pressed, bool alt_pressed) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accelerator)) return false; @@ -777,6 +870,8 @@ bool CefMenuModelCToCpp::SetAcceleratorAt(int index, bool shift_pressed, bool ctrl_pressed, bool alt_pressed) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accelerator_at)) return false; @@ -793,6 +888,8 @@ bool CefMenuModelCToCpp::SetAcceleratorAt(int index, NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::RemoveAccelerator(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_accelerator)) return false; @@ -808,6 +905,8 @@ bool CefMenuModelCToCpp::RemoveAccelerator(int command_id) { NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::RemoveAcceleratorAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_accelerator_at)) return false; @@ -827,6 +926,8 @@ bool CefMenuModelCToCpp::GetAccelerator(int command_id, bool& shift_pressed, bool& ctrl_pressed, bool& alt_pressed) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_accelerator)) return false; @@ -862,6 +963,8 @@ bool CefMenuModelCToCpp::GetAcceleratorAt(int index, bool& shift_pressed, bool& ctrl_pressed, bool& alt_pressed) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_accelerator_at)) return false; @@ -895,6 +998,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetColor(int command_id, cef_menu_color_type_t color_type, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_color)) return false; @@ -912,6 +1017,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetColorAt(int index, cef_menu_color_type_t color_type, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_color_at)) return false; @@ -929,6 +1036,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::GetColor(int command_id, cef_menu_color_type_t color_type, cef_color_t& color) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_color)) return false; @@ -946,6 +1055,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::GetColorAt(int index, cef_menu_color_type_t color_type, cef_color_t& color) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_color_at)) return false; @@ -962,6 +1073,8 @@ bool CefMenuModelCToCpp::GetColorAt(int index, NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetFontList(int command_id, const CefString& font_list) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_font_list)) return false; @@ -980,6 +1093,8 @@ bool CefMenuModelCToCpp::SetFontList(int command_id, NO_SANITIZE("cfi-icall") bool CefMenuModelCToCpp::SetFontListAt(int index, const CefString& font_list) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_font_list_at)) return false; @@ -1000,6 +1115,12 @@ bool CefMenuModelCToCpp::SetFontListAt(int index, const CefString& font_list) { CefMenuModelCToCpp::CefMenuModelCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuModelCToCpp::~CefMenuModelCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_menu_model_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/menu_model_ctocpp.h b/libcef_dll/ctocpp/menu_model_ctocpp.h index bf6dc6b17..56ab0df66 100644 --- a/libcef_dll/ctocpp/menu_model_ctocpp.h +++ b/libcef_dll/ctocpp/menu_model_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=df5bd43d8df66ae12a661d082a40520246fb0618$ +// $hash=f2b1e20d398edfe2ab1caf79af86163b992e14e0$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_MENU_MODEL_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefMenuModelCToCpp : public CefCToCppRefCounted { public: CefMenuModelCToCpp(); + virtual ~CefMenuModelCToCpp(); // CefMenuModel methods. bool IsSubMenu() OVERRIDE; diff --git a/libcef_dll/ctocpp/menu_model_delegate_ctocpp.cc b/libcef_dll/ctocpp/menu_model_delegate_ctocpp.cc index 38e3e4150..f1a0e68c9 100644 --- a/libcef_dll/ctocpp/menu_model_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/menu_model_delegate_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4f7581e5a41d9f07b2bd07e62bb467257d96c08c$ +// $hash=9c527f21592d86c244a77773924b89d12b1ff24d$ // #include "libcef_dll/ctocpp/menu_model_delegate_ctocpp.h" #include "libcef_dll/cpptoc/menu_model_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -22,6 +23,8 @@ void CefMenuModelDelegateCToCpp::ExecuteCommand( CefRefPtr menu_model, int command_id, cef_event_flags_t event_flags) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, execute_command)) return; @@ -42,6 +45,8 @@ NO_SANITIZE("cfi-icall") void CefMenuModelDelegateCToCpp::MouseOutsideMenu( CefRefPtr menu_model, const CefPoint& screen_point) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, mouse_outside_menu)) return; @@ -62,6 +67,8 @@ NO_SANITIZE("cfi-icall") void CefMenuModelDelegateCToCpp::UnhandledOpenSubmenu( CefRefPtr menu_model, bool is_rtl) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, unhandled_open_submenu)) return; @@ -82,6 +89,8 @@ NO_SANITIZE("cfi-icall") void CefMenuModelDelegateCToCpp::UnhandledCloseSubmenu( CefRefPtr menu_model, bool is_rtl) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, unhandled_close_submenu)) return; @@ -101,6 +110,8 @@ void CefMenuModelDelegateCToCpp::UnhandledCloseSubmenu( NO_SANITIZE("cfi-icall") void CefMenuModelDelegateCToCpp::MenuWillShow( CefRefPtr menu_model) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, menu_will_show)) return; @@ -119,6 +130,8 @@ void CefMenuModelDelegateCToCpp::MenuWillShow( NO_SANITIZE("cfi-icall") void CefMenuModelDelegateCToCpp::MenuClosed( CefRefPtr menu_model) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, menu_closed)) return; @@ -137,6 +150,8 @@ void CefMenuModelDelegateCToCpp::MenuClosed( NO_SANITIZE("cfi-icall") bool CefMenuModelDelegateCToCpp::FormatLabel(CefRefPtr menu_model, CefString& label) { + shutdown_checker::AssertNotShutdown(); + cef_menu_model_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, format_label)) return false; @@ -160,6 +175,12 @@ bool CefMenuModelDelegateCToCpp::FormatLabel(CefRefPtr menu_model, CefMenuModelDelegateCToCpp::CefMenuModelDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuModelDelegateCToCpp::~CefMenuModelDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_menu_model_delegate_t* CefCToCppRefCounted< CefMenuModelDelegateCToCpp, diff --git a/libcef_dll/ctocpp/menu_model_delegate_ctocpp.h b/libcef_dll/ctocpp/menu_model_delegate_ctocpp.h index de5aab8e9..5bed6439f 100644 --- a/libcef_dll/ctocpp/menu_model_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/menu_model_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1ec2988228ed4c7cbfec79af2b10f45676bbee9f$ +// $hash=2fa8b1062941bc646f40eeb612b62a76c1329e0e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_MENU_MODEL_DELEGATE_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefMenuModelDelegateCToCpp cef_menu_model_delegate_t> { public: CefMenuModelDelegateCToCpp(); + virtual ~CefMenuModelDelegateCToCpp(); // CefMenuModelDelegate methods. void ExecuteCommand(CefRefPtr menu_model, diff --git a/libcef_dll/ctocpp/navigation_entry_ctocpp.cc b/libcef_dll/ctocpp/navigation_entry_ctocpp.cc index 182036022..b0cc8317f 100644 --- a/libcef_dll/ctocpp/navigation_entry_ctocpp.cc +++ b/libcef_dll/ctocpp/navigation_entry_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1d3b699d96cc8b90d1922f44ff817167d374d7f8$ +// $hash=bdcc341636348a8d32a63afe261f0f5ff592d466$ // #include "libcef_dll/ctocpp/navigation_entry_ctocpp.h" #include "libcef_dll/ctocpp/sslstatus_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefNavigationEntryCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") bool CefNavigationEntryCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetURL() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_url)) return CefString(); @@ -48,6 +53,8 @@ NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetURL() { } NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetDisplayURL() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_display_url)) return CefString(); @@ -64,6 +71,8 @@ NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetDisplayURL() { } NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetOriginalURL() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_original_url)) return CefString(); @@ -80,6 +89,8 @@ NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetOriginalURL() { } NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetTitle() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_title)) return CefString(); @@ -97,7 +108,9 @@ NO_SANITIZE("cfi-icall") CefString CefNavigationEntryCToCpp::GetTitle() { NO_SANITIZE("cfi-icall") CefNavigationEntry::TransitionType - CefNavigationEntryCToCpp::GetTransitionType() { +CefNavigationEntryCToCpp::GetTransitionType() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_transition_type)) return TT_EXPLICIT; @@ -112,6 +125,8 @@ CefNavigationEntry::TransitionType } NO_SANITIZE("cfi-icall") bool CefNavigationEntryCToCpp::HasPostData() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_post_data)) return false; @@ -126,6 +141,8 @@ NO_SANITIZE("cfi-icall") bool CefNavigationEntryCToCpp::HasPostData() { } NO_SANITIZE("cfi-icall") CefTime CefNavigationEntryCToCpp::GetCompletionTime() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_completion_time)) return CefTime(); @@ -140,6 +157,8 @@ NO_SANITIZE("cfi-icall") CefTime CefNavigationEntryCToCpp::GetCompletionTime() { } NO_SANITIZE("cfi-icall") int CefNavigationEntryCToCpp::GetHttpStatusCode() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_http_status_code)) return 0; @@ -155,6 +174,8 @@ NO_SANITIZE("cfi-icall") int CefNavigationEntryCToCpp::GetHttpStatusCode() { NO_SANITIZE("cfi-icall") CefRefPtr CefNavigationEntryCToCpp::GetSSLStatus() { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_sslstatus)) return NULL; @@ -172,6 +193,12 @@ CefRefPtr CefNavigationEntryCToCpp::GetSSLStatus() { CefNavigationEntryCToCpp::CefNavigationEntryCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefNavigationEntryCToCpp::~CefNavigationEntryCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_navigation_entry_t* CefCToCppRefCounted< CefNavigationEntryCToCpp, diff --git a/libcef_dll/ctocpp/navigation_entry_ctocpp.h b/libcef_dll/ctocpp/navigation_entry_ctocpp.h index 98d4797f4..739c695b6 100644 --- a/libcef_dll/ctocpp/navigation_entry_ctocpp.h +++ b/libcef_dll/ctocpp/navigation_entry_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1151bdb0cf9e5ae8e35e4152472c30c9e481f881$ +// $hash=54f78bfc6bf2274b47730a80b2f54e49ba5d5b49$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_NAVIGATION_ENTRY_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefNavigationEntryCToCpp cef_navigation_entry_t> { public: CefNavigationEntryCToCpp(); + virtual ~CefNavigationEntryCToCpp(); // CefNavigationEntry methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.cc b/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.cc index fe7924750..4a6283d20 100644 --- a/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.cc +++ b/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2874253ada3fe250f674d8439b2c3ce3b4bec856$ +// $hash=d8da57d4f6870310d539cdf9eab5fd96c660cb44$ // #include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h" #include "libcef_dll/cpptoc/navigation_entry_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -22,6 +23,8 @@ bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr entry, bool current, int index, int total) { + shutdown_checker::AssertNotShutdown(); + cef_navigation_entry_visitor_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit)) return false; @@ -45,6 +48,12 @@ bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr entry, CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefNavigationEntryVisitorCToCpp::~CefNavigationEntryVisitorCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_navigation_entry_visitor_t* CefCToCppRefCounted< CefNavigationEntryVisitorCToCpp, diff --git a/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h b/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h index 81e58436e..3f9529961 100644 --- a/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h +++ b/libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b45fa0336c4694cc4b0fc59593bb56b96517ae69$ +// $hash=003788411327c22d2ff3c1aab7f5ed24eec36d2b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_NAVIGATION_ENTRY_VISITOR_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefNavigationEntryVisitorCToCpp cef_navigation_entry_visitor_t> { public: CefNavigationEntryVisitorCToCpp(); + virtual ~CefNavigationEntryVisitorCToCpp(); // CefNavigationEntryVisitor methods. bool Visit(CefRefPtr entry, diff --git a/libcef_dll/ctocpp/pdf_print_callback_ctocpp.cc b/libcef_dll/ctocpp/pdf_print_callback_ctocpp.cc index 297c629a1..3cb50fed8 100644 --- a/libcef_dll/ctocpp/pdf_print_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/pdf_print_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e8b9b7bd8427618e29a5efef0909f1d05f90873e$ +// $hash=0bb0ebfc663b748946d77c55266525be9948e9ec$ // #include "libcef_dll/ctocpp/pdf_print_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefPdfPrintCallbackCToCpp::OnPdfPrintFinished(const CefString& path, bool ok) { + shutdown_checker::AssertNotShutdown(); + cef_pdf_print_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_pdf_print_finished)) return; @@ -38,6 +41,12 @@ void CefPdfPrintCallbackCToCpp::OnPdfPrintFinished(const CefString& path, CefPdfPrintCallbackCToCpp::CefPdfPrintCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPdfPrintCallbackCToCpp::~CefPdfPrintCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_pdf_print_callback_t* CefCToCppRefCounted< CefPdfPrintCallbackCToCpp, diff --git a/libcef_dll/ctocpp/pdf_print_callback_ctocpp.h b/libcef_dll/ctocpp/pdf_print_callback_ctocpp.h index 397341a85..8b8a4cfc7 100644 --- a/libcef_dll/ctocpp/pdf_print_callback_ctocpp.h +++ b/libcef_dll/ctocpp/pdf_print_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b8d11d717c384265295648ae25409eb177a9f7d8$ +// $hash=471e6df9211981ee64116142913c5bcee29fdfda$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_PDF_PRINT_CALLBACK_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefPdfPrintCallbackCToCpp cef_pdf_print_callback_t> { public: CefPdfPrintCallbackCToCpp(); + virtual ~CefPdfPrintCallbackCToCpp(); // CefPdfPrintCallback methods. void OnPdfPrintFinished(const CefString& path, bool ok) override; diff --git a/libcef_dll/ctocpp/post_data_ctocpp.cc b/libcef_dll/ctocpp/post_data_ctocpp.cc index a2d5c416d..8d39f631f 100644 --- a/libcef_dll/ctocpp/post_data_ctocpp.cc +++ b/libcef_dll/ctocpp/post_data_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d1fdba612856fe12b9d2e0a60eaba401c6bef7a0$ +// $hash=8b185152941d6f9ef8fab012132be059941efae7$ // #include "libcef_dll/ctocpp/post_data_ctocpp.h" @@ -167,6 +167,10 @@ NO_SANITIZE("cfi-icall") void CefPostDataCToCpp::RemoveElements() { CefPostDataCToCpp::CefPostDataCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPostDataCToCpp::~CefPostDataCToCpp() {} + template <> cef_post_data_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/post_data_ctocpp.h b/libcef_dll/ctocpp/post_data_ctocpp.h index 8da73d751..56c2eae49 100644 --- a/libcef_dll/ctocpp/post_data_ctocpp.h +++ b/libcef_dll/ctocpp/post_data_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f530e076e576e7206b679740d9fc8381017b3fe2$ +// $hash=f637f19e554e1965c168ec7eec7de8dcf0505adc$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefPostDataCToCpp : public CefCToCppRefCounted { public: CefPostDataCToCpp(); + virtual ~CefPostDataCToCpp(); // CefPostData methods. bool IsReadOnly() OVERRIDE; diff --git a/libcef_dll/ctocpp/post_data_element_ctocpp.cc b/libcef_dll/ctocpp/post_data_element_ctocpp.cc index da9a15196..678e23b11 100644 --- a/libcef_dll/ctocpp/post_data_element_ctocpp.cc +++ b/libcef_dll/ctocpp/post_data_element_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6cd10944ae4d86c4870ecbe3482c79e9c7c0b3f4$ +// $hash=ccc05cceb0dddb4e586e5605cf64b776e6a62b85$ // #include "libcef_dll/ctocpp/post_data_element_ctocpp.h" @@ -157,6 +157,10 @@ size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes) { CefPostDataElementCToCpp::CefPostDataElementCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPostDataElementCToCpp::~CefPostDataElementCToCpp() {} + template <> cef_post_data_element_t* CefCToCppRefCounted< CefPostDataElementCToCpp, diff --git a/libcef_dll/ctocpp/post_data_element_ctocpp.h b/libcef_dll/ctocpp/post_data_element_ctocpp.h index d8d7ce5df..316478d1e 100644 --- a/libcef_dll/ctocpp/post_data_element_ctocpp.h +++ b/libcef_dll/ctocpp/post_data_element_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2c809144bb16a639aa50869fddcef2516124fe4d$ +// $hash=50c727f3726cbcbe2049744079855e359c2a5af0$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefPostDataElementCToCpp cef_post_data_element_t> { public: CefPostDataElementCToCpp(); + virtual ~CefPostDataElementCToCpp(); // CefPostDataElement methods. bool IsReadOnly() OVERRIDE; diff --git a/libcef_dll/ctocpp/print_dialog_callback_ctocpp.cc b/libcef_dll/ctocpp/print_dialog_callback_ctocpp.cc index a6778be6f..2667ef89d 100644 --- a/libcef_dll/ctocpp/print_dialog_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/print_dialog_callback_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b257247c1eab4ebd5796b5bc81670d437486d76f$ +// $hash=e7f505db2d3f4d4ff400675a8b167b4d027ed50c$ // #include "libcef_dll/ctocpp/print_dialog_callback_ctocpp.h" #include "libcef_dll/ctocpp/print_settings_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefPrintDialogCallbackCToCpp::Continue( CefRefPtr settings) { + shutdown_checker::AssertNotShutdown(); + cef_print_dialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -36,6 +39,8 @@ void CefPrintDialogCallbackCToCpp::Continue( } NO_SANITIZE("cfi-icall") void CefPrintDialogCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_print_dialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -50,6 +55,12 @@ NO_SANITIZE("cfi-icall") void CefPrintDialogCallbackCToCpp::Cancel() { CefPrintDialogCallbackCToCpp::CefPrintDialogCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPrintDialogCallbackCToCpp::~CefPrintDialogCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_print_dialog_callback_t* CefCToCppRefCounted< CefPrintDialogCallbackCToCpp, diff --git a/libcef_dll/ctocpp/print_dialog_callback_ctocpp.h b/libcef_dll/ctocpp/print_dialog_callback_ctocpp.h index 4231c1f61..8431f0192 100644 --- a/libcef_dll/ctocpp/print_dialog_callback_ctocpp.h +++ b/libcef_dll/ctocpp/print_dialog_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=42db0b7f482ceaac6fdb751781b7927f29bae438$ +// $hash=b004fc8630970c736f83994f303a6e1de65423a0$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_PRINT_DIALOG_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefPrintDialogCallbackCToCpp cef_print_dialog_callback_t> { public: CefPrintDialogCallbackCToCpp(); + virtual ~CefPrintDialogCallbackCToCpp(); // CefPrintDialogCallback methods. void Continue(CefRefPtr settings) OVERRIDE; diff --git a/libcef_dll/ctocpp/print_handler_ctocpp.cc b/libcef_dll/ctocpp/print_handler_ctocpp.cc index 8e295e89c..576623ea0 100644 --- a/libcef_dll/ctocpp/print_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/print_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3fb35e095b858bb8d89e92edcd1fcd35bb4417b7$ +// $hash=5639da8ca5ea927d48fc8a62b9750f4b4828e512$ // #include "libcef_dll/ctocpp/print_handler_ctocpp.h" @@ -17,11 +17,14 @@ #include "libcef_dll/cpptoc/print_dialog_callback_cpptoc.h" #include "libcef_dll/cpptoc/print_job_callback_cpptoc.h" #include "libcef_dll/cpptoc/print_settings_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefPrintHandlerCToCpp::OnPrintStart(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_print_start)) return; @@ -42,6 +45,8 @@ void CefPrintHandlerCToCpp::OnPrintSettings( CefRefPtr browser, CefRefPtr settings, bool get_defaults) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_print_settings)) return; @@ -68,6 +73,8 @@ bool CefPrintHandlerCToCpp::OnPrintDialog( CefRefPtr browser, bool has_selection, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_print_dialog)) return false; @@ -98,6 +105,8 @@ bool CefPrintHandlerCToCpp::OnPrintJob( const CefString& document_name, const CefString& pdf_file_path, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_print_job)) return false; @@ -132,6 +141,8 @@ bool CefPrintHandlerCToCpp::OnPrintJob( NO_SANITIZE("cfi-icall") void CefPrintHandlerCToCpp::OnPrintReset(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_print_reset)) return; @@ -149,6 +160,8 @@ void CefPrintHandlerCToCpp::OnPrintReset(CefRefPtr browser) { NO_SANITIZE("cfi-icall") CefSize CefPrintHandlerCToCpp::GetPdfPaperSize(int device_units_per_inch) { + shutdown_checker::AssertNotShutdown(); + cef_print_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_pdf_paper_size)) return CefSize(); @@ -167,6 +180,12 @@ CefSize CefPrintHandlerCToCpp::GetPdfPaperSize(int device_units_per_inch) { CefPrintHandlerCToCpp::CefPrintHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPrintHandlerCToCpp::~CefPrintHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_print_handler_t* CefCToCppRefCounted { public: CefPrintHandlerCToCpp(); + virtual ~CefPrintHandlerCToCpp(); // CefPrintHandler methods. void OnPrintStart(CefRefPtr browser) override; diff --git a/libcef_dll/ctocpp/print_job_callback_ctocpp.cc b/libcef_dll/ctocpp/print_job_callback_ctocpp.cc index 0e823ecbc..bfc3408ce 100644 --- a/libcef_dll/ctocpp/print_job_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/print_job_callback_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0435585cf71c7cb630cdf8d4f14e5ac8f6f999f2$ +// $hash=a5280392662a279ab4872bcaa400cc399f5699f4$ // #include "libcef_dll/ctocpp/print_job_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefPrintJobCallbackCToCpp::Continue() { + shutdown_checker::AssertNotShutdown(); + cef_print_job_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -31,6 +34,12 @@ NO_SANITIZE("cfi-icall") void CefPrintJobCallbackCToCpp::Continue() { CefPrintJobCallbackCToCpp::CefPrintJobCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPrintJobCallbackCToCpp::~CefPrintJobCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_print_job_callback_t* CefCToCppRefCounted< CefPrintJobCallbackCToCpp, diff --git a/libcef_dll/ctocpp/print_job_callback_ctocpp.h b/libcef_dll/ctocpp/print_job_callback_ctocpp.h index a4779ab30..2f6af5f61 100644 --- a/libcef_dll/ctocpp/print_job_callback_ctocpp.h +++ b/libcef_dll/ctocpp/print_job_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a3780d6cabc32ee526b48d952a5b8e9948a70270$ +// $hash=65e8e88d5f9dd5ebca500654d089943a092160b0$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_PRINT_JOB_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefPrintJobCallbackCToCpp cef_print_job_callback_t> { public: CefPrintJobCallbackCToCpp(); + virtual ~CefPrintJobCallbackCToCpp(); // CefPrintJobCallback methods. void Continue() OVERRIDE; diff --git a/libcef_dll/ctocpp/print_settings_ctocpp.cc b/libcef_dll/ctocpp/print_settings_ctocpp.cc index b73024a9c..563653548 100644 --- a/libcef_dll/ctocpp/print_settings_ctocpp.cc +++ b/libcef_dll/ctocpp/print_settings_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c803eab2f6c0dd48f23810cfcb6143111c91065c$ +// $hash=2bf13c87a1b384acd1dad10a8772ce545087f2ae$ // #include "libcef_dll/ctocpp/print_settings_ctocpp.h" #include +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefPrintSettings::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -31,6 +34,8 @@ CefRefPtr CefPrintSettings::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -45,6 +50,8 @@ NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -60,6 +67,8 @@ NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsReadOnly() { NO_SANITIZE("cfi-icall") CefRefPtr CefPrintSettingsCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -75,6 +84,8 @@ CefRefPtr CefPrintSettingsCToCpp::Copy() { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetOrientation(bool landscape) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_orientation)) return; @@ -86,6 +97,8 @@ void CefPrintSettingsCToCpp::SetOrientation(bool landscape) { } NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsLandscape() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_landscape)) return false; @@ -104,6 +117,8 @@ void CefPrintSettingsCToCpp::SetPrinterPrintableArea( const CefSize& physical_size_device_units, const CefRect& printable_area_device_units, bool landscape_needs_flip) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_printer_printable_area)) return; @@ -118,6 +133,8 @@ void CefPrintSettingsCToCpp::SetPrinterPrintableArea( NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetDeviceName(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_device_name)) return; @@ -131,6 +148,8 @@ void CefPrintSettingsCToCpp::SetDeviceName(const CefString& name) { } NO_SANITIZE("cfi-icall") CefString CefPrintSettingsCToCpp::GetDeviceName() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_device_name)) return CefString(); @@ -147,6 +166,8 @@ NO_SANITIZE("cfi-icall") CefString CefPrintSettingsCToCpp::GetDeviceName() { } NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetDPI(int dpi) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_dpi)) return; @@ -158,6 +179,8 @@ NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetDPI(int dpi) { } NO_SANITIZE("cfi-icall") int CefPrintSettingsCToCpp::GetDPI() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_dpi)) return 0; @@ -173,6 +196,8 @@ NO_SANITIZE("cfi-icall") int CefPrintSettingsCToCpp::GetDPI() { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetPageRanges(const PageRangeList& ranges) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_page_ranges)) return; @@ -201,6 +226,8 @@ void CefPrintSettingsCToCpp::SetPageRanges(const PageRangeList& ranges) { } NO_SANITIZE("cfi-icall") size_t CefPrintSettingsCToCpp::GetPageRangesCount() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_page_ranges_count)) return 0; @@ -216,6 +243,8 @@ NO_SANITIZE("cfi-icall") size_t CefPrintSettingsCToCpp::GetPageRangesCount() { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::GetPageRanges(PageRangeList& ranges) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_page_ranges)) return; @@ -254,6 +283,8 @@ void CefPrintSettingsCToCpp::GetPageRanges(PageRangeList& ranges) { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetSelectionOnly(bool selection_only) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_selection_only)) return; @@ -265,6 +296,8 @@ void CefPrintSettingsCToCpp::SetSelectionOnly(bool selection_only) { } NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsSelectionOnly() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_selection_only)) return false; @@ -279,6 +312,8 @@ NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::IsSelectionOnly() { } NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetCollate(bool collate) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_collate)) return; @@ -290,6 +325,8 @@ NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetCollate(bool collate) { } NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::WillCollate() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, will_collate)) return false; @@ -305,6 +342,8 @@ NO_SANITIZE("cfi-icall") bool CefPrintSettingsCToCpp::WillCollate() { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetColorModel(ColorModel model) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_color_model)) return; @@ -317,6 +356,8 @@ void CefPrintSettingsCToCpp::SetColorModel(ColorModel model) { NO_SANITIZE("cfi-icall") CefPrintSettings::ColorModel CefPrintSettingsCToCpp::GetColorModel() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_color_model)) return COLOR_MODEL_UNKNOWN; @@ -331,6 +372,8 @@ CefPrintSettings::ColorModel CefPrintSettingsCToCpp::GetColorModel() { } NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetCopies(int copies) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_copies)) return; @@ -342,6 +385,8 @@ NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetCopies(int copies) { } NO_SANITIZE("cfi-icall") int CefPrintSettingsCToCpp::GetCopies() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_copies)) return 0; @@ -357,6 +402,8 @@ NO_SANITIZE("cfi-icall") int CefPrintSettingsCToCpp::GetCopies() { NO_SANITIZE("cfi-icall") void CefPrintSettingsCToCpp::SetDuplexMode(DuplexMode mode) { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_duplex_mode)) return; @@ -369,6 +416,8 @@ void CefPrintSettingsCToCpp::SetDuplexMode(DuplexMode mode) { NO_SANITIZE("cfi-icall") CefPrintSettings::DuplexMode CefPrintSettingsCToCpp::GetDuplexMode() { + shutdown_checker::AssertNotShutdown(); + cef_print_settings_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_duplex_mode)) return DUPLEX_MODE_UNKNOWN; @@ -386,6 +435,12 @@ CefPrintSettings::DuplexMode CefPrintSettingsCToCpp::GetDuplexMode() { CefPrintSettingsCToCpp::CefPrintSettingsCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPrintSettingsCToCpp::~CefPrintSettingsCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_print_settings_t* CefCToCppRefCounted { public: CefPrintSettingsCToCpp(); + virtual ~CefPrintSettingsCToCpp(); // CefPrintSettings methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/process_message_ctocpp.cc b/libcef_dll/ctocpp/process_message_ctocpp.cc index 2842e3564..842a2b9b0 100644 --- a/libcef_dll/ctocpp/process_message_ctocpp.cc +++ b/libcef_dll/ctocpp/process_message_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cb1e9c4a5e0eb746ae681adea1c2a88e603f56a2$ +// $hash=9f4094e7dc406dcf2be2c4b5f5968ad5362b377b$ // #include "libcef_dll/ctocpp/process_message_ctocpp.h" #include "libcef_dll/ctocpp/list_value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefProcessMessage::Create(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: name; type: string_byref_const @@ -36,6 +39,8 @@ CefRefPtr CefProcessMessage::Create(const CefString& name) { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_process_message_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -50,6 +55,8 @@ NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_process_message_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -65,6 +72,8 @@ NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsReadOnly() { NO_SANITIZE("cfi-icall") CefRefPtr CefProcessMessageCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_process_message_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -79,6 +88,8 @@ CefRefPtr CefProcessMessageCToCpp::Copy() { } NO_SANITIZE("cfi-icall") CefString CefProcessMessageCToCpp::GetName() { + shutdown_checker::AssertNotShutdown(); + cef_process_message_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_name)) return CefString(); @@ -96,6 +107,8 @@ NO_SANITIZE("cfi-icall") CefString CefProcessMessageCToCpp::GetName() { NO_SANITIZE("cfi-icall") CefRefPtr CefProcessMessageCToCpp::GetArgumentList() { + shutdown_checker::AssertNotShutdown(); + cef_process_message_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_argument_list)) return NULL; @@ -113,6 +126,12 @@ CefRefPtr CefProcessMessageCToCpp::GetArgumentList() { CefProcessMessageCToCpp::CefProcessMessageCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefProcessMessageCToCpp::~CefProcessMessageCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_process_message_t* CefCToCppRefCounted< CefProcessMessageCToCpp, diff --git a/libcef_dll/ctocpp/process_message_ctocpp.h b/libcef_dll/ctocpp/process_message_ctocpp.h index dfaea4010..23414f059 100644 --- a/libcef_dll/ctocpp/process_message_ctocpp.h +++ b/libcef_dll/ctocpp/process_message_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ae1107931ad5137402ccbef07796db2afab4174d$ +// $hash=845fefd8be50141bfc58045b1a0807b4d1204e0d$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_PROCESS_MESSAGE_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefProcessMessageCToCpp cef_process_message_t> { public: CefProcessMessageCToCpp(); + virtual ~CefProcessMessageCToCpp(); // CefProcessMessage methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/read_handler_ctocpp.cc b/libcef_dll/ctocpp/read_handler_ctocpp.cc index 29f53d8b2..d13970eaa 100644 --- a/libcef_dll/ctocpp/read_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/read_handler_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3ec06c4011d2c5ca752c2375fe98ec96ec517e13$ +// $hash=a57097c640e7a3fe39c3dcd42118cc556207b1fa$ // #include "libcef_dll/ctocpp/read_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") size_t CefReadHandlerCToCpp::Read(void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + cef_read_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, read)) return 0; @@ -38,6 +41,8 @@ size_t CefReadHandlerCToCpp::Read(void* ptr, size_t size, size_t n) { NO_SANITIZE("cfi-icall") int CefReadHandlerCToCpp::Seek(int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + cef_read_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, seek)) return 0; @@ -52,6 +57,8 @@ int CefReadHandlerCToCpp::Seek(int64 offset, int whence) { } NO_SANITIZE("cfi-icall") int64 CefReadHandlerCToCpp::Tell() { + shutdown_checker::AssertNotShutdown(); + cef_read_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, tell)) return 0; @@ -66,6 +73,8 @@ NO_SANITIZE("cfi-icall") int64 CefReadHandlerCToCpp::Tell() { } NO_SANITIZE("cfi-icall") int CefReadHandlerCToCpp::Eof() { + shutdown_checker::AssertNotShutdown(); + cef_read_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, eof)) return 0; @@ -80,6 +89,8 @@ NO_SANITIZE("cfi-icall") int CefReadHandlerCToCpp::Eof() { } NO_SANITIZE("cfi-icall") bool CefReadHandlerCToCpp::MayBlock() { + shutdown_checker::AssertNotShutdown(); + cef_read_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, may_block)) return false; @@ -97,6 +108,12 @@ NO_SANITIZE("cfi-icall") bool CefReadHandlerCToCpp::MayBlock() { CefReadHandlerCToCpp::CefReadHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefReadHandlerCToCpp::~CefReadHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_read_handler_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/read_handler_ctocpp.h b/libcef_dll/ctocpp/read_handler_ctocpp.h index e364adcb3..69543d73c 100644 --- a/libcef_dll/ctocpp/read_handler_ctocpp.h +++ b/libcef_dll/ctocpp/read_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8109e4aff44168d65f579aea7f71b0b39e657fc5$ +// $hash=fd7fb4a60cbd0d699654b012445d7dd3d50b86b5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_READ_HANDLER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefReadHandlerCToCpp : public CefCToCppRefCounted { public: CefReadHandlerCToCpp(); + virtual ~CefReadHandlerCToCpp(); // CefReadHandler methods. size_t Read(void* ptr, size_t size, size_t n) override; diff --git a/libcef_dll/ctocpp/register_cdm_callback_ctocpp.cc b/libcef_dll/ctocpp/register_cdm_callback_ctocpp.cc index 3c5b222a5..b6e581064 100644 --- a/libcef_dll/ctocpp/register_cdm_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/register_cdm_callback_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=274a14b75985c6978883d28aaae5aad2a67a6349$ +// $hash=7f0e3752a37c93b83c8a3a258e782b9f39eb7255$ // #include "libcef_dll/ctocpp/register_cdm_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -20,6 +21,8 @@ NO_SANITIZE("cfi-icall") void CefRegisterCdmCallbackCToCpp::OnCdmRegistrationComplete( cef_cdm_registration_error_t result, const CefString& error_message) { + shutdown_checker::AssertNotShutdown(); + cef_register_cdm_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_cdm_registration_complete)) return; @@ -37,6 +40,12 @@ void CefRegisterCdmCallbackCToCpp::OnCdmRegistrationComplete( CefRegisterCdmCallbackCToCpp::CefRegisterCdmCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRegisterCdmCallbackCToCpp::~CefRegisterCdmCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_register_cdm_callback_t* CefCToCppRefCounted< CefRegisterCdmCallbackCToCpp, diff --git a/libcef_dll/ctocpp/register_cdm_callback_ctocpp.h b/libcef_dll/ctocpp/register_cdm_callback_ctocpp.h index 46f786ea4..2ccc5d9b7 100644 --- a/libcef_dll/ctocpp/register_cdm_callback_ctocpp.h +++ b/libcef_dll/ctocpp/register_cdm_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3a32f1847cb1c2ead583d404a0e58988943c968f$ +// $hash=d29d64b071af07c578a2d39b6bd3d5cb50b7ce3a$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REGISTER_CDM_CALLBACK_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefRegisterCdmCallbackCToCpp cef_register_cdm_callback_t> { public: CefRegisterCdmCallbackCToCpp(); + virtual ~CefRegisterCdmCallbackCToCpp(); // CefRegisterCdmCallback methods. void OnCdmRegistrationComplete(cef_cdm_registration_error_t result, diff --git a/libcef_dll/ctocpp/render_handler_ctocpp.cc b/libcef_dll/ctocpp/render_handler_ctocpp.cc index 99cbe1357..105c5530a 100644 --- a/libcef_dll/ctocpp/render_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/render_handler_ctocpp.cc @@ -9,19 +9,22 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9948a3a215228eb5cb39757742f0af6c3eeb8d7a$ +// $hash=d55afd66123b855c75bef192fc3f0c6db917eb7c$ // #include "libcef_dll/ctocpp/render_handler_ctocpp.h" #include "libcef_dll/cpptoc/browser_cpptoc.h" #include "libcef_dll/cpptoc/drag_data_cpptoc.h" #include "libcef_dll/ctocpp/accessibility_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefRefPtr< - CefAccessibilityHandler> CefRenderHandlerCToCpp::GetAccessibilityHandler() { +CefRefPtr +CefRenderHandlerCToCpp::GetAccessibilityHandler() { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_accessibility_handler)) return NULL; @@ -39,6 +42,8 @@ CefRefPtr< NO_SANITIZE("cfi-icall") bool CefRenderHandlerCToCpp::GetRootScreenRect(CefRefPtr browser, CefRect& rect) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_root_screen_rect)) return false; @@ -61,6 +66,8 @@ bool CefRenderHandlerCToCpp::GetRootScreenRect(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefRenderHandlerCToCpp::GetViewRect(CefRefPtr browser, CefRect& rect) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_view_rect)) return; @@ -82,6 +89,8 @@ bool CefRenderHandlerCToCpp::GetScreenPoint(CefRefPtr browser, int viewY, int& screenX, int& screenY) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_screen_point)) return false; @@ -105,6 +114,8 @@ bool CefRenderHandlerCToCpp::GetScreenPoint(CefRefPtr browser, NO_SANITIZE("cfi-icall") bool CefRenderHandlerCToCpp::GetScreenInfo(CefRefPtr browser, CefScreenInfo& screen_info) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_screen_info)) return false; @@ -127,6 +138,8 @@ bool CefRenderHandlerCToCpp::GetScreenInfo(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefRenderHandlerCToCpp::OnPopupShow(CefRefPtr browser, bool show) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_popup_show)) return; @@ -145,6 +158,8 @@ void CefRenderHandlerCToCpp::OnPopupShow(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefRenderHandlerCToCpp::OnPopupSize(CefRefPtr browser, const CefRect& rect) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_popup_size)) return; @@ -167,6 +182,8 @@ void CefRenderHandlerCToCpp::OnPaint(CefRefPtr browser, const void* buffer, int width, int height) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_paint)) return; @@ -209,6 +226,8 @@ void CefRenderHandlerCToCpp::OnAcceleratedPaint(CefRefPtr browser, PaintElementType type, const RectList& dirtyRects, void* shared_handle) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_accelerated_paint)) return; @@ -252,6 +271,8 @@ void CefRenderHandlerCToCpp::OnCursorChange( CefCursorHandle cursor, CursorType type, const CefCursorInfo& custom_cursor_info) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_cursor_change)) return; @@ -274,6 +295,8 @@ bool CefRenderHandlerCToCpp::StartDragging(CefRefPtr browser, DragOperationsMask allowed_ops, int x, int y) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, start_dragging)) return false; @@ -301,6 +324,8 @@ bool CefRenderHandlerCToCpp::StartDragging(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefRenderHandlerCToCpp::UpdateDragCursor(CefRefPtr browser, DragOperation operation) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, update_drag_cursor)) return; @@ -322,6 +347,8 @@ void CefRenderHandlerCToCpp::OnScrollOffsetChanged( CefRefPtr browser, double x, double y) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_scroll_offset_changed)) return; @@ -343,6 +370,8 @@ void CefRenderHandlerCToCpp::OnImeCompositionRangeChanged( CefRefPtr browser, const CefRange& selected_range, const RectList& character_bounds) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_ime_composition_range_changed)) return; @@ -382,6 +411,8 @@ void CefRenderHandlerCToCpp::OnTextSelectionChanged( CefRefPtr browser, const CefString& selected_text, const CefRange& selected_range) { + shutdown_checker::AssertNotShutdown(); + cef_render_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_text_selection_changed)) return; @@ -404,6 +435,12 @@ void CefRenderHandlerCToCpp::OnTextSelectionChanged( CefRenderHandlerCToCpp::CefRenderHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRenderHandlerCToCpp::~CefRenderHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_render_handler_t* CefCToCppRefCounted { public: CefRenderHandlerCToCpp(); + virtual ~CefRenderHandlerCToCpp(); // CefRenderHandler methods. CefRefPtr GetAccessibilityHandler() override; diff --git a/libcef_dll/ctocpp/render_process_handler_ctocpp.cc b/libcef_dll/ctocpp/render_process_handler_ctocpp.cc index 788737874..205b83ca2 100644 --- a/libcef_dll/ctocpp/render_process_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/render_process_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=10641031d8be405dbaf43db3ea9ac52812343737$ +// $hash=5bd00d533fc7a078555fc5ccd7b54d0db89136d7$ // #include "libcef_dll/ctocpp/render_process_handler_ctocpp.h" @@ -264,6 +264,10 @@ bool CefRenderProcessHandlerCToCpp::OnProcessMessageReceived( CefRenderProcessHandlerCToCpp::CefRenderProcessHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRenderProcessHandlerCToCpp::~CefRenderProcessHandlerCToCpp() {} + template <> cef_render_process_handler_t* CefCToCppRefCounted< CefRenderProcessHandlerCToCpp, diff --git a/libcef_dll/ctocpp/render_process_handler_ctocpp.h b/libcef_dll/ctocpp/render_process_handler_ctocpp.h index eeed99b3f..0254274c7 100644 --- a/libcef_dll/ctocpp/render_process_handler_ctocpp.h +++ b/libcef_dll/ctocpp/render_process_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4e2b6675b9105aa028260b76075bde88b226ca33$ +// $hash=dc669eaed42b1df11eb0df08dc22af0e825a991f$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RENDER_PROCESS_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefRenderProcessHandlerCToCpp cef_render_process_handler_t> { public: CefRenderProcessHandlerCToCpp(); + virtual ~CefRenderProcessHandlerCToCpp(); // CefRenderProcessHandler methods. void OnRenderThreadCreated(CefRefPtr extra_info) override; diff --git a/libcef_dll/ctocpp/request_callback_ctocpp.cc b/libcef_dll/ctocpp/request_callback_ctocpp.cc index db10550a6..da7f7aca8 100644 --- a/libcef_dll/ctocpp/request_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/request_callback_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=53e2ebe08cc8370af8e04edb04c7661f1f5290fe$ +// $hash=ff37f0201b78c8b04a58dcbce9a6ccad8be4e50d$ // #include "libcef_dll/ctocpp/request_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefRequestCallbackCToCpp::Continue(bool allow) { + shutdown_checker::AssertNotShutdown(); + cef_request_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -28,6 +31,8 @@ NO_SANITIZE("cfi-icall") void CefRequestCallbackCToCpp::Continue(bool allow) { } NO_SANITIZE("cfi-icall") void CefRequestCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_request_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -42,6 +47,12 @@ NO_SANITIZE("cfi-icall") void CefRequestCallbackCToCpp::Cancel() { CefRequestCallbackCToCpp::CefRequestCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRequestCallbackCToCpp::~CefRequestCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_request_callback_t* CefCToCppRefCounted< CefRequestCallbackCToCpp, diff --git a/libcef_dll/ctocpp/request_callback_ctocpp.h b/libcef_dll/ctocpp/request_callback_ctocpp.h index 656752662..fe4312735 100644 --- a/libcef_dll/ctocpp/request_callback_ctocpp.h +++ b/libcef_dll/ctocpp/request_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=50eb4e5ef198f64c443e955969ebffab3ce26953$ +// $hash=11c730dca41c86a9a29ba6f32a59f55040c177b6$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefRequestCallbackCToCpp cef_request_callback_t> { public: CefRequestCallbackCToCpp(); + virtual ~CefRequestCallbackCToCpp(); // CefRequestCallback methods. void Continue(bool allow) OVERRIDE; diff --git a/libcef_dll/ctocpp/request_context_ctocpp.cc b/libcef_dll/ctocpp/request_context_ctocpp.cc index db4d84eb3..9398f64b0 100644 --- a/libcef_dll/ctocpp/request_context_ctocpp.cc +++ b/libcef_dll/ctocpp/request_context_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b70e87a5f87deaf74d8b2628cc71571e87fcfb96$ +// $hash=061099097cc12fc47ec0209e2fbd99aba21632bd$ // #include "libcef_dll/ctocpp/request_context_ctocpp.h" @@ -549,6 +549,10 @@ CefRefPtr CefRequestContextCToCpp::GetExtension( CefRequestContextCToCpp::CefRequestContextCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRequestContextCToCpp::~CefRequestContextCToCpp() {} + template <> cef_request_context_t* CefCToCppRefCounted< CefRequestContextCToCpp, diff --git a/libcef_dll/ctocpp/request_context_ctocpp.h b/libcef_dll/ctocpp/request_context_ctocpp.h index 3d7b60c33..27aaee9e5 100644 --- a/libcef_dll/ctocpp/request_context_ctocpp.h +++ b/libcef_dll/ctocpp/request_context_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c9a5aa045f6c6db055c2fada824e60713a287315$ +// $hash=376c88ccfd6a48b8d46d7b0493a36a6dc5c1e3b8$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CONTEXT_CTOCPP_H_ @@ -35,6 +35,7 @@ class CefRequestContextCToCpp cef_request_context_t> { public: CefRequestContextCToCpp(); + virtual ~CefRequestContextCToCpp(); // CefRequestContext methods. bool IsSame(CefRefPtr other) OVERRIDE; diff --git a/libcef_dll/ctocpp/request_context_handler_ctocpp.cc b/libcef_dll/ctocpp/request_context_handler_ctocpp.cc index 72c01187e..6ee1f3275 100644 --- a/libcef_dll/ctocpp/request_context_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/request_context_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=2459dbc7838acfc44ce6cd779a1bc55566e99a3b$ +// $hash=ff4e4040706d4e5d56dd7bb457973203d37bd795$ // #include "libcef_dll/ctocpp/request_context_handler_ctocpp.h" @@ -95,6 +95,10 @@ bool CefRequestContextHandlerCToCpp::OnBeforePluginLoad( CefRequestContextHandlerCToCpp::CefRequestContextHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRequestContextHandlerCToCpp::~CefRequestContextHandlerCToCpp() {} + template <> cef_request_context_handler_t* CefCToCppRefCounted< CefRequestContextHandlerCToCpp, diff --git a/libcef_dll/ctocpp/request_context_handler_ctocpp.h b/libcef_dll/ctocpp/request_context_handler_ctocpp.h index 0d0950f9c..dbb52a840 100644 --- a/libcef_dll/ctocpp/request_context_handler_ctocpp.h +++ b/libcef_dll/ctocpp/request_context_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f042631a1e21ecffac4426b2419d74fcd2675b58$ +// $hash=f60c9110cba752df545af2fe5905a01d30ff588e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CONTEXT_HANDLER_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefRequestContextHandlerCToCpp cef_request_context_handler_t> { public: CefRequestContextHandlerCToCpp(); + virtual ~CefRequestContextHandlerCToCpp(); // CefRequestContextHandler methods. void OnRequestContextInitialized( diff --git a/libcef_dll/ctocpp/request_ctocpp.cc b/libcef_dll/ctocpp/request_ctocpp.cc index 9e3229993..6008d1850 100644 --- a/libcef_dll/ctocpp/request_ctocpp.cc +++ b/libcef_dll/ctocpp/request_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=da9ea2c81acf92e57317fb932b0b5cc44cce52f1$ +// $hash=c9deebb14dbcd8fdfca29de1a286f834eccdd196$ // #include "libcef_dll/ctocpp/request_ctocpp.h" @@ -379,6 +379,10 @@ NO_SANITIZE("cfi-icall") uint64 CefRequestCToCpp::GetIdentifier() { CefRequestCToCpp::CefRequestCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRequestCToCpp::~CefRequestCToCpp() {} + template <> cef_request_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/request_ctocpp.h b/libcef_dll/ctocpp/request_ctocpp.h index 38073595a..13741cbcd 100644 --- a/libcef_dll/ctocpp/request_ctocpp.h +++ b/libcef_dll/ctocpp/request_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5ac268a3cdd1edda4319668306a814dc71bd4a0$ +// $hash=98cf46c3682e03594e72a7304dfa0ddd8b8cf3d8$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefRequestCToCpp : public CefCToCppRefCounted { public: CefRequestCToCpp(); + virtual ~CefRequestCToCpp(); // CefRequest methods. bool IsReadOnly() OVERRIDE; diff --git a/libcef_dll/ctocpp/request_handler_ctocpp.cc b/libcef_dll/ctocpp/request_handler_ctocpp.cc index 296c9dc57..0f468fb32 100644 --- a/libcef_dll/ctocpp/request_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/request_handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bf3a5c536bedb8b74ecd06383b9f1e56347c3ce7$ +// $hash=015081f57475317bfa80c5aae29b519063902734$ // #include "libcef_dll/ctocpp/request_handler_ctocpp.h" @@ -24,6 +24,7 @@ #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" #include "libcef_dll/ctocpp/resource_handler_ctocpp.h" #include "libcef_dll/ctocpp/response_filter_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -33,6 +34,8 @@ bool CefRequestHandlerCToCpp::OnBeforeBrowse(CefRefPtr browser, CefRefPtr request, bool user_gesture, bool is_redirect) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_browse)) return false; @@ -68,6 +71,8 @@ bool CefRequestHandlerCToCpp::OnOpenURLFromTab( const CefString& target_url, WindowOpenDisposition target_disposition, bool user_gesture) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_open_urlfrom_tab)) return false; @@ -102,6 +107,8 @@ CefRequestHandler::ReturnValue CefRequestHandlerCToCpp::OnBeforeResourceLoad( CefRefPtr frame, CefRefPtr request, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_before_resource_load)) return RV_CONTINUE; @@ -140,6 +147,8 @@ CefRefPtr CefRequestHandlerCToCpp::GetResourceHandler( CefRefPtr browser, CefRefPtr frame, CefRefPtr request) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_resource_handler)) return NULL; @@ -175,6 +184,8 @@ void CefRequestHandlerCToCpp::OnResourceRedirect( CefRefPtr request, CefRefPtr response, CefString& new_url) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_resource_redirect)) return; @@ -211,6 +222,8 @@ bool CefRequestHandlerCToCpp::OnResourceResponse( CefRefPtr frame, CefRefPtr request, CefRefPtr response) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_resource_response)) return false; @@ -249,6 +262,8 @@ CefRefPtr CefRequestHandlerCToCpp::GetResourceResponseFilter( CefRefPtr frame, CefRefPtr request, CefRefPtr response) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_resource_response_filter)) return NULL; @@ -289,6 +304,8 @@ void CefRequestHandlerCToCpp::OnResourceLoadComplete( CefRefPtr response, URLRequestStatus status, int64 received_content_length) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_resource_load_complete)) return; @@ -329,6 +346,8 @@ bool CefRequestHandlerCToCpp::GetAuthCredentials( const CefString& realm, const CefString& scheme, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_auth_credentials)) return false; @@ -367,6 +386,8 @@ NO_SANITIZE("cfi-icall") bool CefRequestHandlerCToCpp::CanGetCookies(CefRefPtr browser, CefRefPtr frame, CefRefPtr request) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_get_cookies)) return false; @@ -400,6 +421,8 @@ bool CefRequestHandlerCToCpp::CanSetCookie(CefRefPtr browser, CefRefPtr frame, CefRefPtr request, const CefCookie& cookie) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_set_cookie)) return false; @@ -434,6 +457,8 @@ bool CefRequestHandlerCToCpp::OnQuotaRequest( const CefString& origin_url, int64 new_size, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_quota_request)) return false; @@ -466,6 +491,8 @@ NO_SANITIZE("cfi-icall") void CefRequestHandlerCToCpp::OnProtocolExecution(CefRefPtr browser, const CefString& url, bool& allow_os_execution) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_protocol_execution)) return; @@ -499,6 +526,8 @@ bool CefRequestHandlerCToCpp::OnCertificateError( const CefString& request_url, CefRefPtr ssl_info, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_certificate_error)) return false; @@ -540,6 +569,8 @@ bool CefRequestHandlerCToCpp::OnSelectClientCertificate( int port, const X509CertificateList& certificates, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_select_client_certificate)) return false; @@ -589,6 +620,8 @@ bool CefRequestHandlerCToCpp::OnSelectClientCertificate( NO_SANITIZE("cfi-icall") void CefRequestHandlerCToCpp::OnPluginCrashed(CefRefPtr browser, const CefString& plugin_path) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_plugin_crashed)) return; @@ -611,6 +644,8 @@ void CefRequestHandlerCToCpp::OnPluginCrashed(CefRefPtr browser, NO_SANITIZE("cfi-icall") void CefRequestHandlerCToCpp::OnRenderViewReady(CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_render_view_ready)) return; @@ -630,6 +665,8 @@ NO_SANITIZE("cfi-icall") void CefRequestHandlerCToCpp::OnRenderProcessTerminated( CefRefPtr browser, TerminationStatus status) { + shutdown_checker::AssertNotShutdown(); + cef_request_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_render_process_terminated)) return; @@ -650,6 +687,12 @@ void CefRequestHandlerCToCpp::OnRenderProcessTerminated( CefRequestHandlerCToCpp::CefRequestHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRequestHandlerCToCpp::~CefRequestHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_request_handler_t* CefCToCppRefCounted< CefRequestHandlerCToCpp, diff --git a/libcef_dll/ctocpp/request_handler_ctocpp.h b/libcef_dll/ctocpp/request_handler_ctocpp.h index 62eb4f0e8..8a33f61c6 100644 --- a/libcef_dll/ctocpp/request_handler_ctocpp.h +++ b/libcef_dll/ctocpp/request_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=aa3633109ffcac405d7d4e2182aa7af9891dfcc1$ +// $hash=a1df4ee1e2349b84e3748b22558d0c61a353662c$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefRequestHandlerCToCpp cef_request_handler_t> { public: CefRequestHandlerCToCpp(); + virtual ~CefRequestHandlerCToCpp(); // CefRequestHandler methods. bool OnBeforeBrowse(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/resolve_callback_ctocpp.cc b/libcef_dll/ctocpp/resolve_callback_ctocpp.cc index 93800abf0..c0de5244b 100644 --- a/libcef_dll/ctocpp/resolve_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/resolve_callback_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=530531f83b742d65b4640152418728a36394bea6$ +// $hash=729169758ef588e50632a4d46083fbdc68385a9b$ // #include "libcef_dll/ctocpp/resolve_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall") void CefResolveCallbackCToCpp::OnResolveCompleted( cef_errorcode_t result, const std::vector& resolved_ips) { + shutdown_checker::AssertNotShutdown(); + cef_resolve_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_resolve_completed)) return; @@ -47,6 +50,12 @@ void CefResolveCallbackCToCpp::OnResolveCompleted( CefResolveCallbackCToCpp::CefResolveCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResolveCallbackCToCpp::~CefResolveCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_resolve_callback_t* CefCToCppRefCounted< CefResolveCallbackCToCpp, diff --git a/libcef_dll/ctocpp/resolve_callback_ctocpp.h b/libcef_dll/ctocpp/resolve_callback_ctocpp.h index 323641448..c25f8c86c 100644 --- a/libcef_dll/ctocpp/resolve_callback_ctocpp.h +++ b/libcef_dll/ctocpp/resolve_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7ffaf82e81aac94df4ce0f53433ebd6b1b05d37e$ +// $hash=ebbe4bdaf0b530c72bd81e4981d979d5f72bb959$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESOLVE_CALLBACK_CTOCPP_H_ @@ -35,6 +35,7 @@ class CefResolveCallbackCToCpp cef_resolve_callback_t> { public: CefResolveCallbackCToCpp(); + virtual ~CefResolveCallbackCToCpp(); // CefResolveCallback methods. void OnResolveCompleted(cef_errorcode_t result, diff --git a/libcef_dll/ctocpp/resource_bundle_ctocpp.cc b/libcef_dll/ctocpp/resource_bundle_ctocpp.cc index efd20575f..37cff255a 100644 --- a/libcef_dll/ctocpp/resource_bundle_ctocpp.cc +++ b/libcef_dll/ctocpp/resource_bundle_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0868f65c60e3ec88606d37180138eb504f0e90f8$ +// $hash=5077a70845e7b6a7ef8a3ccb901dd24a12e98808$ // #include "libcef_dll/ctocpp/resource_bundle_ctocpp.h" @@ -88,6 +88,10 @@ bool CefResourceBundleCToCpp::GetDataResourceForScale(int resource_id, CefResourceBundleCToCpp::CefResourceBundleCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResourceBundleCToCpp::~CefResourceBundleCToCpp() {} + template <> cef_resource_bundle_t* CefCToCppRefCounted< CefResourceBundleCToCpp, diff --git a/libcef_dll/ctocpp/resource_bundle_ctocpp.h b/libcef_dll/ctocpp/resource_bundle_ctocpp.h index cce6feadb..12323de74 100644 --- a/libcef_dll/ctocpp/resource_bundle_ctocpp.h +++ b/libcef_dll/ctocpp/resource_bundle_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=197ffdad1aa985a52bfbf88a117eddd050092933$ +// $hash=500ec67895aa814da932bcba494b5ed35f77d526$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESOURCE_BUNDLE_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefResourceBundleCToCpp cef_resource_bundle_t> { public: CefResourceBundleCToCpp(); + virtual ~CefResourceBundleCToCpp(); // CefResourceBundle methods. CefString GetLocalizedString(int string_id) OVERRIDE; diff --git a/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.cc b/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.cc index ade5f115d..14b594734 100644 --- a/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=adeed7873d1a6bb35d28bfc8179b923e84e346e0$ +// $hash=822f9c1cf7f3d02c847829907217a1213afb292e$ // #include "libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefResourceBundleHandlerCToCpp::GetLocalizedString(int string_id, CefString& string) { + shutdown_checker::AssertNotShutdown(); + cef_resource_bundle_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_localized_string)) return false; @@ -37,6 +40,8 @@ NO_SANITIZE("cfi-icall") bool CefResourceBundleHandlerCToCpp::GetDataResource(int resource_id, void*& data, size_t& data_size) { + shutdown_checker::AssertNotShutdown(); + cef_resource_bundle_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_data_resource)) return false; @@ -57,6 +62,8 @@ bool CefResourceBundleHandlerCToCpp::GetDataResourceForScale( ScaleFactor scale_factor, void*& data, size_t& data_size) { + shutdown_checker::AssertNotShutdown(); + cef_resource_bundle_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_data_resource_for_scale)) return false; @@ -75,6 +82,12 @@ bool CefResourceBundleHandlerCToCpp::GetDataResourceForScale( CefResourceBundleHandlerCToCpp::CefResourceBundleHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResourceBundleHandlerCToCpp::~CefResourceBundleHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_resource_bundle_handler_t* CefCToCppRefCounted< CefResourceBundleHandlerCToCpp, diff --git a/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h b/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h index 48738af70..3e4cf605c 100644 --- a/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h +++ b/libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=80ac8bb053f80dc2f4cf0b4aadb322c1e60a7915$ +// $hash=93110caad5f789a84d7621e71afc6ffd11e6ce1a$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESOURCE_BUNDLE_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefResourceBundleHandlerCToCpp cef_resource_bundle_handler_t> { public: CefResourceBundleHandlerCToCpp(); + virtual ~CefResourceBundleHandlerCToCpp(); // CefResourceBundleHandler methods. bool GetLocalizedString(int string_id, CefString& string) override; diff --git a/libcef_dll/ctocpp/resource_handler_ctocpp.cc b/libcef_dll/ctocpp/resource_handler_ctocpp.cc index b72f1b710..9f33592fb 100644 --- a/libcef_dll/ctocpp/resource_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/resource_handler_ctocpp.cc @@ -9,19 +9,22 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=579902bac9b286b09da0e6b17b0c77fe0d536f23$ +// $hash=3d6f8227ad3d75b4e831da743c5d96f5bfd14a5c$ // #include "libcef_dll/ctocpp/resource_handler_ctocpp.h" #include "libcef_dll/cpptoc/callback_cpptoc.h" #include "libcef_dll/cpptoc/request_cpptoc.h" #include "libcef_dll/cpptoc/response_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefResourceHandlerCToCpp::ProcessRequest(CefRefPtr request, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, process_request)) return false; @@ -51,6 +54,8 @@ void CefResourceHandlerCToCpp::GetResponseHeaders( CefRefPtr response, int64& response_length, CefString& redirectUrl) { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_response_headers)) return; @@ -73,6 +78,8 @@ bool CefResourceHandlerCToCpp::ReadResponse(void* data_out, int bytes_to_read, int& bytes_read, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, read_response)) return false; @@ -99,6 +106,8 @@ bool CefResourceHandlerCToCpp::ReadResponse(void* data_out, NO_SANITIZE("cfi-icall") bool CefResourceHandlerCToCpp::CanGetCookie(const CefCookie& cookie) { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_get_cookie)) return false; @@ -114,6 +123,8 @@ bool CefResourceHandlerCToCpp::CanGetCookie(const CefCookie& cookie) { NO_SANITIZE("cfi-icall") bool CefResourceHandlerCToCpp::CanSetCookie(const CefCookie& cookie) { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_set_cookie)) return false; @@ -128,6 +139,8 @@ bool CefResourceHandlerCToCpp::CanSetCookie(const CefCookie& cookie) { } NO_SANITIZE("cfi-icall") void CefResourceHandlerCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_resource_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -142,6 +155,12 @@ NO_SANITIZE("cfi-icall") void CefResourceHandlerCToCpp::Cancel() { CefResourceHandlerCToCpp::CefResourceHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResourceHandlerCToCpp::~CefResourceHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_resource_handler_t* CefCToCppRefCounted< CefResourceHandlerCToCpp, diff --git a/libcef_dll/ctocpp/resource_handler_ctocpp.h b/libcef_dll/ctocpp/resource_handler_ctocpp.h index bdc9648e7..c5a889ea6 100644 --- a/libcef_dll/ctocpp/resource_handler_ctocpp.h +++ b/libcef_dll/ctocpp/resource_handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a7057c774faf1ecafdbf823624c96f784517c062$ +// $hash=803469f8ec84d5c38aa2efa63247f46b15fd926e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESOURCE_HANDLER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefResourceHandlerCToCpp cef_resource_handler_t> { public: CefResourceHandlerCToCpp(); + virtual ~CefResourceHandlerCToCpp(); // CefResourceHandler methods. bool ProcessRequest(CefRefPtr request, diff --git a/libcef_dll/ctocpp/response_ctocpp.cc b/libcef_dll/ctocpp/response_ctocpp.cc index a357e0faf..1cc6b30b2 100644 --- a/libcef_dll/ctocpp/response_ctocpp.cc +++ b/libcef_dll/ctocpp/response_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=47b12230d85a8cb21c4d1d76a5dff05b36f39a19$ +// $hash=dd70682960c16f775b302972cac83d54e6ee0b87$ // #include "libcef_dll/ctocpp/response_ctocpp.h" @@ -266,6 +266,10 @@ NO_SANITIZE("cfi-icall") void CefResponseCToCpp::SetURL(const CefString& url) { CefResponseCToCpp::CefResponseCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResponseCToCpp::~CefResponseCToCpp() {} + template <> cef_response_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/response_ctocpp.h b/libcef_dll/ctocpp/response_ctocpp.h index 654882b46..82ca280c5 100644 --- a/libcef_dll/ctocpp/response_ctocpp.h +++ b/libcef_dll/ctocpp/response_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c97a097f98118f8d3b5229141a7065385080b4e1$ +// $hash=df2e29ce3f4dbed69447e10ddde7d73ef7aceaf1$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefResponseCToCpp : public CefCToCppRefCounted { public: CefResponseCToCpp(); + virtual ~CefResponseCToCpp(); // CefResponse methods. bool IsReadOnly() OVERRIDE; diff --git a/libcef_dll/ctocpp/response_filter_ctocpp.cc b/libcef_dll/ctocpp/response_filter_ctocpp.cc index 4a7213994..c20375f94 100644 --- a/libcef_dll/ctocpp/response_filter_ctocpp.cc +++ b/libcef_dll/ctocpp/response_filter_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b4d995b4c2d814259613e2d14d868a0a5ff7984c$ +// $hash=ea88635aa4e6f26eb41b62a077cddccda1e0c2ed$ // #include "libcef_dll/ctocpp/response_filter_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefResponseFilterCToCpp::InitFilter() { + shutdown_checker::AssertNotShutdown(); + cef_response_filter_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, init_filter)) return false; @@ -31,13 +34,15 @@ NO_SANITIZE("cfi-icall") bool CefResponseFilterCToCpp::InitFilter() { } NO_SANITIZE("cfi-icall") -CefResponseFilter::FilterStatus - CefResponseFilterCToCpp::Filter(void* data_in, - size_t data_in_size, - size_t& data_in_read, - void* data_out, - size_t data_out_size, - size_t& data_out_written) { +CefResponseFilter::FilterStatus CefResponseFilterCToCpp::Filter( + void* data_in, + size_t data_in_size, + size_t& data_in_read, + void* data_out, + size_t data_out_size, + size_t& data_out_written) { + shutdown_checker::AssertNotShutdown(); + cef_response_filter_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, filter)) return RESPONSE_FILTER_ERROR; @@ -63,6 +68,12 @@ CefResponseFilter::FilterStatus CefResponseFilterCToCpp::CefResponseFilterCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefResponseFilterCToCpp::~CefResponseFilterCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_response_filter_t* CefCToCppRefCounted< CefResponseFilterCToCpp, diff --git a/libcef_dll/ctocpp/response_filter_ctocpp.h b/libcef_dll/ctocpp/response_filter_ctocpp.h index dbe128d4e..12e4552ca 100644 --- a/libcef_dll/ctocpp/response_filter_ctocpp.h +++ b/libcef_dll/ctocpp/response_filter_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cf0179acf4d6736f111d3f0bf8e4d8b9112116eb$ +// $hash=b532d2c3367c209d2ecb7235137dc1bf52bd89f5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RESPONSE_FILTER_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefResponseFilterCToCpp cef_response_filter_t> { public: CefResponseFilterCToCpp(); + virtual ~CefResponseFilterCToCpp(); // CefResponseFilter methods. bool InitFilter() override; diff --git a/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.cc b/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.cc index a90e3d783..d6da296ce 100644 --- a/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a9234f6868fedd9fa4b18da5966c40d9f5957ac1$ +// $hash=984145166664059fa54299c0693e555210b0f867$ // #include "libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Continue(int command_id, EventFlags event_flags) { + shutdown_checker::AssertNotShutdown(); + cef_run_context_menu_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cont)) return; @@ -30,6 +33,8 @@ void CefRunContextMenuCallbackCToCpp::Continue(int command_id, } NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_run_context_menu_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -44,6 +49,12 @@ NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Cancel() { CefRunContextMenuCallbackCToCpp::CefRunContextMenuCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRunContextMenuCallbackCToCpp::~CefRunContextMenuCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_run_context_menu_callback_t* CefCToCppRefCounted< CefRunContextMenuCallbackCToCpp, diff --git a/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h b/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h index d2bac5505..166b48a52 100644 --- a/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h +++ b/libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4fec2a1cdcf026ee194c5bf9c26f2bb71fc8e3bc$ +// $hash=a3c1d5ad0b3380e2ab59059af768ef220b736024$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RUN_CONTEXT_MENU_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefRunContextMenuCallbackCToCpp cef_run_context_menu_callback_t> { public: CefRunContextMenuCallbackCToCpp(); + virtual ~CefRunContextMenuCallbackCToCpp(); // CefRunContextMenuCallback methods. void Continue(int command_id, EventFlags event_flags) OVERRIDE; diff --git a/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.cc b/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.cc index 93e3853ab..a08b10845 100644 --- a/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5ae62286e325193f309f0c7faef103cc3ff31ff1$ +// $hash=e3c8147d25d629b82d638becfcb0fd4dcbd82bba$ // #include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall") void CefRunFileDialogCallbackCToCpp::OnFileDialogDismissed( int selected_accept_filter, const std::vector& file_paths) { + shutdown_checker::AssertNotShutdown(); + cef_run_file_dialog_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_file_dialog_dismissed)) return; @@ -52,6 +55,12 @@ void CefRunFileDialogCallbackCToCpp::OnFileDialogDismissed( CefRunFileDialogCallbackCToCpp::CefRunFileDialogCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefRunFileDialogCallbackCToCpp::~CefRunFileDialogCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_run_file_dialog_callback_t* CefCToCppRefCounted< CefRunFileDialogCallbackCToCpp, diff --git a/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h b/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h index a37dc5ce0..f3d4680f5 100644 --- a/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h +++ b/libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=16f2fc491196c37d41c1f1a15c0137c47581df40$ +// $hash=721c351c040930f8dd9b5da74359ae5946b45fd3$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_RUN_FILE_DIALOG_CALLBACK_CTOCPP_H_ @@ -35,6 +35,7 @@ class CefRunFileDialogCallbackCToCpp cef_run_file_dialog_callback_t> { public: CefRunFileDialogCallbackCToCpp(); + virtual ~CefRunFileDialogCallbackCToCpp(); // CefRunFileDialogCallback methods. void OnFileDialogDismissed(int selected_accept_filter, diff --git a/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.cc b/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.cc index ba97dad14..52f8385c2 100644 --- a/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.cc +++ b/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bc66f40917445e9ad3e8db14e4a49d3b79db716d$ +// $hash=cc1c431f55b6c2efa1a6e614baae484216d4a425$ // #include "libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h" @@ -55,6 +55,10 @@ CefRefPtr CefSchemeHandlerFactoryCToCpp::Create( CefSchemeHandlerFactoryCToCpp::CefSchemeHandlerFactoryCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSchemeHandlerFactoryCToCpp::~CefSchemeHandlerFactoryCToCpp() {} + template <> cef_scheme_handler_factory_t* CefCToCppRefCounted< CefSchemeHandlerFactoryCToCpp, diff --git a/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h b/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h index d9d0c3920..902266ada 100644 --- a/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h +++ b/libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4b9bbade23a6ae46a8858bb24a9ac9cb9c0fc6d9$ +// $hash=ec3bef3aece33547fc4d42aef8589001340e6c37$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_FACTORY_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefSchemeHandlerFactoryCToCpp cef_scheme_handler_factory_t> { public: CefSchemeHandlerFactoryCToCpp(); + virtual ~CefSchemeHandlerFactoryCToCpp(); // CefSchemeHandlerFactory methods. CefRefPtr Create(CefRefPtr browser, diff --git a/libcef_dll/ctocpp/scheme_registrar_ctocpp.cc b/libcef_dll/ctocpp/scheme_registrar_ctocpp.cc index 02aaa898f..9dbada793 100644 --- a/libcef_dll/ctocpp/scheme_registrar_ctocpp.cc +++ b/libcef_dll/ctocpp/scheme_registrar_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b35a35cf7c729b333843001e424e13d9e91dc41c$ +// $hash=caed6f3b379daa361a3435a4810df25cdbf829a8$ // #include "libcef_dll/ctocpp/scheme_registrar_ctocpp.h" @@ -50,6 +50,10 @@ bool CefSchemeRegistrarCToCpp::AddCustomScheme(const CefString& scheme_name, CefSchemeRegistrarCToCpp::CefSchemeRegistrarCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSchemeRegistrarCToCpp::~CefSchemeRegistrarCToCpp() {} + template <> cef_scheme_registrar_t* CefCToCppScoped< CefSchemeRegistrarCToCpp, diff --git a/libcef_dll/ctocpp/scheme_registrar_ctocpp.h b/libcef_dll/ctocpp/scheme_registrar_ctocpp.h index 255cc4273..34db688f4 100644 --- a/libcef_dll/ctocpp/scheme_registrar_ctocpp.h +++ b/libcef_dll/ctocpp/scheme_registrar_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=78be224ecf2427abc51e7006d031861baee0435d$ +// $hash=b3cac10a32964e7c29eb39cfb7e2fda4c3f869f9$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_REGISTRAR_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefSchemeRegistrarCToCpp cef_scheme_registrar_t> { public: CefSchemeRegistrarCToCpp(); + virtual ~CefSchemeRegistrarCToCpp(); // CefSchemeRegistrar methods. bool AddCustomScheme(const CefString& scheme_name, diff --git a/libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.cc b/libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.cc index bbe626869..85bf4159c 100644 --- a/libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b8c542f7498b9579ac4d169f0b73660af2f959c5$ +// $hash=cbc4f3b0339a6d0eff4254b4733e4e972c2c3b92$ // #include "libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.h" #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefSelectClientCertificateCallbackCToCpp::Select( CefRefPtr cert) { + shutdown_checker::AssertNotShutdown(); + cef_select_client_certificate_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, select)) return; @@ -37,6 +40,13 @@ void CefSelectClientCertificateCallbackCToCpp::Select( CefSelectClientCertificateCallbackCToCpp:: CefSelectClientCertificateCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSelectClientCertificateCallbackCToCpp:: + ~CefSelectClientCertificateCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_select_client_certificate_callback_t* CefCToCppRefCounted { public: CefSelectClientCertificateCallbackCToCpp(); + virtual ~CefSelectClientCertificateCallbackCToCpp(); // CefSelectClientCertificateCallback methods. void Select(CefRefPtr cert) OVERRIDE; diff --git a/libcef_dll/ctocpp/server_ctocpp.cc b/libcef_dll/ctocpp/server_ctocpp.cc index c72a0b6e0..34ac3ced3 100644 --- a/libcef_dll/ctocpp/server_ctocpp.cc +++ b/libcef_dll/ctocpp/server_ctocpp.cc @@ -9,12 +9,13 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f3bf5d4209c0f88ff8f0b007ceaf513ddd6c04fc$ +// $hash=98264bc53181dbda80d4474494ffeef420463320$ // #include "libcef_dll/ctocpp/server_ctocpp.h" #include "libcef_dll/cpptoc/server_handler_cpptoc.h" #include "libcef_dll/ctocpp/task_runner_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // STATIC METHODS - Body may be edited by hand. @@ -24,6 +25,8 @@ void CefServer::CreateServer(const CefString& address, uint16 port, int backlog, CefRefPtr handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: address; type: string_byref_const @@ -44,6 +47,8 @@ void CefServer::CreateServer(const CefString& address, NO_SANITIZE("cfi-icall") CefRefPtr CefServerCToCpp::GetTaskRunner() { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_task_runner)) return NULL; @@ -58,6 +63,8 @@ CefRefPtr CefServerCToCpp::GetTaskRunner() { } NO_SANITIZE("cfi-icall") void CefServerCToCpp::Shutdown() { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, shutdown)) return; @@ -69,6 +76,8 @@ NO_SANITIZE("cfi-icall") void CefServerCToCpp::Shutdown() { } NO_SANITIZE("cfi-icall") bool CefServerCToCpp::IsRunning() { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_running)) return false; @@ -83,6 +92,8 @@ NO_SANITIZE("cfi-icall") bool CefServerCToCpp::IsRunning() { } NO_SANITIZE("cfi-icall") CefString CefServerCToCpp::GetAddress() { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_address)) return CefString(); @@ -99,6 +110,8 @@ NO_SANITIZE("cfi-icall") CefString CefServerCToCpp::GetAddress() { } NO_SANITIZE("cfi-icall") bool CefServerCToCpp::HasConnection() { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_connection)) return false; @@ -114,6 +127,8 @@ NO_SANITIZE("cfi-icall") bool CefServerCToCpp::HasConnection() { NO_SANITIZE("cfi-icall") bool CefServerCToCpp::IsValidConnection(int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid_connection)) return false; @@ -132,6 +147,8 @@ void CefServerCToCpp::SendHttp200Response(int connection_id, const CefString& content_type, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_http200response)) return; @@ -154,6 +171,8 @@ void CefServerCToCpp::SendHttp200Response(int connection_id, NO_SANITIZE("cfi-icall") void CefServerCToCpp::SendHttp404Response(int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_http404response)) return; @@ -167,6 +186,8 @@ void CefServerCToCpp::SendHttp404Response(int connection_id) { NO_SANITIZE("cfi-icall") void CefServerCToCpp::SendHttp500Response(int connection_id, const CefString& error_message) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_http500response)) return; @@ -189,6 +210,8 @@ void CefServerCToCpp::SendHttpResponse(int connection_id, const CefString& content_type, int64 content_length, const HeaderMap& extra_headers) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_http_response)) return; @@ -221,6 +244,8 @@ NO_SANITIZE("cfi-icall") void CefServerCToCpp::SendRawData(int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_raw_data)) return; @@ -238,6 +263,8 @@ void CefServerCToCpp::SendRawData(int connection_id, NO_SANITIZE("cfi-icall") void CefServerCToCpp::CloseConnection(int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_connection)) return; @@ -252,6 +279,8 @@ NO_SANITIZE("cfi-icall") void CefServerCToCpp::SendWebSocketMessage(int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + cef_server_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_web_socket_message)) return; @@ -271,6 +300,12 @@ void CefServerCToCpp::SendWebSocketMessage(int connection_id, CefServerCToCpp::CefServerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefServerCToCpp::~CefServerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_server_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/server_ctocpp.h b/libcef_dll/ctocpp/server_ctocpp.h index c38b46502..0e53b299b 100644 --- a/libcef_dll/ctocpp/server_ctocpp.h +++ b/libcef_dll/ctocpp/server_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1b52d8dda791fd538bbaa7a397dc6e7b4bb078ca$ +// $hash=d3e3ac31099d907a471d495d1888896d6643a623$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SERVER_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefServerCToCpp : public CefCToCppRefCounted { public: CefServerCToCpp(); + virtual ~CefServerCToCpp(); // CefServer methods. CefRefPtr GetTaskRunner() OVERRIDE; diff --git a/libcef_dll/ctocpp/server_handler_ctocpp.cc b/libcef_dll/ctocpp/server_handler_ctocpp.cc index 8a946fcf2..c89c1ac4c 100644 --- a/libcef_dll/ctocpp/server_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/server_handler_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=25b8a484e4e00c1004b1b8c30638d2d6faf963d6$ +// $hash=381eba12e69c8beedb92ada87ab54a3764be4230$ // #include "libcef_dll/ctocpp/server_handler_ctocpp.h" #include "libcef_dll/cpptoc/callback_cpptoc.h" #include "libcef_dll/cpptoc/request_cpptoc.h" #include "libcef_dll/cpptoc/server_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefServerHandlerCToCpp::OnServerCreated(CefRefPtr server) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_server_created)) return; @@ -38,6 +41,8 @@ void CefServerHandlerCToCpp::OnServerCreated(CefRefPtr server) { NO_SANITIZE("cfi-icall") void CefServerHandlerCToCpp::OnServerDestroyed(CefRefPtr server) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_server_destroyed)) return; @@ -56,6 +61,8 @@ void CefServerHandlerCToCpp::OnServerDestroyed(CefRefPtr server) { NO_SANITIZE("cfi-icall") void CefServerHandlerCToCpp::OnClientConnected(CefRefPtr server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_client_connected)) return; @@ -75,6 +82,8 @@ void CefServerHandlerCToCpp::OnClientConnected(CefRefPtr server, NO_SANITIZE("cfi-icall") void CefServerHandlerCToCpp::OnClientDisconnected(CefRefPtr server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_client_disconnected)) return; @@ -96,6 +105,8 @@ void CefServerHandlerCToCpp::OnHttpRequest(CefRefPtr server, int connection_id, const CefString& client_address, CefRefPtr request) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_http_request)) return; @@ -128,6 +139,8 @@ void CefServerHandlerCToCpp::OnWebSocketRequest( const CefString& client_address, CefRefPtr request, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_web_socket_request)) return; @@ -161,6 +174,8 @@ void CefServerHandlerCToCpp::OnWebSocketRequest( NO_SANITIZE("cfi-icall") void CefServerHandlerCToCpp::OnWebSocketConnected(CefRefPtr server, int connection_id) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_web_socket_connected)) return; @@ -182,6 +197,8 @@ void CefServerHandlerCToCpp::OnWebSocketMessage(CefRefPtr server, int connection_id, const void* data, size_t data_size) { + shutdown_checker::AssertNotShutdown(); + cef_server_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_web_socket_message)) return; @@ -206,6 +223,12 @@ void CefServerHandlerCToCpp::OnWebSocketMessage(CefRefPtr server, CefServerHandlerCToCpp::CefServerHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefServerHandlerCToCpp::~CefServerHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_server_handler_t* CefCToCppRefCounted { public: CefServerHandlerCToCpp(); + virtual ~CefServerHandlerCToCpp(); // CefServerHandler methods. void OnServerCreated(CefRefPtr server) override; diff --git a/libcef_dll/ctocpp/set_cookie_callback_ctocpp.cc b/libcef_dll/ctocpp/set_cookie_callback_ctocpp.cc index c1b55d9a1..569371838 100644 --- a/libcef_dll/ctocpp/set_cookie_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/set_cookie_callback_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4a247df94da6f7d258982f2518db3d909d727a47$ +// $hash=9cc7eb52611e6b972ec6cd4dc036409c0e6875df$ // #include "libcef_dll/ctocpp/set_cookie_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefSetCookieCallbackCToCpp::OnComplete(bool success) { + shutdown_checker::AssertNotShutdown(); + cef_set_cookie_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_complete)) return; @@ -32,6 +35,12 @@ void CefSetCookieCallbackCToCpp::OnComplete(bool success) { CefSetCookieCallbackCToCpp::CefSetCookieCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSetCookieCallbackCToCpp::~CefSetCookieCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_set_cookie_callback_t* CefCToCppRefCounted< CefSetCookieCallbackCToCpp, diff --git a/libcef_dll/ctocpp/set_cookie_callback_ctocpp.h b/libcef_dll/ctocpp/set_cookie_callback_ctocpp.h index 3f744c38f..f83cdf4b7 100644 --- a/libcef_dll/ctocpp/set_cookie_callback_ctocpp.h +++ b/libcef_dll/ctocpp/set_cookie_callback_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a4ff20aee06bfc88879ac9e5cc65c9aac887c5f5$ +// $hash=48f20f8d8d764c34b220ff92248a39572af46887$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SET_COOKIE_CALLBACK_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefSetCookieCallbackCToCpp cef_set_cookie_callback_t> { public: CefSetCookieCallbackCToCpp(); + virtual ~CefSetCookieCallbackCToCpp(); // CefSetCookieCallback methods. void OnComplete(bool success) override; diff --git a/libcef_dll/ctocpp/sslinfo_ctocpp.cc b/libcef_dll/ctocpp/sslinfo_ctocpp.cc index 40868b3cf..f17e36801 100644 --- a/libcef_dll/ctocpp/sslinfo_ctocpp.cc +++ b/libcef_dll/ctocpp/sslinfo_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4ae1f2c5eb73a7dff5d96bc42750bbf8034e6ddb$ +// $hash=d2496fe2f83679ec93768c1fb73b1c66499ebc5b$ // #include "libcef_dll/ctocpp/sslinfo_ctocpp.h" #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") cef_cert_status_t CefSSLInfoCToCpp::GetCertStatus() { + shutdown_checker::AssertNotShutdown(); + cef_sslinfo_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_cert_status)) return CERT_STATUS_NONE; @@ -33,6 +36,8 @@ NO_SANITIZE("cfi-icall") cef_cert_status_t CefSSLInfoCToCpp::GetCertStatus() { NO_SANITIZE("cfi-icall") CefRefPtr CefSSLInfoCToCpp::GetX509Certificate() { + shutdown_checker::AssertNotShutdown(); + cef_sslinfo_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_x509certificate)) return NULL; @@ -50,6 +55,12 @@ CefRefPtr CefSSLInfoCToCpp::GetX509Certificate() { CefSSLInfoCToCpp::CefSSLInfoCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSSLInfoCToCpp::~CefSSLInfoCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_sslinfo_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/sslinfo_ctocpp.h b/libcef_dll/ctocpp/sslinfo_ctocpp.h index ec5d0b8ee..5ffc3ee13 100644 --- a/libcef_dll/ctocpp/sslinfo_ctocpp.h +++ b/libcef_dll/ctocpp/sslinfo_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=89923ce50878e9288e595d210febed763018116f$ +// $hash=c9aa6a27970e239b12162b386a02d50fca58d2a5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SSLINFO_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefSSLInfoCToCpp : public CefCToCppRefCounted { public: CefSSLInfoCToCpp(); + virtual ~CefSSLInfoCToCpp(); // CefSSLInfo methods. cef_cert_status_t GetCertStatus() OVERRIDE; diff --git a/libcef_dll/ctocpp/sslstatus_ctocpp.cc b/libcef_dll/ctocpp/sslstatus_ctocpp.cc index 60cdab3bf..1f73892fb 100644 --- a/libcef_dll/ctocpp/sslstatus_ctocpp.cc +++ b/libcef_dll/ctocpp/sslstatus_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9eb40b86cd35c2a78bf7db5d68522a290c67ad20$ +// $hash=971e8ff1505cd5c719e4c816ac5c6aebffbc8e98$ // #include "libcef_dll/ctocpp/sslstatus_ctocpp.h" #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefSSLStatusCToCpp::IsSecureConnection() { + shutdown_checker::AssertNotShutdown(); + cef_sslstatus_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_secure_connection)) return false; @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") bool CefSSLStatusCToCpp::IsSecureConnection() { } NO_SANITIZE("cfi-icall") cef_cert_status_t CefSSLStatusCToCpp::GetCertStatus() { + shutdown_checker::AssertNotShutdown(); + cef_sslstatus_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_cert_status)) return CERT_STATUS_NONE; @@ -46,6 +51,8 @@ NO_SANITIZE("cfi-icall") cef_cert_status_t CefSSLStatusCToCpp::GetCertStatus() { } NO_SANITIZE("cfi-icall") cef_ssl_version_t CefSSLStatusCToCpp::GetSSLVersion() { + shutdown_checker::AssertNotShutdown(); + cef_sslstatus_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_sslversion)) return SSL_CONNECTION_VERSION_UNKNOWN; @@ -61,6 +68,8 @@ NO_SANITIZE("cfi-icall") cef_ssl_version_t CefSSLStatusCToCpp::GetSSLVersion() { NO_SANITIZE("cfi-icall") cef_ssl_content_status_t CefSSLStatusCToCpp::GetContentStatus() { + shutdown_checker::AssertNotShutdown(); + cef_sslstatus_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_content_status)) return SSL_CONTENT_NORMAL_CONTENT; @@ -76,6 +85,8 @@ cef_ssl_content_status_t CefSSLStatusCToCpp::GetContentStatus() { NO_SANITIZE("cfi-icall") CefRefPtr CefSSLStatusCToCpp::GetX509Certificate() { + shutdown_checker::AssertNotShutdown(); + cef_sslstatus_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_x509certificate)) return NULL; @@ -93,6 +104,12 @@ CefRefPtr CefSSLStatusCToCpp::GetX509Certificate() { CefSSLStatusCToCpp::CefSSLStatusCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefSSLStatusCToCpp::~CefSSLStatusCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_sslstatus_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/sslstatus_ctocpp.h b/libcef_dll/ctocpp/sslstatus_ctocpp.h index 2a65a19a7..82ce7881d 100644 --- a/libcef_dll/ctocpp/sslstatus_ctocpp.h +++ b/libcef_dll/ctocpp/sslstatus_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c24a06863b0ebd4e15eed11727ac1cf7fae7863b$ +// $hash=35e07d1a4032f54411954ef769922b8e7418d4df$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_SSLSTATUS_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefSSLStatusCToCpp : public CefCToCppRefCounted { public: CefSSLStatusCToCpp(); + virtual ~CefSSLStatusCToCpp(); // CefSSLStatus methods. bool IsSecureConnection() OVERRIDE; diff --git a/libcef_dll/ctocpp/stream_reader_ctocpp.cc b/libcef_dll/ctocpp/stream_reader_ctocpp.cc index 8a63e45a9..677f6b018 100644 --- a/libcef_dll/ctocpp/stream_reader_ctocpp.cc +++ b/libcef_dll/ctocpp/stream_reader_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c315ce672ba7e9bc903cb9eb6927fa9efd8187ba$ +// $hash=bd71a129987045a4287adb96f27e3cfc858dda46$ // #include "libcef_dll/ctocpp/stream_reader_ctocpp.h" #include "libcef_dll/cpptoc/read_handler_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefStreamReader::CreateForFile( const CefString& fileName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: fileName; type: string_byref_const @@ -38,6 +41,8 @@ CefRefPtr CefStreamReader::CreateForFile( NO_SANITIZE("cfi-icall") CefRefPtr CefStreamReader::CreateForData(void* data, size_t size) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: data; type: simple_byaddr @@ -55,6 +60,8 @@ CefRefPtr CefStreamReader::CreateForData(void* data, NO_SANITIZE("cfi-icall") CefRefPtr CefStreamReader::CreateForHandler( CefRefPtr handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: handler; type: refptr_diff @@ -74,6 +81,8 @@ CefRefPtr CefStreamReader::CreateForHandler( NO_SANITIZE("cfi-icall") size_t CefStreamReaderCToCpp::Read(void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + cef_stream_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, read)) return 0; @@ -94,6 +103,8 @@ size_t CefStreamReaderCToCpp::Read(void* ptr, size_t size, size_t n) { NO_SANITIZE("cfi-icall") int CefStreamReaderCToCpp::Seek(int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + cef_stream_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, seek)) return 0; @@ -108,6 +119,8 @@ int CefStreamReaderCToCpp::Seek(int64 offset, int whence) { } NO_SANITIZE("cfi-icall") int64 CefStreamReaderCToCpp::Tell() { + shutdown_checker::AssertNotShutdown(); + cef_stream_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, tell)) return 0; @@ -122,6 +135,8 @@ NO_SANITIZE("cfi-icall") int64 CefStreamReaderCToCpp::Tell() { } NO_SANITIZE("cfi-icall") int CefStreamReaderCToCpp::Eof() { + shutdown_checker::AssertNotShutdown(); + cef_stream_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, eof)) return 0; @@ -136,6 +151,8 @@ NO_SANITIZE("cfi-icall") int CefStreamReaderCToCpp::Eof() { } NO_SANITIZE("cfi-icall") bool CefStreamReaderCToCpp::MayBlock() { + shutdown_checker::AssertNotShutdown(); + cef_stream_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, may_block)) return false; @@ -153,6 +170,12 @@ NO_SANITIZE("cfi-icall") bool CefStreamReaderCToCpp::MayBlock() { CefStreamReaderCToCpp::CefStreamReaderCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefStreamReaderCToCpp::~CefStreamReaderCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_stream_reader_t* CefCToCppRefCounted { public: CefStreamReaderCToCpp(); + virtual ~CefStreamReaderCToCpp(); // CefStreamReader methods. size_t Read(void* ptr, size_t size, size_t n) OVERRIDE; diff --git a/libcef_dll/ctocpp/stream_writer_ctocpp.cc b/libcef_dll/ctocpp/stream_writer_ctocpp.cc index 1607f1eeb..78b591eab 100644 --- a/libcef_dll/ctocpp/stream_writer_ctocpp.cc +++ b/libcef_dll/ctocpp/stream_writer_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a1805c15dc4a3ece20d53c25c01a1f1b31574cf8$ +// $hash=7a8e8a23e595fc23ee83c0547fe099d135485ae6$ // #include "libcef_dll/ctocpp/stream_writer_ctocpp.h" #include "libcef_dll/cpptoc/write_handler_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefStreamWriter::CreateForFile( const CefString& fileName) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: fileName; type: string_byref_const @@ -38,6 +41,8 @@ CefRefPtr CefStreamWriter::CreateForFile( NO_SANITIZE("cfi-icall") CefRefPtr CefStreamWriter::CreateForHandler( CefRefPtr handler) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: handler; type: refptr_diff @@ -57,6 +62,8 @@ CefRefPtr CefStreamWriter::CreateForHandler( NO_SANITIZE("cfi-icall") size_t CefStreamWriterCToCpp::Write(const void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + cef_stream_writer_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, write)) return 0; @@ -77,6 +84,8 @@ size_t CefStreamWriterCToCpp::Write(const void* ptr, size_t size, size_t n) { NO_SANITIZE("cfi-icall") int CefStreamWriterCToCpp::Seek(int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + cef_stream_writer_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, seek)) return 0; @@ -91,6 +100,8 @@ int CefStreamWriterCToCpp::Seek(int64 offset, int whence) { } NO_SANITIZE("cfi-icall") int64 CefStreamWriterCToCpp::Tell() { + shutdown_checker::AssertNotShutdown(); + cef_stream_writer_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, tell)) return 0; @@ -105,6 +116,8 @@ NO_SANITIZE("cfi-icall") int64 CefStreamWriterCToCpp::Tell() { } NO_SANITIZE("cfi-icall") int CefStreamWriterCToCpp::Flush() { + shutdown_checker::AssertNotShutdown(); + cef_stream_writer_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, flush)) return 0; @@ -119,6 +132,8 @@ NO_SANITIZE("cfi-icall") int CefStreamWriterCToCpp::Flush() { } NO_SANITIZE("cfi-icall") bool CefStreamWriterCToCpp::MayBlock() { + shutdown_checker::AssertNotShutdown(); + cef_stream_writer_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, may_block)) return false; @@ -136,6 +151,12 @@ NO_SANITIZE("cfi-icall") bool CefStreamWriterCToCpp::MayBlock() { CefStreamWriterCToCpp::CefStreamWriterCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefStreamWriterCToCpp::~CefStreamWriterCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_stream_writer_t* CefCToCppRefCounted { public: CefStreamWriterCToCpp(); + virtual ~CefStreamWriterCToCpp(); // CefStreamWriter methods. size_t Write(const void* ptr, size_t size, size_t n) OVERRIDE; diff --git a/libcef_dll/ctocpp/string_visitor_ctocpp.cc b/libcef_dll/ctocpp/string_visitor_ctocpp.cc index 3b579a68f..a106ce25f 100644 --- a/libcef_dll/ctocpp/string_visitor_ctocpp.cc +++ b/libcef_dll/ctocpp/string_visitor_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f131442386d9aeda3b4a9e7484faa1bdbf88276a$ +// $hash=9d300b4e0391a921a05a01599c91cf7f700a3e63$ // #include "libcef_dll/ctocpp/string_visitor_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefStringVisitorCToCpp::Visit(const CefString& string) { + shutdown_checker::AssertNotShutdown(); + cef_string_visitor_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit)) return; @@ -34,6 +37,12 @@ void CefStringVisitorCToCpp::Visit(const CefString& string) { CefStringVisitorCToCpp::CefStringVisitorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefStringVisitorCToCpp::~CefStringVisitorCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_string_visitor_t* CefCToCppRefCounted { public: CefStringVisitorCToCpp(); + virtual ~CefStringVisitorCToCpp(); // CefStringVisitor methods. void Visit(const CefString& string) override; diff --git a/libcef_dll/ctocpp/task_ctocpp.cc b/libcef_dll/ctocpp/task_ctocpp.cc index c7939d36d..237785545 100644 --- a/libcef_dll/ctocpp/task_ctocpp.cc +++ b/libcef_dll/ctocpp/task_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bfa1396bd439183b8ffc6289db2974d11bd7ba13$ +// $hash=da357fbd2928a41597a056f80551b406b859ab1b$ // #include "libcef_dll/ctocpp/task_ctocpp.h" @@ -31,6 +31,10 @@ NO_SANITIZE("cfi-icall") void CefTaskCToCpp::Execute() { CefTaskCToCpp::CefTaskCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTaskCToCpp::~CefTaskCToCpp() {} + template <> cef_task_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/task_ctocpp.h b/libcef_dll/ctocpp/task_ctocpp.h index bd55a6fa1..f4f373b68 100644 --- a/libcef_dll/ctocpp/task_ctocpp.h +++ b/libcef_dll/ctocpp/task_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4c3ad7a10e3dfbcb4f812c2f3a5051a4674c9e5e$ +// $hash=8ec605dab7905eba81220b038d9e2f041fc02bae$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TASK_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefTaskCToCpp : public CefCToCppRefCounted { public: CefTaskCToCpp(); + virtual ~CefTaskCToCpp(); // CefTask methods. void Execute() override; diff --git a/libcef_dll/ctocpp/task_runner_ctocpp.cc b/libcef_dll/ctocpp/task_runner_ctocpp.cc index 420ddb630..6f94f4413 100644 --- a/libcef_dll/ctocpp/task_runner_ctocpp.cc +++ b/libcef_dll/ctocpp/task_runner_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=43b6d2b9373dd2e97133fec6234840ffec170b39$ +// $hash=7fde43475329d8b158cd0325a0382ba3cc49cda0$ // #include "libcef_dll/ctocpp/task_runner_ctocpp.h" #include "libcef_dll/cpptoc/task_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefTaskRunner::GetForCurrentThread() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -30,6 +33,8 @@ CefRefPtr CefTaskRunner::GetForCurrentThread() { NO_SANITIZE("cfi-icall") CefRefPtr CefTaskRunner::GetForThread(CefThreadId threadId) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -43,6 +48,8 @@ CefRefPtr CefTaskRunner::GetForThread(CefThreadId threadId) { NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_task_runner_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -62,6 +69,8 @@ bool CefTaskRunnerCToCpp::IsSame(CefRefPtr that) { } NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::BelongsToCurrentThread() { + shutdown_checker::AssertNotShutdown(); + cef_task_runner_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, belongs_to_current_thread)) return false; @@ -77,6 +86,8 @@ NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::BelongsToCurrentThread() { NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::BelongsToThread(CefThreadId threadId) { + shutdown_checker::AssertNotShutdown(); + cef_task_runner_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, belongs_to_thread)) return false; @@ -92,6 +103,8 @@ bool CefTaskRunnerCToCpp::BelongsToThread(CefThreadId threadId) { NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::PostTask(CefRefPtr task) { + shutdown_checker::AssertNotShutdown(); + cef_task_runner_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, post_task)) return false; @@ -113,6 +126,8 @@ bool CefTaskRunnerCToCpp::PostTask(CefRefPtr task) { NO_SANITIZE("cfi-icall") bool CefTaskRunnerCToCpp::PostDelayedTask(CefRefPtr task, int64 delay_ms) { + shutdown_checker::AssertNotShutdown(); + cef_task_runner_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, post_delayed_task)) return false; @@ -136,6 +151,12 @@ bool CefTaskRunnerCToCpp::PostDelayedTask(CefRefPtr task, CefTaskRunnerCToCpp::CefTaskRunnerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTaskRunnerCToCpp::~CefTaskRunnerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_task_runner_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/task_runner_ctocpp.h b/libcef_dll/ctocpp/task_runner_ctocpp.h index 2598f41b0..f1e81a452 100644 --- a/libcef_dll/ctocpp/task_runner_ctocpp.h +++ b/libcef_dll/ctocpp/task_runner_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=62845b31727d7aaa09b12314d898723aead66a0c$ +// $hash=629b07ed292651bd4226b5e98a420f0da7a28874$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TASK_RUNNER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefTaskRunnerCToCpp : public CefCToCppRefCounted { public: CefTaskRunnerCToCpp(); + virtual ~CefTaskRunnerCToCpp(); // CefTaskRunner methods. bool IsSame(CefRefPtr that) OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ctocpp.cc index 538ce423b..12d7c7701 100644 --- a/libcef_dll/ctocpp/test/translator_test_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cf21f8b6dbe96ad316d77e6290c37937eee574a8$ +// $hash=685b7f49ef2b4088a00e739450c26b05f73d6fbb$ // #include "libcef_dll/ctocpp/test/translator_test_ctocpp.h" @@ -22,12 +22,15 @@ #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefTranslatorTest::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -40,6 +43,8 @@ CefRefPtr CefTranslatorTest::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefTranslatorTestCToCpp::GetVoid() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_void)) return; @@ -51,6 +56,8 @@ NO_SANITIZE("cfi-icall") void CefTranslatorTestCToCpp::GetVoid() { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetBool() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bool)) return false; @@ -65,6 +72,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetBool() { } NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::GetInt() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int)) return 0; @@ -79,6 +88,8 @@ NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::GetInt() { } NO_SANITIZE("cfi-icall") double CefTranslatorTestCToCpp::GetDouble() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_double)) return 0; @@ -93,6 +104,8 @@ NO_SANITIZE("cfi-icall") double CefTranslatorTestCToCpp::GetDouble() { } NO_SANITIZE("cfi-icall") long CefTranslatorTestCToCpp::GetLong() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_long)) return 0; @@ -107,6 +120,8 @@ NO_SANITIZE("cfi-icall") long CefTranslatorTestCToCpp::GetLong() { } NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetSizet() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_sizet)) return 0; @@ -121,6 +136,8 @@ NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetSizet() { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetVoid() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_void)) return false; @@ -135,6 +152,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetVoid() { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetBool(bool val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_bool)) return false; @@ -149,6 +168,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetBool(bool val) { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetInt(int val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_int)) return false; @@ -163,6 +184,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetInt(int val) { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetDouble(double val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_double)) return false; @@ -177,6 +200,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetDouble(double val) { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetLong(long val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_long)) return false; @@ -191,6 +216,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetLong(long val) { } NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetSizet(size_t val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_sizet)) return false; @@ -206,6 +233,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetSizet(size_t val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetIntList(const std::vector& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_int_list)) return false; @@ -238,6 +267,8 @@ bool CefTranslatorTestCToCpp::SetIntList(const std::vector& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetIntListByRef(IntList& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int_list_by_ref)) return false; @@ -278,6 +309,8 @@ bool CefTranslatorTestCToCpp::GetIntListByRef(IntList& val) { } NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetIntListSize() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int_list_size)) return 0; @@ -292,6 +325,8 @@ NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetIntListSize() { } NO_SANITIZE("cfi-icall") CefString CefTranslatorTestCToCpp::GetString() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string)) return CefString(); @@ -309,6 +344,8 @@ NO_SANITIZE("cfi-icall") CefString CefTranslatorTestCToCpp::GetString() { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetString(const CefString& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string)) return false; @@ -329,6 +366,8 @@ bool CefTranslatorTestCToCpp::SetString(const CefString& val) { NO_SANITIZE("cfi-icall") void CefTranslatorTestCToCpp::GetStringByRef(CefString& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string_by_ref)) return; @@ -341,6 +380,8 @@ void CefTranslatorTestCToCpp::GetStringByRef(CefString& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetStringList(const std::vector& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string_list)) return false; @@ -366,6 +407,8 @@ bool CefTranslatorTestCToCpp::SetStringList(const std::vector& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetStringListByRef(StringList& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string_list_by_ref)) return false; @@ -394,6 +437,8 @@ bool CefTranslatorTestCToCpp::GetStringListByRef(StringList& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetStringMap(const StringMap& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string_map)) return false; @@ -420,6 +465,8 @@ bool CefTranslatorTestCToCpp::SetStringMap(const StringMap& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetStringMapByRef( std::map& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string_map_by_ref)) return false; @@ -449,6 +496,8 @@ bool CefTranslatorTestCToCpp::GetStringMapByRef( NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetStringMultimap( const std::multimap& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string_multimap)) return false; @@ -474,6 +523,8 @@ bool CefTranslatorTestCToCpp::SetStringMultimap( NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetStringMultimapByRef(StringMultimap& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string_multimap_by_ref)) return false; @@ -501,6 +552,8 @@ bool CefTranslatorTestCToCpp::GetStringMultimapByRef(StringMultimap& val) { } NO_SANITIZE("cfi-icall") CefPoint CefTranslatorTestCToCpp::GetPoint() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_point)) return CefPoint(); @@ -516,6 +569,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefTranslatorTestCToCpp::GetPoint() { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetPoint(const CefPoint& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_point)) return false; @@ -531,6 +586,8 @@ bool CefTranslatorTestCToCpp::SetPoint(const CefPoint& val) { NO_SANITIZE("cfi-icall") void CefTranslatorTestCToCpp::GetPointByRef(CefPoint& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_point_by_ref)) return; @@ -543,6 +600,8 @@ void CefTranslatorTestCToCpp::GetPointByRef(CefPoint& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetPointList(const std::vector& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_point_list)) return false; @@ -575,6 +634,8 @@ bool CefTranslatorTestCToCpp::SetPointList(const std::vector& val) { NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetPointListByRef(PointList& val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_point_list_by_ref)) return false; @@ -615,6 +676,8 @@ bool CefTranslatorTestCToCpp::GetPointListByRef(PointList& val) { } NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetPointListSize() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_point_list_size)) return 0; @@ -629,8 +692,10 @@ NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetPointListSize() { } NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestCToCpp:: - GetRefPtrLibrary(int val) { +CefRefPtr +CefTranslatorTestCToCpp::GetRefPtrLibrary(int val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library)) return NULL; @@ -648,6 +713,8 @@ CefRefPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetRefPtrLibrary( CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library)) return 0; @@ -668,8 +735,11 @@ int CefTranslatorTestCToCpp::SetRefPtrLibrary( } NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestCToCpp:: - SetRefPtrLibraryAndReturn(CefRefPtr val) { +CefRefPtr +CefTranslatorTestCToCpp::SetRefPtrLibraryAndReturn( + CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library_and_return)) return NULL; @@ -693,6 +763,8 @@ CefRefPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildRefPtrLibrary( CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_library)) return 0; @@ -713,9 +785,11 @@ int CefTranslatorTestCToCpp::SetChildRefPtrLibrary( } NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestCToCpp:: - SetChildRefPtrLibraryAndReturnParent( - CefRefPtr val) { +CefRefPtr +CefTranslatorTestCToCpp::SetChildRefPtrLibraryAndReturnParent( + CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_library_and_return_parent)) return NULL; @@ -741,6 +815,8 @@ bool CefTranslatorTestCToCpp::SetRefPtrLibraryList( const std::vector>& val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library_list)) return false; @@ -776,6 +852,8 @@ NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetRefPtrLibraryListByRef(RefPtrLibraryList& val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library_list_by_ref)) return false; @@ -819,6 +897,8 @@ bool CefTranslatorTestCToCpp::GetRefPtrLibraryListByRef(RefPtrLibraryList& val, NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetRefPtrLibraryListSize() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library_list_size)) return 0; @@ -835,6 +915,8 @@ size_t CefTranslatorTestCToCpp::GetRefPtrLibraryListSize() { NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetRefPtrClient( CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client)) return 0; @@ -855,8 +937,11 @@ int CefTranslatorTestCToCpp::SetRefPtrClient( } NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestCToCpp:: - SetRefPtrClientAndReturn(CefRefPtr val) { +CefRefPtr +CefTranslatorTestCToCpp::SetRefPtrClientAndReturn( + CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client_and_return)) return NULL; @@ -880,6 +965,8 @@ CefRefPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildRefPtrClient( CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_client)) return 0; @@ -900,9 +987,11 @@ int CefTranslatorTestCToCpp::SetChildRefPtrClient( } NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestCToCpp:: - SetChildRefPtrClientAndReturnParent( - CefRefPtr val) { +CefRefPtr +CefTranslatorTestCToCpp::SetChildRefPtrClientAndReturnParent( + CefRefPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_client_and_return_parent)) return NULL; @@ -928,6 +1017,8 @@ bool CefTranslatorTestCToCpp::SetRefPtrClientList( const std::vector>& val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client_list)) return false; @@ -964,6 +1055,8 @@ bool CefTranslatorTestCToCpp::GetRefPtrClientListByRef( RefPtrClientList& val, CefRefPtr val1, CefRefPtr val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_client_list_by_ref)) return false; @@ -1018,6 +1111,8 @@ bool CefTranslatorTestCToCpp::GetRefPtrClientListByRef( NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetRefPtrClientListSize() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_client_list_size)) return 0; @@ -1032,8 +1127,10 @@ size_t CefTranslatorTestCToCpp::GetRefPtrClientListSize() { } NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestCToCpp:: - GetOwnPtrLibrary(int val) { +CefOwnPtr +CefTranslatorTestCToCpp::GetOwnPtrLibrary(int val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_own_ptr_library)) return CefOwnPtr(); @@ -1051,6 +1148,8 @@ CefOwnPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetOwnPtrLibrary( CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_own_ptr_library)) return 0; @@ -1071,8 +1170,11 @@ int CefTranslatorTestCToCpp::SetOwnPtrLibrary( } NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestCToCpp:: - SetOwnPtrLibraryAndReturn(CefOwnPtr val) { +CefOwnPtr +CefTranslatorTestCToCpp::SetOwnPtrLibraryAndReturn( + CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_own_ptr_library_and_return)) return CefOwnPtr(); @@ -1097,6 +1199,8 @@ CefOwnPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildOwnPtrLibrary( CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_library)) return 0; @@ -1118,9 +1222,11 @@ int CefTranslatorTestCToCpp::SetChildOwnPtrLibrary( } NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestCToCpp:: - SetChildOwnPtrLibraryAndReturnParent( - CefOwnPtr val) { +CefOwnPtr +CefTranslatorTestCToCpp::SetChildOwnPtrLibraryAndReturnParent( + CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_library_and_return_parent)) return CefOwnPtr(); @@ -1145,6 +1251,8 @@ CefOwnPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetOwnPtrClient( CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_own_ptr_client)) return 0; @@ -1165,8 +1273,11 @@ int CefTranslatorTestCToCpp::SetOwnPtrClient( } NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestCToCpp:: - SetOwnPtrClientAndReturn(CefOwnPtr val) { +CefOwnPtr +CefTranslatorTestCToCpp::SetOwnPtrClientAndReturn( + CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_own_ptr_client_and_return)) return CefOwnPtr(); @@ -1190,6 +1301,8 @@ CefOwnPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildOwnPtrClient( CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_client)) return 0; @@ -1211,9 +1324,11 @@ int CefTranslatorTestCToCpp::SetChildOwnPtrClient( } NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestCToCpp:: - SetChildOwnPtrClientAndReturnParent( - CefOwnPtr val) { +CefOwnPtr +CefTranslatorTestCToCpp::SetChildOwnPtrClientAndReturnParent( + CefOwnPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_client_and_return_parent)) return CefOwnPtr(); @@ -1238,6 +1353,8 @@ CefOwnPtr CefTranslatorTestCToCpp:: NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetRawPtrLibrary( CefRawPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_library)) return 0; @@ -1260,6 +1377,8 @@ int CefTranslatorTestCToCpp::SetRawPtrLibrary( NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildRawPtrLibrary( CefRawPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_raw_ptr_library)) return 0; @@ -1284,6 +1403,8 @@ bool CefTranslatorTestCToCpp::SetRawPtrLibraryList( const std::vector>& val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_library_list)) return false; @@ -1318,6 +1439,8 @@ bool CefTranslatorTestCToCpp::SetRawPtrLibraryList( NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetRawPtrClient( CefRawPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_client)) return 0; @@ -1343,6 +1466,8 @@ int CefTranslatorTestCToCpp::SetRawPtrClient( NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::SetChildRawPtrClient( CefRawPtr val) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_child_raw_ptr_client)) return 0; @@ -1370,6 +1495,8 @@ bool CefTranslatorTestCToCpp::SetRawPtrClientList( const std::vector>& val, int val1, int val2) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_client_list)) return false; @@ -1412,6 +1539,12 @@ bool CefTranslatorTestCToCpp::SetRawPtrClientList( CefTranslatorTestCToCpp::CefTranslatorTestCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestCToCpp::~CefTranslatorTestCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_t* CefCToCppRefCounted< CefTranslatorTestCToCpp, diff --git a/libcef_dll/ctocpp/test/translator_test_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_ctocpp.h index 7a9129646..ba19b0dd0 100644 --- a/libcef_dll/ctocpp/test/translator_test_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=15ca717a0543e9779ac3bb38e280a6b4d7fd7b28$ +// $hash=809440906ef69e6b95fa7271449ba353948b368b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefTranslatorTestCToCpp cef_translator_test_t> { public: CefTranslatorTestCToCpp(); + virtual ~CefTranslatorTestCToCpp(); // CefTranslatorTest methods. void GetVoid() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.cc index 0607cd196..5a5ccdb9c 100644 --- a/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ccf057f59143c8d801da426b54063745c9946a24$ +// $hash=db82cc3707fcd49f569426adab05792f61150fed$ // #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrClientChildCToCpp::GetOtherValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_client_child_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_other_value)) return 0; @@ -33,6 +36,8 @@ int CefTranslatorTestRefPtrClientChildCToCpp::GetOtherValue() { NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrClientChildCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_client_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_value)) @@ -52,6 +57,13 @@ int CefTranslatorTestRefPtrClientChildCToCpp::GetValue() { CefTranslatorTestRefPtrClientChildCToCpp:: CefTranslatorTestRefPtrClientChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrClientChildCToCpp:: + ~CefTranslatorTestRefPtrClientChildCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_ref_ptr_client_child_t* CefCToCppRefCounted { public: CefTranslatorTestRefPtrClientChildCToCpp(); + virtual ~CefTranslatorTestRefPtrClientChildCToCpp(); // CefTranslatorTestRefPtrClientChild methods. int GetOtherValue() override; diff --git a/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.cc index bc777d5c4..7f903a12d 100644 --- a/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f1850e566a29fb39cb8cef656235564f965fd19d$ +// $hash=62db5b865590f2242bea5ff7b5ec26c5730b9cd9$ // #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrClientCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return 0; @@ -35,6 +38,12 @@ NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrClientCToCpp::GetValue() { CefTranslatorTestRefPtrClientCToCpp::CefTranslatorTestRefPtrClientCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrClientCToCpp::~CefTranslatorTestRefPtrClientCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_ref_ptr_client_t* CefCToCppRefCounted { public: CefTranslatorTestRefPtrClientCToCpp(); + virtual ~CefTranslatorTestRefPtrClientCToCpp(); // CefTranslatorTestRefPtrClient methods. int GetValue() override; diff --git a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.cc index 5c72f4f7f..a045080d5 100644 --- a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.cc @@ -9,17 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b89f429f6503d81608673a4ca0678030418146ff$ +// $hash=7b3b9b84c2e98ecf06f6c44b67ffa691b108d8f7$ // #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefRefPtr< - CefTranslatorTestRefPtrLibraryChildChild> CefTranslatorTestRefPtrLibraryChildChild:: - Create(int value, int other_value, int other_other_value) { +CefRefPtr +CefTranslatorTestRefPtrLibraryChildChild::Create(int value, + int other_value, + int other_other_value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -35,6 +39,8 @@ CefRefPtr< NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherOtherValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_child_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_other_other_value)) return 0; @@ -51,6 +57,8 @@ int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherOtherValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherOtherValue( int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_child_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_other_other_value)) return; @@ -63,6 +71,8 @@ void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherOtherValue( NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_t* _struct = reinterpret_cast( GetStruct()); @@ -80,6 +90,8 @@ int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherValue(int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_t* _struct = reinterpret_cast( GetStruct()); @@ -94,6 +106,8 @@ void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherValue(int value) { NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_value)) @@ -110,6 +124,8 @@ int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetValue(int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_value)) @@ -126,6 +142,13 @@ void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetValue(int value) { CefTranslatorTestRefPtrLibraryChildChildCToCpp:: CefTranslatorTestRefPtrLibraryChildChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryChildChildCToCpp:: + ~CefTranslatorTestRefPtrLibraryChildChildCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_ref_ptr_library_child_child_t* CefCToCppRefCounted { public: CefTranslatorTestRefPtrLibraryChildChildCToCpp(); + virtual ~CefTranslatorTestRefPtrLibraryChildChildCToCpp(); // CefTranslatorTestRefPtrLibraryChildChild methods. int GetOtherOtherValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.cc index ee1ca64ac..324798673 100644 --- a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.cc @@ -9,18 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8e84654b0f8ed2388392637114e95988af23f6e0$ +// $hash=a22f1d50f0b94e1de8c6fd12842d2849cd10706f$ // #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefRefPtr< - CefTranslatorTestRefPtrLibraryChild> CefTranslatorTestRefPtrLibraryChild:: - Create(int value, int other_value) { +CefRefPtr +CefTranslatorTestRefPtrLibraryChild::Create(int value, int other_value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -35,6 +37,8 @@ CefRefPtr< NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryChildCToCpp::GetOtherValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_other_value)) return 0; @@ -50,6 +54,8 @@ int CefTranslatorTestRefPtrLibraryChildCToCpp::GetOtherValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryChildCToCpp::SetOtherValue(int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_child_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_other_value)) return; @@ -62,6 +68,8 @@ void CefTranslatorTestRefPtrLibraryChildCToCpp::SetOtherValue(int value) { NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryChildCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_value)) @@ -78,6 +86,8 @@ int CefTranslatorTestRefPtrLibraryChildCToCpp::GetValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryChildCToCpp::SetValue(int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_value)) @@ -94,6 +104,13 @@ void CefTranslatorTestRefPtrLibraryChildCToCpp::SetValue(int value) { CefTranslatorTestRefPtrLibraryChildCToCpp:: CefTranslatorTestRefPtrLibraryChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryChildCToCpp:: + ~CefTranslatorTestRefPtrLibraryChildCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_ref_ptr_library_child_t* CefCToCppRefCounted { public: CefTranslatorTestRefPtrLibraryChildCToCpp(); + virtual ~CefTranslatorTestRefPtrLibraryChildCToCpp(); // CefTranslatorTestRefPtrLibraryChild methods. int GetOtherValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc index f0fa27f21..7702253b8 100644 --- a/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c2de43f5e8d586dbb6c8635d814241af93cf0039$ +// $hash=b89880c1956f0d37f8770f0ef9abb8ec3c517720$ // #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefRefPtr CefTranslatorTestRefPtrLibrary:: - Create(int value) { +CefRefPtr +CefTranslatorTestRefPtrLibrary::Create(int value) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -34,6 +37,8 @@ CefRefPtr CefTranslatorTestRefPtrLibrary:: // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return 0; @@ -49,6 +54,8 @@ NO_SANITIZE("cfi-icall") int CefTranslatorTestRefPtrLibraryCToCpp::GetValue() { NO_SANITIZE("cfi-icall") void CefTranslatorTestRefPtrLibraryCToCpp::SetValue(int value) { + shutdown_checker::AssertNotShutdown(); + cef_translator_test_ref_ptr_library_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_value)) return; @@ -63,6 +70,12 @@ void CefTranslatorTestRefPtrLibraryCToCpp::SetValue(int value) { CefTranslatorTestRefPtrLibraryCToCpp::CefTranslatorTestRefPtrLibraryCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestRefPtrLibraryCToCpp::~CefTranslatorTestRefPtrLibraryCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_translator_test_ref_ptr_library_t* CefCToCppRefCounted { public: CefTranslatorTestRefPtrLibraryCToCpp(); + virtual ~CefTranslatorTestRefPtrLibraryCToCpp(); // CefTranslatorTestRefPtrLibrary methods. int GetValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.cc index dc912ca76..6cca2918e 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cfa77d128bcd4fec72160579243859b9a034366e$ +// $hash=f53dbe9257dcb58c5a00b166cb6db4a2545d32fb$ // #include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h" @@ -52,6 +52,11 @@ int CefTranslatorTestScopedClientChildCToCpp::GetValue() { CefTranslatorTestScopedClientChildCToCpp:: CefTranslatorTestScopedClientChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedClientChildCToCpp:: + ~CefTranslatorTestScopedClientChildCToCpp() {} + template <> cef_translator_test_scoped_client_child_t* CefCToCppScoped { public: CefTranslatorTestScopedClientChildCToCpp(); + virtual ~CefTranslatorTestScopedClientChildCToCpp(); // CefTranslatorTestScopedClientChild methods. int GetOtherValue() override; diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.cc index fa322133a..25bb05b1b 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=093f66d058984e4c97894ecb674843a18524fda2$ +// $hash=337daf51d9b692a9ae1c5690311d7784b05abecc$ // #include "libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h" @@ -35,6 +35,10 @@ NO_SANITIZE("cfi-icall") int CefTranslatorTestScopedClientCToCpp::GetValue() { CefTranslatorTestScopedClientCToCpp::CefTranslatorTestScopedClientCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedClientCToCpp::~CefTranslatorTestScopedClientCToCpp() {} + template <> cef_translator_test_scoped_client_t* CefCToCppScoped { public: CefTranslatorTestScopedClientCToCpp(); + virtual ~CefTranslatorTestScopedClientCToCpp(); // CefTranslatorTestScopedClient methods. int GetValue() override; diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc index 016e34d90..b0b60a7ec 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=74b6c55fa44e614563a38cd893840bdc1cf33c42$ +// $hash=8a16c05d3990d9719455b92eaa3ddfbc9737fb83$ // #include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h" @@ -17,9 +17,10 @@ // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefOwnPtr< - CefTranslatorTestScopedLibraryChildChild> CefTranslatorTestScopedLibraryChildChild:: - Create(int value, int other_value, int other_other_value) { +CefOwnPtr +CefTranslatorTestScopedLibraryChildChild::Create(int value, + int other_value, + int other_other_value) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -126,6 +127,11 @@ void CefTranslatorTestScopedLibraryChildChildCToCpp::SetValue(int value) { CefTranslatorTestScopedLibraryChildChildCToCpp:: CefTranslatorTestScopedLibraryChildChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryChildChildCToCpp:: + ~CefTranslatorTestScopedLibraryChildChildCToCpp() {} + template <> cef_translator_test_scoped_library_child_child_t* CefCToCppScoped { public: CefTranslatorTestScopedLibraryChildChildCToCpp(); + virtual ~CefTranslatorTestScopedLibraryChildChildCToCpp(); // CefTranslatorTestScopedLibraryChildChild methods. int GetOtherOtherValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc index f34e52cbb..2b9194f1c 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=621d3cb47ff1522d4df263d6f9c63fa8bdfb51f7$ +// $hash=3710964ee91febb36938956d5d5e23ba0d4a686b$ // #include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h" @@ -18,9 +18,8 @@ // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefOwnPtr< - CefTranslatorTestScopedLibraryChild> CefTranslatorTestScopedLibraryChild:: - Create(int value, int other_value) { +CefOwnPtr +CefTranslatorTestScopedLibraryChild::Create(int value, int other_value) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -94,6 +93,11 @@ void CefTranslatorTestScopedLibraryChildCToCpp::SetValue(int value) { CefTranslatorTestScopedLibraryChildCToCpp:: CefTranslatorTestScopedLibraryChildCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryChildCToCpp:: + ~CefTranslatorTestScopedLibraryChildCToCpp() {} + template <> cef_translator_test_scoped_library_child_t* CefCToCppScoped { public: CefTranslatorTestScopedLibraryChildCToCpp(); + virtual ~CefTranslatorTestScopedLibraryChildCToCpp(); // CefTranslatorTestScopedLibraryChild methods. int GetOtherValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.cc b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.cc index c78d1d9f7..d996efd30 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.cc +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=490d23f7d9acf2de28ebeb000524fafcad1d989c$ +// $hash=b3759a9411274c6d9c2a9ccc113fe409547747a9$ // #include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h" @@ -19,8 +19,8 @@ // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") -CefOwnPtr CefTranslatorTestScopedLibrary:: - Create(int value) { +CefOwnPtr +CefTranslatorTestScopedLibrary::Create(int value) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -63,6 +63,10 @@ void CefTranslatorTestScopedLibraryCToCpp::SetValue(int value) { CefTranslatorTestScopedLibraryCToCpp::CefTranslatorTestScopedLibraryCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTranslatorTestScopedLibraryCToCpp::~CefTranslatorTestScopedLibraryCToCpp() {} + template <> cef_translator_test_scoped_library_t* CefCToCppScoped { public: CefTranslatorTestScopedLibraryCToCpp(); + virtual ~CefTranslatorTestScopedLibraryCToCpp(); // CefTranslatorTestScopedLibrary methods. int GetValue() OVERRIDE; diff --git a/libcef_dll/ctocpp/thread_ctocpp.cc b/libcef_dll/ctocpp/thread_ctocpp.cc index ad4861da7..eb166aa2a 100644 --- a/libcef_dll/ctocpp/thread_ctocpp.cc +++ b/libcef_dll/ctocpp/thread_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a5f0b19bb86eb3dd73b290d0dbf80c5f0717aa27$ +// $hash=62c442a9d509a5fb044f72db699e7a0eb68cc856$ // #include "libcef_dll/ctocpp/thread_ctocpp.h" #include "libcef_dll/ctocpp/task_runner_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -24,6 +25,8 @@ CefRefPtr CefThread::CreateThread( cef_message_loop_type_t message_loop_type, bool stoppable, cef_com_init_mode_t com_init_mode) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: display_name @@ -41,6 +44,8 @@ CefRefPtr CefThread::CreateThread( NO_SANITIZE("cfi-icall") CefRefPtr CefThreadCToCpp::GetTaskRunner() { + shutdown_checker::AssertNotShutdown(); + cef_thread_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_task_runner)) return NULL; @@ -56,6 +61,8 @@ CefRefPtr CefThreadCToCpp::GetTaskRunner() { NO_SANITIZE("cfi-icall") cef_platform_thread_id_t CefThreadCToCpp::GetPlatformThreadId() { + shutdown_checker::AssertNotShutdown(); + cef_thread_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_platform_thread_id)) return kInvalidPlatformThreadId; @@ -70,6 +77,8 @@ cef_platform_thread_id_t CefThreadCToCpp::GetPlatformThreadId() { } NO_SANITIZE("cfi-icall") void CefThreadCToCpp::Stop() { + shutdown_checker::AssertNotShutdown(); + cef_thread_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, stop)) return; @@ -81,6 +90,8 @@ NO_SANITIZE("cfi-icall") void CefThreadCToCpp::Stop() { } NO_SANITIZE("cfi-icall") bool CefThreadCToCpp::IsRunning() { + shutdown_checker::AssertNotShutdown(); + cef_thread_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_running)) return false; @@ -98,6 +109,12 @@ NO_SANITIZE("cfi-icall") bool CefThreadCToCpp::IsRunning() { CefThreadCToCpp::CefThreadCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefThreadCToCpp::~CefThreadCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_thread_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/thread_ctocpp.h b/libcef_dll/ctocpp/thread_ctocpp.h index 5668fa0c7..07e011819 100644 --- a/libcef_dll/ctocpp/thread_ctocpp.h +++ b/libcef_dll/ctocpp/thread_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6bdbfe239243cdbd51217bca1e17a103bbee6300$ +// $hash=8fc049139785b1d13e944d3a50eed9bc70537edf$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_THREAD_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefThreadCToCpp : public CefCToCppRefCounted { public: CefThreadCToCpp(); + virtual ~CefThreadCToCpp(); // CefThread methods. CefRefPtr GetTaskRunner() OVERRIDE; diff --git a/libcef_dll/ctocpp/urlrequest_client_ctocpp.cc b/libcef_dll/ctocpp/urlrequest_client_ctocpp.cc index 0b6466a7a..910dcf5a5 100644 --- a/libcef_dll/ctocpp/urlrequest_client_ctocpp.cc +++ b/libcef_dll/ctocpp/urlrequest_client_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=89e33c2a6451beb23b49e36c938e498df558b8b9$ +// $hash=1e2d5a383bb11a734d6c6d9b5297270cc69e388f$ // #include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h" #include "libcef_dll/cpptoc/auth_callback_cpptoc.h" #include "libcef_dll/cpptoc/urlrequest_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefURLRequestClientCToCpp::OnRequestComplete( CefRefPtr request) { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_request_complete)) return; @@ -41,6 +44,8 @@ void CefURLRequestClientCToCpp::OnUploadProgress( CefRefPtr request, int64 current, int64 total) { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_upload_progress)) return; @@ -62,6 +67,8 @@ void CefURLRequestClientCToCpp::OnDownloadProgress( CefRefPtr request, int64 current, int64 total) { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_download_progress)) return; @@ -82,6 +89,8 @@ NO_SANITIZE("cfi-icall") void CefURLRequestClientCToCpp::OnDownloadData(CefRefPtr request, const void* data, size_t data_length) { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_download_data)) return; @@ -110,6 +119,8 @@ bool CefURLRequestClientCToCpp::GetAuthCredentials( const CefString& realm, const CefString& scheme, CefRefPtr callback) { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_client_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_auth_credentials)) return false; @@ -143,6 +154,12 @@ bool CefURLRequestClientCToCpp::GetAuthCredentials( CefURLRequestClientCToCpp::CefURLRequestClientCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefURLRequestClientCToCpp::~CefURLRequestClientCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_urlrequest_client_t* CefCToCppRefCounted< CefURLRequestClientCToCpp, diff --git a/libcef_dll/ctocpp/urlrequest_client_ctocpp.h b/libcef_dll/ctocpp/urlrequest_client_ctocpp.h index eb5352ed2..69a521683 100644 --- a/libcef_dll/ctocpp/urlrequest_client_ctocpp.h +++ b/libcef_dll/ctocpp/urlrequest_client_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=101fb8b9e02d23a7ca1b1d19fcf098b08240c3df$ +// $hash=0f1c052a56070b32dfa23274c0c2f03dabc9173f$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CLIENT_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefURLRequestClientCToCpp cef_urlrequest_client_t> { public: CefURLRequestClientCToCpp(); + virtual ~CefURLRequestClientCToCpp(); // CefURLRequestClient methods. void OnRequestComplete(CefRefPtr request) override; diff --git a/libcef_dll/ctocpp/urlrequest_ctocpp.cc b/libcef_dll/ctocpp/urlrequest_ctocpp.cc index ae7331cd5..780c5a272 100644 --- a/libcef_dll/ctocpp/urlrequest_ctocpp.cc +++ b/libcef_dll/ctocpp/urlrequest_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=cbb1645e96b0f389861ab2d00e2af9931ea416c2$ +// $hash=7d53a3bdc110ca8c61f359f1a57526569f4ce6db$ // #include "libcef_dll/ctocpp/urlrequest_ctocpp.h" @@ -17,6 +17,7 @@ #include "libcef_dll/ctocpp/request_context_ctocpp.h" #include "libcef_dll/ctocpp/request_ctocpp.h" #include "libcef_dll/ctocpp/response_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -25,6 +26,8 @@ CefRefPtr CefURLRequest::Create( CefRefPtr request, CefRefPtr client, CefRefPtr request_context) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: request; type: refptr_same @@ -51,6 +54,8 @@ CefRefPtr CefURLRequest::Create( NO_SANITIZE("cfi-icall") CefRefPtr CefURLRequestCToCpp::GetRequest() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_request)) return NULL; @@ -66,6 +71,8 @@ CefRefPtr CefURLRequestCToCpp::GetRequest() { NO_SANITIZE("cfi-icall") CefRefPtr CefURLRequestCToCpp::GetClient() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_client)) return NULL; @@ -81,6 +88,8 @@ CefRefPtr CefURLRequestCToCpp::GetClient() { NO_SANITIZE("cfi-icall") CefURLRequest::Status CefURLRequestCToCpp::GetRequestStatus() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_request_status)) return UR_UNKNOWN; @@ -96,6 +105,8 @@ CefURLRequest::Status CefURLRequestCToCpp::GetRequestStatus() { NO_SANITIZE("cfi-icall") CefURLRequest::ErrorCode CefURLRequestCToCpp::GetRequestError() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_request_error)) return ERR_NONE; @@ -111,6 +122,8 @@ CefURLRequest::ErrorCode CefURLRequestCToCpp::GetRequestError() { NO_SANITIZE("cfi-icall") CefRefPtr CefURLRequestCToCpp::GetResponse() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_response)) return NULL; @@ -125,6 +138,8 @@ CefRefPtr CefURLRequestCToCpp::GetResponse() { } NO_SANITIZE("cfi-icall") bool CefURLRequestCToCpp::ResponseWasCached() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, response_was_cached)) return false; @@ -139,6 +154,8 @@ NO_SANITIZE("cfi-icall") bool CefURLRequestCToCpp::ResponseWasCached() { } NO_SANITIZE("cfi-icall") void CefURLRequestCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + cef_urlrequest_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel)) return; @@ -153,6 +170,12 @@ NO_SANITIZE("cfi-icall") void CefURLRequestCToCpp::Cancel() { CefURLRequestCToCpp::CefURLRequestCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefURLRequestCToCpp::~CefURLRequestCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_urlrequest_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/urlrequest_ctocpp.h b/libcef_dll/ctocpp/urlrequest_ctocpp.h index 22415455c..e5c6d437f 100644 --- a/libcef_dll/ctocpp/urlrequest_ctocpp.h +++ b/libcef_dll/ctocpp/urlrequest_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bc9dff2ba2ebe8375a8dbacc56f363966692b190$ +// $hash=1be39ca2ec3320f959828149da332c8ffaf311d1$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_URLREQUEST_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefURLRequestCToCpp : public CefCToCppRefCounted { public: CefURLRequestCToCpp(); + virtual ~CefURLRequestCToCpp(); // CefURLRequest methods. CefRefPtr GetRequest() OVERRIDE; diff --git a/libcef_dll/ctocpp/v8accessor_ctocpp.cc b/libcef_dll/ctocpp/v8accessor_ctocpp.cc index 72619a783..90ce42edf 100644 --- a/libcef_dll/ctocpp/v8accessor_ctocpp.cc +++ b/libcef_dll/ctocpp/v8accessor_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=beae419588b1c5068e503301940230556491987c$ +// $hash=b27ffeffd0ee7daf113b3179e865a469e48a8810$ // #include "libcef_dll/ctocpp/v8accessor_ctocpp.h" @@ -98,6 +98,10 @@ bool CefV8AccessorCToCpp::Set(const CefString& name, CefV8AccessorCToCpp::CefV8AccessorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8AccessorCToCpp::~CefV8AccessorCToCpp() {} + template <> cef_v8accessor_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/v8accessor_ctocpp.h b/libcef_dll/ctocpp/v8accessor_ctocpp.h index dc6d9e915..733df46a3 100644 --- a/libcef_dll/ctocpp/v8accessor_ctocpp.h +++ b/libcef_dll/ctocpp/v8accessor_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0b773abc0bd785ae9acbbf9b39c5fab25bf30543$ +// $hash=1121a4846b9db54632899b5a1f37d5bf6fcb48d5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8ACCESSOR_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefV8AccessorCToCpp : public CefCToCppRefCounted { public: CefV8AccessorCToCpp(); + virtual ~CefV8AccessorCToCpp(); // CefV8Accessor methods. bool Get(const CefString& name, diff --git a/libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.cc b/libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.cc index 76e7348f6..12d119164 100644 --- a/libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5c8004f121da58d6e1eeb489323bc48bbc865305$ +// $hash=b75b8de681ae667e415fee498faa4a6bb74adc08$ // #include "libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.h" @@ -38,6 +38,11 @@ void CefV8ArrayBufferReleaseCallbackCToCpp::ReleaseBuffer(void* buffer) { CefV8ArrayBufferReleaseCallbackCToCpp::CefV8ArrayBufferReleaseCallbackCToCpp() { } +// DESTRUCTOR - Do not edit by hand. + +CefV8ArrayBufferReleaseCallbackCToCpp:: + ~CefV8ArrayBufferReleaseCallbackCToCpp() {} + template <> cef_v8array_buffer_release_callback_t* CefCToCppRefCounted { public: CefV8ArrayBufferReleaseCallbackCToCpp(); + virtual ~CefV8ArrayBufferReleaseCallbackCToCpp(); // CefV8ArrayBufferReleaseCallback methods. void ReleaseBuffer(void* buffer) override; diff --git a/libcef_dll/ctocpp/v8context_ctocpp.cc b/libcef_dll/ctocpp/v8context_ctocpp.cc index a757ec045..f19f8fa4a 100644 --- a/libcef_dll/ctocpp/v8context_ctocpp.cc +++ b/libcef_dll/ctocpp/v8context_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0231f57ce3cd74e7516a9ec0dd34584ac3064b4c$ +// $hash=86e28bebd3f230510195fb5677898ae3b2e96151$ // #include "libcef_dll/ctocpp/v8context_ctocpp.h" @@ -233,6 +233,10 @@ bool CefV8ContextCToCpp::Eval(const CefString& code, CefV8ContextCToCpp::CefV8ContextCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8ContextCToCpp::~CefV8ContextCToCpp() {} + template <> cef_v8context_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/v8context_ctocpp.h b/libcef_dll/ctocpp/v8context_ctocpp.h index 52a10def6..fe8263f64 100644 --- a/libcef_dll/ctocpp/v8context_ctocpp.h +++ b/libcef_dll/ctocpp/v8context_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b72bd1cba6b34f471bb678c04cf6d1978b2481eb$ +// $hash=b4d9ec1e74a0e91c058e662fbdad6a2678c42812$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefV8ContextCToCpp : public CefCToCppRefCounted { public: CefV8ContextCToCpp(); + virtual ~CefV8ContextCToCpp(); // CefV8Context methods. CefRefPtr GetTaskRunner() OVERRIDE; diff --git a/libcef_dll/ctocpp/v8exception_ctocpp.cc b/libcef_dll/ctocpp/v8exception_ctocpp.cc index 379f01267..c7423b9b7 100644 --- a/libcef_dll/ctocpp/v8exception_ctocpp.cc +++ b/libcef_dll/ctocpp/v8exception_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=400342415189c9fb509f144b0ed74e28419deb16$ +// $hash=7a602017eaee19b78e048ac1e80f7a7c235ffac9$ // #include "libcef_dll/ctocpp/v8exception_ctocpp.h" @@ -139,6 +139,10 @@ NO_SANITIZE("cfi-icall") int CefV8ExceptionCToCpp::GetEndColumn() { CefV8ExceptionCToCpp::CefV8ExceptionCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8ExceptionCToCpp::~CefV8ExceptionCToCpp() {} + template <> cef_v8exception_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/v8exception_ctocpp.h b/libcef_dll/ctocpp/v8exception_ctocpp.h index b9f987086..78d9adc0a 100644 --- a/libcef_dll/ctocpp/v8exception_ctocpp.h +++ b/libcef_dll/ctocpp/v8exception_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5c0720dbc9db9e9b5e11eedfaf6a35c7f0e602a$ +// $hash=6acc7cc1441d7aff945bbe23e57209808c167753$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefV8ExceptionCToCpp : public CefCToCppRefCounted { public: CefV8ExceptionCToCpp(); + virtual ~CefV8ExceptionCToCpp(); // CefV8Exception methods. CefString GetMessage() OVERRIDE; diff --git a/libcef_dll/ctocpp/v8handler_ctocpp.cc b/libcef_dll/ctocpp/v8handler_ctocpp.cc index 9acf4d743..5fd455ac9 100644 --- a/libcef_dll/ctocpp/v8handler_ctocpp.cc +++ b/libcef_dll/ctocpp/v8handler_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=64ec1b5ad0a46ef68026ba895976bcf8876d7016$ +// $hash=37a8d66e02899f11a6ed7b955aee537307597797$ // #include "libcef_dll/ctocpp/v8handler_ctocpp.h" @@ -81,6 +81,10 @@ bool CefV8HandlerCToCpp::Execute(const CefString& name, CefV8HandlerCToCpp::CefV8HandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8HandlerCToCpp::~CefV8HandlerCToCpp() {} + template <> cef_v8handler_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/v8handler_ctocpp.h b/libcef_dll/ctocpp/v8handler_ctocpp.h index ad965ecfb..72dd66b37 100644 --- a/libcef_dll/ctocpp/v8handler_ctocpp.h +++ b/libcef_dll/ctocpp/v8handler_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=943b8dbb31b353cfd3626446d7dc0e2b67a2df36$ +// $hash=4d5a4cdce38ba9fe3f54fce1c0656dbc0c7401b5$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8HANDLER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefV8HandlerCToCpp : public CefCToCppRefCounted { public: CefV8HandlerCToCpp(); + virtual ~CefV8HandlerCToCpp(); // CefV8Handler methods. bool Execute(const CefString& name, diff --git a/libcef_dll/ctocpp/v8interceptor_ctocpp.cc b/libcef_dll/ctocpp/v8interceptor_ctocpp.cc index 0720041d2..8a48bdab1 100644 --- a/libcef_dll/ctocpp/v8interceptor_ctocpp.cc +++ b/libcef_dll/ctocpp/v8interceptor_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6e4162e6007e804890bf7606bb332367740e5b68$ +// $hash=bc691b460680cb230a5b8a13a1a4f9d6afa1d0aa$ // #include "libcef_dll/ctocpp/v8interceptor_ctocpp.h" @@ -175,6 +175,10 @@ bool CefV8InterceptorCToCpp::Set(int index, CefV8InterceptorCToCpp::CefV8InterceptorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8InterceptorCToCpp::~CefV8InterceptorCToCpp() {} + template <> cef_v8interceptor_t* CefCToCppRefCounted { public: CefV8InterceptorCToCpp(); + virtual ~CefV8InterceptorCToCpp(); // CefV8Interceptor methods. bool Get(const CefString& name, diff --git a/libcef_dll/ctocpp/v8stack_frame_ctocpp.cc b/libcef_dll/ctocpp/v8stack_frame_ctocpp.cc index 5390eecd8..b9dd76638 100644 --- a/libcef_dll/ctocpp/v8stack_frame_ctocpp.cc +++ b/libcef_dll/ctocpp/v8stack_frame_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f42212334c625272aa1650179293a6d0fdacc307$ +// $hash=34357b331204e4b652bcb550da777fb1d7a1f694$ // #include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h" @@ -140,6 +140,10 @@ NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsConstructor() { CefV8StackFrameCToCpp::CefV8StackFrameCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8StackFrameCToCpp::~CefV8StackFrameCToCpp() {} + template <> cef_v8stack_frame_t* CefCToCppRefCounted { public: CefV8StackFrameCToCpp(); + virtual ~CefV8StackFrameCToCpp(); // CefV8StackFrame methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/v8stack_trace_ctocpp.cc b/libcef_dll/ctocpp/v8stack_trace_ctocpp.cc index bab50eee8..946d24ee3 100644 --- a/libcef_dll/ctocpp/v8stack_trace_ctocpp.cc +++ b/libcef_dll/ctocpp/v8stack_trace_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=5d50ba68a4b4dd379a7739f4ab0cad69cbaba657$ +// $hash=a09bd43deaabfddb25d3ddb325e301727c1e84b6$ // #include "libcef_dll/ctocpp/v8stack_trace_ctocpp.h" #include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefV8StackTrace::GetCurrent(int frame_limit) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -31,6 +34,8 @@ CefRefPtr CefV8StackTrace::GetCurrent(int frame_limit) { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefV8StackTraceCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_v8stack_trace_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -45,6 +50,8 @@ NO_SANITIZE("cfi-icall") bool CefV8StackTraceCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") int CefV8StackTraceCToCpp::GetFrameCount() { + shutdown_checker::AssertNotShutdown(); + cef_v8stack_trace_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame_count)) return 0; @@ -60,6 +67,8 @@ NO_SANITIZE("cfi-icall") int CefV8StackTraceCToCpp::GetFrameCount() { NO_SANITIZE("cfi-icall") CefRefPtr CefV8StackTraceCToCpp::GetFrame(int index) { + shutdown_checker::AssertNotShutdown(); + cef_v8stack_trace_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_frame)) return NULL; @@ -77,6 +86,12 @@ CefRefPtr CefV8StackTraceCToCpp::GetFrame(int index) { CefV8StackTraceCToCpp::CefV8StackTraceCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8StackTraceCToCpp::~CefV8StackTraceCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_v8stack_trace_t* CefCToCppRefCounted { public: CefV8StackTraceCToCpp(); + virtual ~CefV8StackTraceCToCpp(); // CefV8StackTrace methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/v8value_ctocpp.cc b/libcef_dll/ctocpp/v8value_ctocpp.cc index 0682d7a1a..0f14f30db 100644 --- a/libcef_dll/ctocpp/v8value_ctocpp.cc +++ b/libcef_dll/ctocpp/v8value_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=700904d273996990c0c0130f5043df492fb1ad76$ +// $hash=87cce927c0e5e71a89fb50c001aade011a58606d$ // #include "libcef_dll/ctocpp/v8value_ctocpp.h" @@ -847,8 +847,8 @@ NO_SANITIZE("cfi-icall") int CefV8ValueCToCpp::GetArrayLength() { } NO_SANITIZE("cfi-icall") -CefRefPtr CefV8ValueCToCpp:: - GetArrayBufferReleaseCallback() { +CefRefPtr +CefV8ValueCToCpp::GetArrayBufferReleaseCallback() { cef_v8value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_array_buffer_release_callback)) return NULL; @@ -992,6 +992,10 @@ CefRefPtr CefV8ValueCToCpp::ExecuteFunctionWithContext( CefV8ValueCToCpp::CefV8ValueCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefV8ValueCToCpp::~CefV8ValueCToCpp() {} + template <> cef_v8value_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/v8value_ctocpp.h b/libcef_dll/ctocpp/v8value_ctocpp.h index e7048b7cd..963db1ac1 100644 --- a/libcef_dll/ctocpp/v8value_ctocpp.h +++ b/libcef_dll/ctocpp/v8value_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e137621cadd8abb7931665e6add6d41104d84bc3$ +// $hash=61e1710e77b49f83d0881b5a81621ffbce4b06b7$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefV8ValueCToCpp : public CefCToCppRefCounted { public: CefV8ValueCToCpp(); + virtual ~CefV8ValueCToCpp(); // CefV8Value methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/value_ctocpp.cc b/libcef_dll/ctocpp/value_ctocpp.cc index 68601cdd3..08cc7af21 100644 --- a/libcef_dll/ctocpp/value_ctocpp.cc +++ b/libcef_dll/ctocpp/value_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=efbbef13092b03ef4a65b672e4660fef69509421$ +// $hash=2b22c5afac64be1b40029064da32b16f84e8fe27$ // #include "libcef_dll/ctocpp/value_ctocpp.h" #include "libcef_dll/ctocpp/binary_value_ctocpp.h" #include "libcef_dll/ctocpp/dictionary_value_ctocpp.h" #include "libcef_dll/ctocpp/list_value_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefValue::Create() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -32,6 +35,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefValue::Create() { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -46,6 +51,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsOwned() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_owned)) return false; @@ -60,6 +67,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsOwned() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -74,6 +83,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsReadOnly() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -94,6 +105,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") bool CefValueCToCpp::IsEqual(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_equal)) return false; @@ -113,6 +126,8 @@ bool CefValueCToCpp::IsEqual(CefRefPtr that) { } NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::Copy() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, copy)) return NULL; @@ -127,6 +142,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::Copy() { } NO_SANITIZE("cfi-icall") CefValueType CefValueCToCpp::GetType() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return VTYPE_INVALID; @@ -141,6 +158,8 @@ NO_SANITIZE("cfi-icall") CefValueType CefValueCToCpp::GetType() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::GetBool() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bool)) return false; @@ -155,6 +174,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::GetBool() { } NO_SANITIZE("cfi-icall") int CefValueCToCpp::GetInt() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_int)) return 0; @@ -169,6 +190,8 @@ NO_SANITIZE("cfi-icall") int CefValueCToCpp::GetInt() { } NO_SANITIZE("cfi-icall") double CefValueCToCpp::GetDouble() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_double)) return 0; @@ -183,6 +206,8 @@ NO_SANITIZE("cfi-icall") double CefValueCToCpp::GetDouble() { } NO_SANITIZE("cfi-icall") CefString CefValueCToCpp::GetString() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_string)) return CefString(); @@ -199,6 +224,8 @@ NO_SANITIZE("cfi-icall") CefString CefValueCToCpp::GetString() { } NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::GetBinary() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_binary)) return NULL; @@ -214,6 +241,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::GetBinary() { NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::GetDictionary() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_dictionary)) return NULL; @@ -228,6 +257,8 @@ CefRefPtr CefValueCToCpp::GetDictionary() { } NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::GetList() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_list)) return NULL; @@ -242,6 +273,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefValueCToCpp::GetList() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetNull() { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_null)) return false; @@ -256,6 +289,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetNull() { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetBool(bool value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_bool)) return false; @@ -270,6 +305,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetBool(bool value) { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetInt(int value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_int)) return false; @@ -284,6 +321,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetInt(int value) { } NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetDouble(double value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_double)) return false; @@ -299,6 +338,8 @@ NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetDouble(double value) { NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetString(const CefString& value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_string)) return false; @@ -316,6 +357,8 @@ bool CefValueCToCpp::SetString(const CefString& value) { NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetBinary(CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_binary)) return false; @@ -337,6 +380,8 @@ bool CefValueCToCpp::SetBinary(CefRefPtr value) { NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetDictionary(CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_dictionary)) return false; @@ -358,6 +403,8 @@ bool CefValueCToCpp::SetDictionary(CefRefPtr value) { NO_SANITIZE("cfi-icall") bool CefValueCToCpp::SetList(CefRefPtr value) { + shutdown_checker::AssertNotShutdown(); + cef_value_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_list)) return false; @@ -380,6 +427,12 @@ bool CefValueCToCpp::SetList(CefRefPtr value) { CefValueCToCpp::CefValueCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefValueCToCpp::~CefValueCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_value_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/value_ctocpp.h b/libcef_dll/ctocpp/value_ctocpp.h index dd855e021..147c4360d 100644 --- a/libcef_dll/ctocpp/value_ctocpp.h +++ b/libcef_dll/ctocpp/value_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=3479eaa0620c9f53164e85ea11b6984e6817d3c3$ +// $hash=14b514e55f58dff0d1c611f684e05890c9f246ef$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VALUE_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefValueCToCpp : public CefCToCppRefCounted { public: CefValueCToCpp(); + virtual ~CefValueCToCpp(); // CefValue methods. bool IsValid() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/box_layout_ctocpp.cc b/libcef_dll/ctocpp/views/box_layout_ctocpp.cc index 5d5a8cdb6..489ba9e2b 100644 --- a/libcef_dll/ctocpp/views/box_layout_ctocpp.cc +++ b/libcef_dll/ctocpp/views/box_layout_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=b9265a23c995bbb6f5120dd8c5ccff5eaf1d0f91$ +// $hash=d02bac0bc9c81917244c63bc182ef94cb2bdf741$ // #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefBoxLayoutCToCpp::SetFlexForView(CefRefPtr view, int flex) { + shutdown_checker::AssertNotShutdown(); + cef_box_layout_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_flex_for_view)) return; @@ -37,6 +40,8 @@ void CefBoxLayoutCToCpp::SetFlexForView(CefRefPtr view, int flex) { NO_SANITIZE("cfi-icall") void CefBoxLayoutCToCpp::ClearFlexForView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_box_layout_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear_flex_for_view)) return; @@ -54,6 +59,8 @@ void CefBoxLayoutCToCpp::ClearFlexForView(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefRefPtr CefBoxLayoutCToCpp::AsBoxLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_box_layout)) return NULL; @@ -69,6 +76,8 @@ CefRefPtr CefBoxLayoutCToCpp::AsBoxLayout() { NO_SANITIZE("cfi-icall") CefRefPtr CefBoxLayoutCToCpp::AsFillLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_fill_layout)) return NULL; @@ -83,6 +92,8 @@ CefRefPtr CefBoxLayoutCToCpp::AsFillLayout() { } NO_SANITIZE("cfi-icall") bool CefBoxLayoutCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -100,6 +111,12 @@ NO_SANITIZE("cfi-icall") bool CefBoxLayoutCToCpp::IsValid() { CefBoxLayoutCToCpp::CefBoxLayoutCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBoxLayoutCToCpp::~CefBoxLayoutCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_box_layout_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/box_layout_ctocpp.h b/libcef_dll/ctocpp/views/box_layout_ctocpp.h index c4d37178d..dc67e738b 100644 --- a/libcef_dll/ctocpp/views/box_layout_ctocpp.h +++ b/libcef_dll/ctocpp/views/box_layout_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=480c684fd32d5f20061f2d991512bea0c3b64c36$ +// $hash=1fb982d98cd8936ef4804b74635e351c79162fe2$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BOX_LAYOUT_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefBoxLayoutCToCpp : public CefCToCppRefCounted { public: CefBoxLayoutCToCpp(); + virtual ~CefBoxLayoutCToCpp(); // CefBoxLayout methods. void SetFlexForView(CefRefPtr view, int flex) OVERRIDE; diff --git a/libcef_dll/ctocpp/views/browser_view_ctocpp.cc b/libcef_dll/ctocpp/views/browser_view_ctocpp.cc index 2dcb4d458..355d455ea 100644 --- a/libcef_dll/ctocpp/views/browser_view_ctocpp.cc +++ b/libcef_dll/ctocpp/views/browser_view_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ef05be4cf3befcdbbb9cf68b90e229da67869155$ +// $hash=672758a23a1bb4e63908ee4587fe3c58c5816554$ // #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h" @@ -24,6 +24,7 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -34,6 +35,8 @@ CefRefPtr CefBrowserView::CreateBrowserView( const CefBrowserSettings& settings, CefRefPtr request_context, CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: client, url, request_context, delegate @@ -51,6 +54,8 @@ CefRefPtr CefBrowserView::CreateBrowserView( NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserView::GetForBrowser( CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: browser; type: refptr_same @@ -70,6 +75,8 @@ CefRefPtr CefBrowserView::GetForBrowser( NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::GetBrowser() { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_browser)) return NULL; @@ -85,6 +92,8 @@ CefRefPtr CefBrowserViewCToCpp::GetBrowser() { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetPreferAccelerators(bool prefer_accelerators) { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_prefer_accelerators)) return; @@ -97,6 +106,8 @@ void CefBrowserViewCToCpp::SetPreferAccelerators(bool prefer_accelerators) { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -111,6 +122,8 @@ CefRefPtr CefBrowserViewCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -125,6 +138,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -140,6 +155,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -155,6 +172,8 @@ CefRefPtr CefBrowserViewCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -169,6 +188,8 @@ CefRefPtr CefBrowserViewCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefBrowserViewCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -186,6 +207,8 @@ NO_SANITIZE("cfi-icall") CefString CefBrowserViewCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefBrowserViewCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -202,6 +225,8 @@ CefString CefBrowserViewCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -216,6 +241,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -231,6 +258,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsAttached() { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -251,6 +280,8 @@ bool CefBrowserViewCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -266,6 +297,8 @@ CefRefPtr CefBrowserViewCToCpp::GetDelegate() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -280,6 +313,8 @@ CefRefPtr CefBrowserViewCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefBrowserViewCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -294,6 +329,8 @@ NO_SANITIZE("cfi-icall") int CefBrowserViewCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -305,6 +342,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefBrowserViewCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -319,6 +358,8 @@ NO_SANITIZE("cfi-icall") int CefBrowserViewCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -331,6 +372,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetGroupID(int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -346,6 +389,8 @@ CefRefPtr CefBrowserViewCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefBrowserViewCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -361,6 +406,8 @@ CefRefPtr CefBrowserViewCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -372,6 +419,8 @@ void CefBrowserViewCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefBrowserViewCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -386,6 +435,8 @@ NO_SANITIZE("cfi-icall") CefRect CefBrowserViewCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefBrowserViewCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -401,6 +452,8 @@ NO_SANITIZE("cfi-icall") CefRect CefBrowserViewCToCpp::GetBoundsInScreen() { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -412,6 +465,8 @@ void CefBrowserViewCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -427,6 +482,8 @@ NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -438,6 +495,8 @@ void CefBrowserViewCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefBrowserViewCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -452,6 +511,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefBrowserViewCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -466,6 +527,8 @@ NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -477,6 +540,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -491,6 +556,8 @@ NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -506,6 +573,8 @@ NO_SANITIZE("cfi-icall") CefSize CefBrowserViewCToCpp::GetMaximumSize() { NO_SANITIZE("cfi-icall") int CefBrowserViewCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -520,6 +589,8 @@ int CefBrowserViewCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -531,6 +602,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -542,6 +615,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -556,6 +631,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -570,6 +647,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -581,6 +660,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -596,6 +677,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsEnabled() { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -607,6 +690,8 @@ void CefBrowserViewCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -621,6 +706,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -635,6 +722,8 @@ NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -647,6 +736,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefBrowserViewCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -659,6 +750,8 @@ void CefBrowserViewCToCpp::SetBackgroundColor(cef_color_t color) { NO_SANITIZE("cfi-icall") cef_color_t CefBrowserViewCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -674,6 +767,8 @@ cef_color_t CefBrowserViewCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -689,6 +784,8 @@ bool CefBrowserViewCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -704,6 +801,8 @@ bool CefBrowserViewCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -719,6 +818,8 @@ bool CefBrowserViewCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -735,6 +836,8 @@ bool CefBrowserViewCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -757,6 +860,8 @@ bool CefBrowserViewCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefBrowserViewCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -780,6 +885,12 @@ bool CefBrowserViewCToCpp::ConvertPointFromView(CefRefPtr view, CefBrowserViewCToCpp::CefBrowserViewCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBrowserViewCToCpp::~CefBrowserViewCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_browser_view_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/browser_view_ctocpp.h b/libcef_dll/ctocpp/views/browser_view_ctocpp.h index 3eed4b0f2..646a95da4 100644 --- a/libcef_dll/ctocpp/views/browser_view_ctocpp.h +++ b/libcef_dll/ctocpp/views/browser_view_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a8e6973b19c29481c4a8b4b5c36ca0daa0707b00$ +// $hash=97a7ff6e9a84161da522861adcd6af093a98975f$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefBrowserViewCToCpp : public CefCToCppRefCounted { public: CefBrowserViewCToCpp(); + virtual ~CefBrowserViewCToCpp(); // CefBrowserView methods. CefRefPtr GetBrowser() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.cc index 20617f717..f286986f7 100644 --- a/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9aa44f1335f77dcfd50f906bac15196cf510e69b$ +// $hash=af0cd8029cdda8d2693381c10ec00460a85e47b8$ // #include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h" @@ -17,6 +17,7 @@ #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/ctocpp/client_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -24,6 +25,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewDelegateCToCpp::OnBrowserCreated( CefRefPtr browser_view, CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_browser_created)) return; @@ -48,6 +51,8 @@ NO_SANITIZE("cfi-icall") void CefBrowserViewDelegateCToCpp::OnBrowserDestroyed( CefRefPtr browser_view, CefRefPtr browser) { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_browser_destroyed)) return; @@ -70,11 +75,14 @@ void CefBrowserViewDelegateCToCpp::OnBrowserDestroyed( } NO_SANITIZE("cfi-icall") -CefRefPtr CefBrowserViewDelegateCToCpp:: - GetDelegateForPopupBrowserView(CefRefPtr browser_view, - const CefBrowserSettings& settings, - CefRefPtr client, - bool is_devtools) { +CefRefPtr +CefBrowserViewDelegateCToCpp::GetDelegateForPopupBrowserView( + CefRefPtr browser_view, + const CefBrowserSettings& settings, + CefRefPtr client, + bool is_devtools) { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_delegate_for_popup_browser_view)) return NULL; @@ -105,6 +113,8 @@ bool CefBrowserViewDelegateCToCpp::OnPopupBrowserViewCreated( CefRefPtr browser_view, CefRefPtr popup_browser_view, bool is_devtools) { + shutdown_checker::AssertNotShutdown(); + cef_browser_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_popup_browser_view_created)) return false; @@ -130,8 +140,10 @@ bool CefBrowserViewDelegateCToCpp::OnPopupBrowserViewCreated( } NO_SANITIZE("cfi-icall") -CefSize - CefBrowserViewDelegateCToCpp::GetPreferredSize(CefRefPtr view) { +CefSize CefBrowserViewDelegateCToCpp::GetPreferredSize( + CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -154,6 +166,8 @@ CefSize NO_SANITIZE("cfi-icall") CefSize CefBrowserViewDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -176,6 +190,8 @@ CefSize CefBrowserViewDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefBrowserViewDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -199,6 +215,8 @@ CefSize CefBrowserViewDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefBrowserViewDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -224,6 +242,8 @@ void CefBrowserViewDelegateCToCpp::OnParentViewChanged( CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -250,6 +270,8 @@ void CefBrowserViewDelegateCToCpp::OnChildViewChanged( CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -273,6 +295,8 @@ void CefBrowserViewDelegateCToCpp::OnChildViewChanged( NO_SANITIZE("cfi-icall") void CefBrowserViewDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -291,6 +315,8 @@ void CefBrowserViewDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefBrowserViewDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -311,6 +337,12 @@ void CefBrowserViewDelegateCToCpp::OnBlur(CefRefPtr view) { CefBrowserViewDelegateCToCpp::CefBrowserViewDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefBrowserViewDelegateCToCpp::~CefBrowserViewDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_browser_view_delegate_t* CefCToCppRefCounted< CefBrowserViewDelegateCToCpp, diff --git a/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h b/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h index 70d645857..bf08838f5 100644 --- a/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=41ef44145792a22f367cb97c214847eb340b17b5$ +// $hash=a3cab28932579f03783dad3e9c754ba1b845b373$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_DELEGATE_CTOCPP_H_ @@ -36,6 +36,7 @@ class CefBrowserViewDelegateCToCpp cef_browser_view_delegate_t> { public: CefBrowserViewDelegateCToCpp(); + virtual ~CefBrowserViewDelegateCToCpp(); // CefBrowserViewDelegate methods. void OnBrowserCreated(CefRefPtr browser_view, diff --git a/libcef_dll/ctocpp/views/button_ctocpp.cc b/libcef_dll/ctocpp/views/button_ctocpp.cc index 2acb97fc6..a2a7f8ca9 100644 --- a/libcef_dll/ctocpp/views/button_ctocpp.cc +++ b/libcef_dll/ctocpp/views/button_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ee78dde9131a43f3390e490addce944f91f183e0$ +// $hash=47cd7676abd406c2197567df8fc522c5257ecdf0$ // #include "libcef_dll/ctocpp/views/button_ctocpp.h" @@ -22,11 +22,14 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsLabelButton() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_label_button)) return NULL; @@ -42,6 +45,8 @@ CefRefPtr CefButtonCToCpp::AsLabelButton() { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetState(cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_state)) return; @@ -53,6 +58,8 @@ void CefButtonCToCpp::SetState(cef_button_state_t state) { } NO_SANITIZE("cfi-icall") cef_button_state_t CefButtonCToCpp::GetState() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_state)) return CEF_BUTTON_STATE_NORMAL; @@ -67,6 +74,8 @@ NO_SANITIZE("cfi-icall") cef_button_state_t CefButtonCToCpp::GetState() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetInkDropEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_ink_drop_enabled)) return; @@ -79,6 +88,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetInkDropEnabled(bool enabled) { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_tooltip_text)) return; @@ -96,6 +107,8 @@ void CefButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetAccessibleName(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accessible_name)) return; @@ -113,6 +126,8 @@ void CefButtonCToCpp::SetAccessibleName(const CefString& name) { NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -127,6 +142,8 @@ CefRefPtr CefButtonCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -141,6 +158,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -156,6 +175,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -171,6 +192,8 @@ CefRefPtr CefButtonCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -185,6 +208,8 @@ CefRefPtr CefButtonCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefButtonCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -202,6 +227,8 @@ NO_SANITIZE("cfi-icall") CefString CefButtonCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefButtonCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -218,6 +245,8 @@ CefString CefButtonCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -232,6 +261,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -246,6 +277,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsAttached() { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -266,6 +299,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -280,6 +315,8 @@ CefRefPtr CefButtonCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -294,6 +331,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -308,6 +347,8 @@ NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -319,6 +360,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -333,6 +376,8 @@ NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -344,6 +389,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetGroupID(int group_id) { } NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -359,6 +406,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefButtonCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -374,6 +423,8 @@ CefRefPtr CefButtonCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -385,6 +436,8 @@ void CefButtonCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefButtonCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -399,6 +452,8 @@ NO_SANITIZE("cfi-icall") CefRect CefButtonCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefButtonCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -413,6 +468,8 @@ NO_SANITIZE("cfi-icall") CefRect CefButtonCToCpp::GetBoundsInScreen() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -424,6 +481,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -439,6 +498,8 @@ NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -450,6 +511,8 @@ void CefButtonCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefButtonCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -464,6 +527,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefButtonCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -478,6 +543,8 @@ NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -489,6 +556,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -503,6 +572,8 @@ NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -517,6 +588,8 @@ NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -531,6 +604,8 @@ NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -542,6 +617,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -553,6 +630,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -567,6 +646,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -581,6 +662,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -592,6 +675,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -606,6 +691,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsEnabled() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -617,6 +704,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -631,6 +720,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -645,6 +736,8 @@ NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefButtonCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -657,6 +750,8 @@ NO_SANITIZE("cfi-icall") void CefButtonCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -668,6 +763,8 @@ void CefButtonCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefButtonCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -683,6 +780,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefButtonCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -698,6 +797,8 @@ bool CefButtonCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -713,6 +814,8 @@ bool CefButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -728,6 +831,8 @@ bool CefButtonCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -744,6 +849,8 @@ bool CefButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -766,6 +873,8 @@ bool CefButtonCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -789,6 +898,12 @@ bool CefButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefButtonCToCpp::CefButtonCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefButtonCToCpp::~CefButtonCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_button_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/button_ctocpp.h b/libcef_dll/ctocpp/views/button_ctocpp.h index 3c613c7a3..8e0feef00 100644 --- a/libcef_dll/ctocpp/views/button_ctocpp.h +++ b/libcef_dll/ctocpp/views/button_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=27d2a33fb1009537916eb56d89b6ac18760696ce$ +// $hash=795f7c4a5926767eb80460ead3551196db4c9d64$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BUTTON_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefButtonCToCpp : public CefCToCppRefCounted { public: CefButtonCToCpp(); + virtual ~CefButtonCToCpp(); // CefButton methods. CefRefPtr AsLabelButton() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/button_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/button_delegate_ctocpp.cc index 665e04b49..a02d7ad80 100644 --- a/libcef_dll/ctocpp/views/button_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/button_delegate_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1b85f5705a6c217b01f253d42422523371691ddc$ +// $hash=8827e9696495ddbc282995d853cca1f9564de792$ // #include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h" #include "libcef_dll/cpptoc/views/button_cpptoc.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnButtonPressed(CefRefPtr button) { + shutdown_checker::AssertNotShutdown(); + cef_button_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_button_pressed)) return; @@ -39,6 +42,8 @@ void CefButtonDelegateCToCpp::OnButtonPressed(CefRefPtr button) { NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnButtonStateChanged( CefRefPtr button) { + shutdown_checker::AssertNotShutdown(); + cef_button_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_button_state_changed)) return; @@ -56,6 +61,8 @@ void CefButtonDelegateCToCpp::OnButtonStateChanged( NO_SANITIZE("cfi-icall") CefSize CefButtonDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -78,6 +85,8 @@ CefSize CefButtonDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefButtonDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -100,6 +109,8 @@ CefSize CefButtonDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefButtonDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -123,6 +134,8 @@ CefSize CefButtonDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefButtonDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -147,6 +160,8 @@ NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnParentViewChanged(CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -172,6 +187,8 @@ NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -195,6 +212,8 @@ void CefButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -213,6 +232,8 @@ void CefButtonDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefButtonDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -233,6 +254,12 @@ void CefButtonDelegateCToCpp::OnBlur(CefRefPtr view) { CefButtonDelegateCToCpp::CefButtonDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefButtonDelegateCToCpp::~CefButtonDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_button_delegate_t* CefCToCppRefCounted< CefButtonDelegateCToCpp, diff --git a/libcef_dll/ctocpp/views/button_delegate_ctocpp.h b/libcef_dll/ctocpp/views/button_delegate_ctocpp.h index b6d66386d..7df28d013 100644 --- a/libcef_dll/ctocpp/views/button_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/views/button_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=79feb7cd9bdf332ae3769d941936a66686a9cb42$ +// $hash=81ba31714d71e1358273fa10e12881912fabc446$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BUTTON_DELEGATE_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefButtonDelegateCToCpp cef_button_delegate_t> { public: CefButtonDelegateCToCpp(); + virtual ~CefButtonDelegateCToCpp(); // CefButtonDelegate methods. void OnButtonPressed(CefRefPtr button) override; diff --git a/libcef_dll/ctocpp/views/display_ctocpp.cc b/libcef_dll/ctocpp/views/display_ctocpp.cc index aee438e9d..047034f07 100644 --- a/libcef_dll/ctocpp/views/display_ctocpp.cc +++ b/libcef_dll/ctocpp/views/display_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=d94d266c36d375d36f9bd11e416f69911dcdadeb$ +// $hash=f82a3944424c384ba303c29dd6fb81fd03257fc1$ // #include "libcef_dll/ctocpp/views/display_ctocpp.h" #include +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefDisplay::GetPrimaryDisplay() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -31,6 +34,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDisplay::GetDisplayNearestPoint( const CefPoint& point, bool input_pixel_coords) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -45,6 +50,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefDisplay::GetDisplayMatchingBounds( const CefRect& bounds, bool input_pixel_coords) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -56,6 +63,8 @@ CefRefPtr CefDisplay::GetDisplayMatchingBounds( } NO_SANITIZE("cfi-icall") size_t CefDisplay::GetDisplayCount() { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -67,6 +76,8 @@ NO_SANITIZE("cfi-icall") size_t CefDisplay::GetDisplayCount() { NO_SANITIZE("cfi-icall") void CefDisplay::GetAllDisplays(std::vector>& displays) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Translate param: displays; type: refptr_vec_same_byref @@ -102,6 +113,8 @@ void CefDisplay::GetAllDisplays(std::vector>& displays) { // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") int64 CefDisplayCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -116,6 +129,8 @@ NO_SANITIZE("cfi-icall") int64 CefDisplayCToCpp::GetID() { } NO_SANITIZE("cfi-icall") float CefDisplayCToCpp::GetDeviceScaleFactor() { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_device_scale_factor)) return 0; @@ -131,6 +146,8 @@ NO_SANITIZE("cfi-icall") float CefDisplayCToCpp::GetDeviceScaleFactor() { NO_SANITIZE("cfi-icall") void CefDisplayCToCpp::ConvertPointToPixels(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_to_pixels)) return; @@ -143,6 +160,8 @@ void CefDisplayCToCpp::ConvertPointToPixels(CefPoint& point) { NO_SANITIZE("cfi-icall") void CefDisplayCToCpp::ConvertPointFromPixels(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_from_pixels)) return; @@ -154,6 +173,8 @@ void CefDisplayCToCpp::ConvertPointFromPixels(CefPoint& point) { } NO_SANITIZE("cfi-icall") CefRect CefDisplayCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -168,6 +189,8 @@ NO_SANITIZE("cfi-icall") CefRect CefDisplayCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefDisplayCToCpp::GetWorkArea() { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_work_area)) return CefRect(); @@ -182,6 +205,8 @@ NO_SANITIZE("cfi-icall") CefRect CefDisplayCToCpp::GetWorkArea() { } NO_SANITIZE("cfi-icall") int CefDisplayCToCpp::GetRotation() { + shutdown_checker::AssertNotShutdown(); + cef_display_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_rotation)) return 0; @@ -199,6 +224,12 @@ NO_SANITIZE("cfi-icall") int CefDisplayCToCpp::GetRotation() { CefDisplayCToCpp::CefDisplayCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefDisplayCToCpp::~CefDisplayCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_display_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/display_ctocpp.h b/libcef_dll/ctocpp/views/display_ctocpp.h index 4bcd9ef26..fa88d1578 100644 --- a/libcef_dll/ctocpp/views/display_ctocpp.h +++ b/libcef_dll/ctocpp/views/display_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0676dd9b06865f2af5658d905e2c4c5d9d9a105e$ +// $hash=66db828db84ce2b0eecba5dabca17001f6bda98e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_DISPLAY_CTOCPP_H_ @@ -30,6 +30,7 @@ class CefDisplayCToCpp : public CefCToCppRefCounted { public: CefDisplayCToCpp(); + virtual ~CefDisplayCToCpp(); // CefDisplay methods. int64 GetID() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/fill_layout_ctocpp.cc b/libcef_dll/ctocpp/views/fill_layout_ctocpp.cc index 63f8768ce..2d97b73f7 100644 --- a/libcef_dll/ctocpp/views/fill_layout_ctocpp.cc +++ b/libcef_dll/ctocpp/views/fill_layout_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dcb84489ec3e4cb3970539a3dfd3e54508728bdb$ +// $hash=055f38ecca3d8dcf502721126cb0d55239bfda44$ // #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefFillLayoutCToCpp::AsBoxLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_box_layout)) return NULL; @@ -34,6 +37,8 @@ CefRefPtr CefFillLayoutCToCpp::AsBoxLayout() { NO_SANITIZE("cfi-icall") CefRefPtr CefFillLayoutCToCpp::AsFillLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_fill_layout)) return NULL; @@ -48,6 +53,8 @@ CefRefPtr CefFillLayoutCToCpp::AsFillLayout() { } NO_SANITIZE("cfi-icall") bool CefFillLayoutCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -65,6 +72,12 @@ NO_SANITIZE("cfi-icall") bool CefFillLayoutCToCpp::IsValid() { CefFillLayoutCToCpp::CefFillLayoutCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefFillLayoutCToCpp::~CefFillLayoutCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_fill_layout_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/fill_layout_ctocpp.h b/libcef_dll/ctocpp/views/fill_layout_ctocpp.h index 3c5dc394d..83435ac75 100644 --- a/libcef_dll/ctocpp/views/fill_layout_ctocpp.h +++ b/libcef_dll/ctocpp/views/fill_layout_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=8334de1c3d4224bb22c1766bd0c16a73b565653b$ +// $hash=2f607017eb3ed6707746ed6610f331e31548de7b$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_FILL_LAYOUT_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefFillLayoutCToCpp : public CefCToCppRefCounted { public: CefFillLayoutCToCpp(); + virtual ~CefFillLayoutCToCpp(); // CefFillLayout methods. diff --git a/libcef_dll/ctocpp/views/label_button_ctocpp.cc b/libcef_dll/ctocpp/views/label_button_ctocpp.cc index 16859c5ab..9cc799513 100644 --- a/libcef_dll/ctocpp/views/label_button_ctocpp.cc +++ b/libcef_dll/ctocpp/views/label_button_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=df23ba2ae9bbf4668735af7e81b3fde171e3795b$ +// $hash=9792a7a28f852361f93231ec9b0953709ab02fa4$ // #include "libcef_dll/ctocpp/views/label_button_ctocpp.h" @@ -24,6 +24,7 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -32,6 +33,8 @@ CefRefPtr CefLabelButton::CreateLabelButton( CefRefPtr delegate, const CefString& text, bool with_frame) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -52,6 +55,8 @@ CefRefPtr CefLabelButton::CreateLabelButton( NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsMenuButton() { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_menu_button)) return NULL; @@ -67,6 +72,8 @@ CefRefPtr CefLabelButtonCToCpp::AsMenuButton() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_text)) return; @@ -83,6 +90,8 @@ void CefLabelButtonCToCpp::SetText(const CefString& text) { } NO_SANITIZE("cfi-icall") CefString CefLabelButtonCToCpp::GetText() { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_text)) return CefString(); @@ -101,6 +110,8 @@ NO_SANITIZE("cfi-icall") CefString CefLabelButtonCToCpp::GetText() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetImage(cef_button_state_t button_state, CefRefPtr image) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_image)) return; @@ -116,6 +127,8 @@ void CefLabelButtonCToCpp::SetImage(cef_button_state_t button_state, NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::GetImage( cef_button_state_t button_state) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_image)) return NULL; @@ -132,6 +145,8 @@ CefRefPtr CefLabelButtonCToCpp::GetImage( NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetTextColor(cef_button_state_t for_state, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_text_color)) return; @@ -144,6 +159,8 @@ void CefLabelButtonCToCpp::SetTextColor(cef_button_state_t for_state, NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetEnabledTextColors(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_enabled_text_colors)) return; @@ -156,6 +173,8 @@ void CefLabelButtonCToCpp::SetEnabledTextColors(cef_color_t color) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetFontList(const CefString& font_list) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_font_list)) return; @@ -174,6 +193,8 @@ void CefLabelButtonCToCpp::SetFontList(const CefString& font_list) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetHorizontalAlignment( cef_horizontal_alignment_t alignment) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_horizontal_alignment)) return; @@ -186,6 +207,8 @@ void CefLabelButtonCToCpp::SetHorizontalAlignment( NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetMinimumSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_minimum_size)) return; @@ -198,6 +221,8 @@ void CefLabelButtonCToCpp::SetMinimumSize(const CefSize& size) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetMaximumSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_maximum_size)) return; @@ -210,6 +235,8 @@ void CefLabelButtonCToCpp::SetMaximumSize(const CefSize& size) { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsLabelButton() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_label_button)) return NULL; @@ -225,6 +252,8 @@ CefRefPtr CefLabelButtonCToCpp::AsLabelButton() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetState(cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_state)) return; @@ -236,6 +265,8 @@ void CefLabelButtonCToCpp::SetState(cef_button_state_t state) { } NO_SANITIZE("cfi-icall") cef_button_state_t CefLabelButtonCToCpp::GetState() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_state)) return CEF_BUTTON_STATE_NORMAL; @@ -251,6 +282,8 @@ NO_SANITIZE("cfi-icall") cef_button_state_t CefLabelButtonCToCpp::GetState() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetInkDropEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_ink_drop_enabled)) return; @@ -263,6 +296,8 @@ void CefLabelButtonCToCpp::SetInkDropEnabled(bool enabled) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_tooltip_text)) return; @@ -280,6 +315,8 @@ void CefLabelButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetAccessibleName(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_accessible_name)) return; @@ -297,6 +334,8 @@ void CefLabelButtonCToCpp::SetAccessibleName(const CefString& name) { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -311,6 +350,8 @@ CefRefPtr CefLabelButtonCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -325,6 +366,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -340,6 +383,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -355,6 +400,8 @@ CefRefPtr CefLabelButtonCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -369,6 +416,8 @@ CefRefPtr CefLabelButtonCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefLabelButtonCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -386,6 +435,8 @@ NO_SANITIZE("cfi-icall") CefString CefLabelButtonCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefLabelButtonCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -402,6 +453,8 @@ CefString CefLabelButtonCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -416,6 +469,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -431,6 +486,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsAttached() { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -451,6 +508,8 @@ bool CefLabelButtonCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -466,6 +525,8 @@ CefRefPtr CefLabelButtonCToCpp::GetDelegate() { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -480,6 +541,8 @@ CefRefPtr CefLabelButtonCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefLabelButtonCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -494,6 +557,8 @@ NO_SANITIZE("cfi-icall") int CefLabelButtonCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -505,6 +570,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefLabelButtonCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -519,6 +586,8 @@ NO_SANITIZE("cfi-icall") int CefLabelButtonCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -531,6 +600,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetGroupID(int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -546,6 +617,8 @@ CefRefPtr CefLabelButtonCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefLabelButtonCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -561,6 +634,8 @@ CefRefPtr CefLabelButtonCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -572,6 +647,8 @@ void CefLabelButtonCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefLabelButtonCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -586,6 +663,8 @@ NO_SANITIZE("cfi-icall") CefRect CefLabelButtonCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefLabelButtonCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -601,6 +680,8 @@ NO_SANITIZE("cfi-icall") CefRect CefLabelButtonCToCpp::GetBoundsInScreen() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -612,6 +693,8 @@ void CefLabelButtonCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -627,6 +710,8 @@ NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -638,6 +723,8 @@ void CefLabelButtonCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefLabelButtonCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -652,6 +739,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefLabelButtonCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -666,6 +755,8 @@ NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -677,6 +768,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -691,6 +784,8 @@ NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -706,6 +801,8 @@ NO_SANITIZE("cfi-icall") CefSize CefLabelButtonCToCpp::GetMaximumSize() { NO_SANITIZE("cfi-icall") int CefLabelButtonCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -720,6 +817,8 @@ int CefLabelButtonCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -731,6 +830,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -742,6 +843,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -756,6 +859,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -770,6 +875,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -781,6 +888,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -796,6 +905,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsEnabled() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -807,6 +918,8 @@ void CefLabelButtonCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -821,6 +934,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -835,6 +950,8 @@ NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -847,6 +964,8 @@ NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefLabelButtonCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -859,6 +978,8 @@ void CefLabelButtonCToCpp::SetBackgroundColor(cef_color_t color) { NO_SANITIZE("cfi-icall") cef_color_t CefLabelButtonCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -874,6 +995,8 @@ cef_color_t CefLabelButtonCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -889,6 +1012,8 @@ bool CefLabelButtonCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -904,6 +1029,8 @@ bool CefLabelButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -919,6 +1046,8 @@ bool CefLabelButtonCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -935,6 +1064,8 @@ bool CefLabelButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -957,6 +1088,8 @@ bool CefLabelButtonCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefLabelButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -980,6 +1113,12 @@ bool CefLabelButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefLabelButtonCToCpp::CefLabelButtonCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefLabelButtonCToCpp::~CefLabelButtonCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_label_button_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/label_button_ctocpp.h b/libcef_dll/ctocpp/views/label_button_ctocpp.h index ebe766098..731514a4c 100644 --- a/libcef_dll/ctocpp/views/label_button_ctocpp.h +++ b/libcef_dll/ctocpp/views/label_button_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bc2e3e4bc3fb70a1c773756b32851dd1a1767514$ +// $hash=d4e9a9f33d8ab4f83eba1bb0b5245c52eb3607c8$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_LABEL_BUTTON_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefLabelButtonCToCpp : public CefCToCppRefCounted { public: CefLabelButtonCToCpp(); + virtual ~CefLabelButtonCToCpp(); // CefLabelButton methods. CefRefPtr AsMenuButton() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/layout_ctocpp.cc b/libcef_dll/ctocpp/views/layout_ctocpp.cc index 8550a6aa0..4a59a28e0 100644 --- a/libcef_dll/ctocpp/views/layout_ctocpp.cc +++ b/libcef_dll/ctocpp/views/layout_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6219013eded802ef0341eb8603294d64d26724dd$ +// $hash=23e7674b3edae1f78a14c89d6e3139d408127a29$ // #include "libcef_dll/ctocpp/views/layout_ctocpp.h" #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefLayoutCToCpp::AsBoxLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_box_layout)) return NULL; @@ -35,6 +38,8 @@ CefRefPtr CefLayoutCToCpp::AsBoxLayout() { NO_SANITIZE("cfi-icall") CefRefPtr CefLayoutCToCpp::AsFillLayout() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_fill_layout)) return NULL; @@ -49,6 +54,8 @@ CefRefPtr CefLayoutCToCpp::AsFillLayout() { } NO_SANITIZE("cfi-icall") bool CefLayoutCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_layout_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -66,6 +73,12 @@ NO_SANITIZE("cfi-icall") bool CefLayoutCToCpp::IsValid() { CefLayoutCToCpp::CefLayoutCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefLayoutCToCpp::~CefLayoutCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_layout_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/layout_ctocpp.h b/libcef_dll/ctocpp/views/layout_ctocpp.h index 32e3ff609..50a00b7e7 100644 --- a/libcef_dll/ctocpp/views/layout_ctocpp.h +++ b/libcef_dll/ctocpp/views/layout_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e224f1c810c06c20f54b6d4227417a26f589d0fb$ +// $hash=5235b7d9baf0e83f2b7f926f9a97b2f5bb1ae0eb$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_LAYOUT_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefLayoutCToCpp : public CefCToCppRefCounted { public: CefLayoutCToCpp(); + virtual ~CefLayoutCToCpp(); // CefLayout methods. CefRefPtr AsBoxLayout() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/menu_button_ctocpp.cc b/libcef_dll/ctocpp/views/menu_button_ctocpp.cc index efcd3e700..ad5e887ea 100644 --- a/libcef_dll/ctocpp/views/menu_button_ctocpp.cc +++ b/libcef_dll/ctocpp/views/menu_button_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=75a8c7434e17ea5b527795202ad215733f7c75b1$ +// $hash=61405f026d0d0060d0827cf822851a4278d3ab08$ // #include "libcef_dll/ctocpp/views/menu_button_ctocpp.h" @@ -25,6 +25,7 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -33,6 +34,8 @@ CefRefPtr CefMenuButton::CreateMenuButton( CefRefPtr delegate, const CefString& text, bool with_frame) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: delegate; type: refptr_diff @@ -56,6 +59,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::ShowMenu(CefRefPtr menu_model, const CefPoint& screen_point, cef_menu_anchor_position_t anchor_position) { + shutdown_checker::AssertNotShutdown(); + cef_menu_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, show_menu)) return; @@ -73,6 +78,8 @@ void CefMenuButtonCToCpp::ShowMenu(CefRefPtr menu_model, } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::TriggerMenu() { + shutdown_checker::AssertNotShutdown(); + cef_menu_button_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, trigger_menu)) return; @@ -85,6 +92,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::TriggerMenu() { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsMenuButton() { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_menu_button)) @@ -101,6 +110,8 @@ CefRefPtr CefMenuButtonCToCpp::AsMenuButton() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_text)) @@ -118,6 +129,8 @@ void CefMenuButtonCToCpp::SetText(const CefString& text) { } NO_SANITIZE("cfi-icall") CefString CefMenuButtonCToCpp::GetText() { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_text)) @@ -137,6 +150,8 @@ NO_SANITIZE("cfi-icall") CefString CefMenuButtonCToCpp::GetText() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetImage(cef_button_state_t button_state, CefRefPtr image) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_image)) @@ -153,6 +168,8 @@ void CefMenuButtonCToCpp::SetImage(cef_button_state_t button_state, NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetImage( cef_button_state_t button_state) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_image)) @@ -170,6 +187,8 @@ CefRefPtr CefMenuButtonCToCpp::GetImage( NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetTextColor(cef_button_state_t for_state, cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_text_color)) @@ -183,6 +202,8 @@ void CefMenuButtonCToCpp::SetTextColor(cef_button_state_t for_state, NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetEnabledTextColors(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled_text_colors)) @@ -196,6 +217,8 @@ void CefMenuButtonCToCpp::SetEnabledTextColors(cef_color_t color) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetFontList(const CefString& font_list) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_font_list)) @@ -215,6 +238,8 @@ void CefMenuButtonCToCpp::SetFontList(const CefString& font_list) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetHorizontalAlignment( cef_horizontal_alignment_t alignment) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_horizontal_alignment)) @@ -228,6 +253,8 @@ void CefMenuButtonCToCpp::SetHorizontalAlignment( NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetMinimumSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_minimum_size)) @@ -241,6 +268,8 @@ void CefMenuButtonCToCpp::SetMinimumSize(const CefSize& size) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetMaximumSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_label_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_maximum_size)) @@ -254,6 +283,8 @@ void CefMenuButtonCToCpp::SetMaximumSize(const CefSize& size) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsLabelButton() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_label_button)) return NULL; @@ -269,6 +300,8 @@ CefRefPtr CefMenuButtonCToCpp::AsLabelButton() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetState(cef_button_state_t state) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_state)) return; @@ -280,6 +313,8 @@ void CefMenuButtonCToCpp::SetState(cef_button_state_t state) { } NO_SANITIZE("cfi-icall") cef_button_state_t CefMenuButtonCToCpp::GetState() { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_state)) return CEF_BUTTON_STATE_NORMAL; @@ -295,6 +330,8 @@ NO_SANITIZE("cfi-icall") cef_button_state_t CefMenuButtonCToCpp::GetState() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetInkDropEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_ink_drop_enabled)) return; @@ -307,6 +344,8 @@ void CefMenuButtonCToCpp::SetInkDropEnabled(bool enabled) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_tooltip_text)) return; @@ -324,6 +363,8 @@ void CefMenuButtonCToCpp::SetTooltipText(const CefString& tooltip_text) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetAccessibleName(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_button_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_accessible_name)) return; @@ -341,6 +382,8 @@ void CefMenuButtonCToCpp::SetAccessibleName(const CefString& name) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -355,6 +398,8 @@ CefRefPtr CefMenuButtonCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -369,6 +414,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -384,6 +431,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -399,6 +448,8 @@ CefRefPtr CefMenuButtonCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -413,6 +464,8 @@ CefRefPtr CefMenuButtonCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefMenuButtonCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -430,6 +483,8 @@ NO_SANITIZE("cfi-icall") CefString CefMenuButtonCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefMenuButtonCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -446,6 +501,8 @@ CefString CefMenuButtonCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -460,6 +517,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -475,6 +534,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsAttached() { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -495,6 +556,8 @@ bool CefMenuButtonCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -509,6 +572,8 @@ CefRefPtr CefMenuButtonCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -523,6 +588,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -537,6 +604,8 @@ NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -548,6 +617,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -562,6 +633,8 @@ NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -574,6 +647,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetGroupID(int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -589,6 +664,8 @@ CefRefPtr CefMenuButtonCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefMenuButtonCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -604,6 +681,8 @@ CefRefPtr CefMenuButtonCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -615,6 +694,8 @@ void CefMenuButtonCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefMenuButtonCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -629,6 +710,8 @@ NO_SANITIZE("cfi-icall") CefRect CefMenuButtonCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefMenuButtonCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -644,6 +727,8 @@ NO_SANITIZE("cfi-icall") CefRect CefMenuButtonCToCpp::GetBoundsInScreen() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -655,6 +740,8 @@ void CefMenuButtonCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -670,6 +757,8 @@ NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -681,6 +770,8 @@ void CefMenuButtonCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefMenuButtonCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -695,6 +786,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefMenuButtonCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -709,6 +802,8 @@ NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -720,6 +815,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -734,6 +831,8 @@ NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -748,6 +847,8 @@ NO_SANITIZE("cfi-icall") CefSize CefMenuButtonCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -762,6 +863,8 @@ NO_SANITIZE("cfi-icall") int CefMenuButtonCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -773,6 +876,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -784,6 +889,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -798,6 +905,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -812,6 +921,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -823,6 +934,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -838,6 +951,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsEnabled() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -849,6 +964,8 @@ void CefMenuButtonCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -863,6 +980,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -877,6 +996,8 @@ NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -889,6 +1010,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefMenuButtonCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -900,6 +1023,8 @@ void CefMenuButtonCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefMenuButtonCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -915,6 +1040,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefMenuButtonCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -930,6 +1057,8 @@ bool CefMenuButtonCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -945,6 +1074,8 @@ bool CefMenuButtonCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -960,6 +1091,8 @@ bool CefMenuButtonCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -976,6 +1109,8 @@ bool CefMenuButtonCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -998,6 +1133,8 @@ bool CefMenuButtonCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefMenuButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -1021,6 +1158,12 @@ bool CefMenuButtonCToCpp::ConvertPointFromView(CefRefPtr view, CefMenuButtonCToCpp::CefMenuButtonCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonCToCpp::~CefMenuButtonCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_menu_button_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/menu_button_ctocpp.h b/libcef_dll/ctocpp/views/menu_button_ctocpp.h index aa9561933..e1d2414b7 100644 --- a/libcef_dll/ctocpp/views/menu_button_ctocpp.h +++ b/libcef_dll/ctocpp/views/menu_button_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0fb3a032a91b41bf31ee3b714fda4f0db881d6ad$ +// $hash=9fe337283d31b9818ce687c75c9394ee4d380a5e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefMenuButtonCToCpp : public CefCToCppRefCounted { public: CefMenuButtonCToCpp(); + virtual ~CefMenuButtonCToCpp(); // CefMenuButton methods. void ShowMenu(CefRefPtr menu_model, diff --git a/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.cc index a47692316..20d61ebbb 100644 --- a/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4967ab485919621cb0fb7c9df5242a5af2075713$ +// $hash=84752a6f251c5485d0b602af2829a609efa941c5$ // #include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h" @@ -17,6 +17,7 @@ #include "libcef_dll/cpptoc/views/menu_button_cpptoc.h" #include "libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -25,6 +26,8 @@ void CefMenuButtonDelegateCToCpp::OnMenuButtonPressed( CefRefPtr menu_button, const CefPoint& screen_point, CefRefPtr button_pressed_lock) { + shutdown_checker::AssertNotShutdown(); + cef_menu_button_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_menu_button_pressed)) return; @@ -48,6 +51,8 @@ void CefMenuButtonDelegateCToCpp::OnMenuButtonPressed( NO_SANITIZE("cfi-icall") void CefMenuButtonDelegateCToCpp::OnButtonPressed(CefRefPtr button) { + shutdown_checker::AssertNotShutdown(); + cef_button_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_button_pressed)) @@ -67,6 +72,8 @@ void CefMenuButtonDelegateCToCpp::OnButtonPressed(CefRefPtr button) { NO_SANITIZE("cfi-icall") void CefMenuButtonDelegateCToCpp::OnButtonStateChanged( CefRefPtr button) { + shutdown_checker::AssertNotShutdown(); + cef_button_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_button_state_changed)) @@ -85,6 +92,8 @@ void CefMenuButtonDelegateCToCpp::OnButtonStateChanged( NO_SANITIZE("cfi-icall") CefSize CefMenuButtonDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -107,6 +116,8 @@ CefSize CefMenuButtonDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefMenuButtonDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -129,6 +140,8 @@ CefSize CefMenuButtonDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefMenuButtonDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -152,6 +165,8 @@ CefSize CefMenuButtonDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefMenuButtonDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -177,6 +192,8 @@ void CefMenuButtonDelegateCToCpp::OnParentViewChanged( CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -202,6 +219,8 @@ NO_SANITIZE("cfi-icall") void CefMenuButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -225,6 +244,8 @@ void CefMenuButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefMenuButtonDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -243,6 +264,8 @@ void CefMenuButtonDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefMenuButtonDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -263,6 +286,12 @@ void CefMenuButtonDelegateCToCpp::OnBlur(CefRefPtr view) { CefMenuButtonDelegateCToCpp::CefMenuButtonDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonDelegateCToCpp::~CefMenuButtonDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_menu_button_delegate_t* CefCToCppRefCounted< CefMenuButtonDelegateCToCpp, diff --git a/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h b/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h index 3d7c00f27..e21a67942 100644 --- a/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=9260b1fa3a14695d316dab84bb9d69fe6fea5cf1$ +// $hash=03e994c04ec653af668e9ec40b6616d9929ff283$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_DELEGATE_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefMenuButtonDelegateCToCpp cef_menu_button_delegate_t> { public: CefMenuButtonDelegateCToCpp(); + virtual ~CefMenuButtonDelegateCToCpp(); // CefMenuButtonDelegate methods. void OnMenuButtonPressed( diff --git a/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.cc b/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.cc index 03663467f..dbf94a4e3 100644 --- a/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.cc +++ b/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.cc @@ -9,15 +9,22 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=f91e3d3dfc7beb8f08e75639f4129a1fdd0f8d22$ +// $hash=d22a29783fe043a06553b54fe565f5e2d9ab4653$ // #include "libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // CONSTRUCTOR - Do not edit by hand. CefMenuButtonPressedLockCToCpp::CefMenuButtonPressedLockCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefMenuButtonPressedLockCToCpp::~CefMenuButtonPressedLockCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_menu_button_pressed_lock_t* CefCToCppRefCounted< CefMenuButtonPressedLockCToCpp, diff --git a/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h b/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h index 5a68d3f12..37e4d0401 100644 --- a/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h +++ b/libcef_dll/ctocpp/views/menu_button_pressed_lock_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=7d568fefc624725b410eb6b6d188973acb7562f7$ +// $hash=128b3ccbaa7d6ed71cb5afb67f925ad0fae9de8e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_PRESSED_LOCK_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefMenuButtonPressedLockCToCpp cef_menu_button_pressed_lock_t> { public: CefMenuButtonPressedLockCToCpp(); + virtual ~CefMenuButtonPressedLockCToCpp(); // CefMenuButtonPressedLock methods. }; diff --git a/libcef_dll/ctocpp/views/panel_ctocpp.cc b/libcef_dll/ctocpp/views/panel_ctocpp.cc index db282572a..5a10e31e9 100644 --- a/libcef_dll/ctocpp/views/panel_ctocpp.cc +++ b/libcef_dll/ctocpp/views/panel_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e176777b74d41368d272f6cd17e39cb3503d1888$ +// $hash=82c491148522bb4cd6a0b67af90200f40655c93e$ // #include "libcef_dll/ctocpp/views/panel_ctocpp.h" @@ -24,12 +24,15 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefPanel::CreatePanel( CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -45,6 +48,8 @@ CefRefPtr CefPanel::CreatePanel( // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsWindow() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_window)) return NULL; @@ -60,6 +65,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsWindow() { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::SetToFillLayout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_to_fill_layout)) return NULL; @@ -76,6 +83,8 @@ CefRefPtr CefPanelCToCpp::SetToFillLayout() { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::SetToBoxLayout( const CefBoxLayoutSettings& settings) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_to_box_layout)) return NULL; @@ -90,6 +99,8 @@ CefRefPtr CefPanelCToCpp::SetToBoxLayout( } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetLayout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_layout)) return NULL; @@ -104,6 +115,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetLayout() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::Layout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, layout)) return; @@ -116,6 +129,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::Layout() { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::AddChildView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_child_view)) return; @@ -133,6 +148,8 @@ void CefPanelCToCpp::AddChildView(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::AddChildViewAt(CefRefPtr view, int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_child_view_at)) return; @@ -154,6 +171,8 @@ void CefPanelCToCpp::AddChildViewAt(CefRefPtr view, int index) { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::ReorderChildView(CefRefPtr view, int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reorder_child_view)) return; @@ -171,6 +190,8 @@ void CefPanelCToCpp::ReorderChildView(CefRefPtr view, int index) { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RemoveChildView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_child_view)) return; @@ -187,6 +208,8 @@ void CefPanelCToCpp::RemoveChildView(CefRefPtr view) { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RemoveAllChildViews() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_all_child_views)) return; @@ -198,6 +221,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RemoveAllChildViews() { } NO_SANITIZE("cfi-icall") size_t CefPanelCToCpp::GetChildViewCount() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_child_view_count)) return 0; @@ -213,6 +238,8 @@ NO_SANITIZE("cfi-icall") size_t CefPanelCToCpp::GetChildViewCount() { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetChildViewAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_child_view_at)) return NULL; @@ -233,6 +260,8 @@ CefRefPtr CefPanelCToCpp::GetChildViewAt(int index) { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -247,6 +276,8 @@ CefRefPtr CefPanelCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -261,6 +292,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -276,6 +309,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -290,6 +325,8 @@ CefRefPtr CefPanelCToCpp::AsScrollView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -304,6 +341,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefPanelCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -321,6 +360,8 @@ NO_SANITIZE("cfi-icall") CefString CefPanelCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefPanelCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -337,6 +378,8 @@ CefString CefPanelCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -351,6 +394,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -365,6 +410,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAttached() { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -385,6 +432,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -399,6 +448,8 @@ CefRefPtr CefPanelCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -413,6 +464,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -427,6 +480,8 @@ NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -438,6 +493,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -452,6 +509,8 @@ NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -463,6 +522,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetGroupID(int group_id) { } NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -478,6 +539,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefPanelCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -492,6 +555,8 @@ CefRefPtr CefPanelCToCpp::GetViewForID(int id) { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -503,6 +568,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -517,6 +584,8 @@ NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -531,6 +600,8 @@ NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBoundsInScreen() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -542,6 +613,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -557,6 +630,8 @@ NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -568,6 +643,8 @@ void CefPanelCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefPanelCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -582,6 +659,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefPanelCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -596,6 +675,8 @@ NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -607,6 +688,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -621,6 +704,8 @@ NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -635,6 +720,8 @@ NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -649,6 +736,8 @@ NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -660,6 +749,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -671,6 +762,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -685,6 +778,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -699,6 +794,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -710,6 +807,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -724,6 +823,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsEnabled() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -735,6 +836,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -749,6 +852,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -763,6 +868,8 @@ NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -775,6 +882,8 @@ NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -786,6 +895,8 @@ void CefPanelCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefPanelCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -801,6 +912,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefPanelCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -816,6 +929,8 @@ bool CefPanelCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -831,6 +946,8 @@ bool CefPanelCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -846,6 +963,8 @@ bool CefPanelCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -862,6 +981,8 @@ bool CefPanelCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -884,6 +1005,8 @@ bool CefPanelCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -907,6 +1030,12 @@ bool CefPanelCToCpp::ConvertPointFromView(CefRefPtr view, CefPanelCToCpp::CefPanelCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPanelCToCpp::~CefPanelCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_panel_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/panel_ctocpp.h b/libcef_dll/ctocpp/views/panel_ctocpp.h index 72a11e983..afc818800 100644 --- a/libcef_dll/ctocpp/views/panel_ctocpp.h +++ b/libcef_dll/ctocpp/views/panel_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6b116414aad7732aabd1aaec10e10ef71a129fd3$ +// $hash=34498fb3fa5c4ee4d54e44e627ae9fc79e3144c4$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_CTOCPP_H_ @@ -38,6 +38,7 @@ class CefPanelCToCpp : public CefCToCppRefCounted { public: CefPanelCToCpp(); + virtual ~CefPanelCToCpp(); // CefPanel methods. CefRefPtr AsWindow() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/panel_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/panel_delegate_ctocpp.cc index 31089cf08..816fa1289 100644 --- a/libcef_dll/ctocpp/views/panel_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/panel_delegate_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=eebb2e10204cdea907e39df483f5d6214dbec09f$ +// $hash=88c32ad4a24a5368d1db0f8b1850537b8913f0c4$ // #include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefSize CefPanelDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -42,6 +45,8 @@ CefSize CefPanelDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefPanelDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -64,6 +69,8 @@ CefSize CefPanelDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefPanelDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -87,6 +94,8 @@ CefSize CefPanelDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefPanelDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -111,6 +120,8 @@ NO_SANITIZE("cfi-icall") void CefPanelDelegateCToCpp::OnParentViewChanged(CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -136,6 +147,8 @@ NO_SANITIZE("cfi-icall") void CefPanelDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -159,6 +172,8 @@ void CefPanelDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefPanelDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -177,6 +192,8 @@ void CefPanelDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefPanelDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -197,6 +214,12 @@ void CefPanelDelegateCToCpp::OnBlur(CefRefPtr view) { CefPanelDelegateCToCpp::CefPanelDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefPanelDelegateCToCpp::~CefPanelDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_panel_delegate_t* CefCToCppRefCounted { public: CefPanelDelegateCToCpp(); + virtual ~CefPanelDelegateCToCpp(); // CefPanelDelegate methods. diff --git a/libcef_dll/ctocpp/views/scroll_view_ctocpp.cc b/libcef_dll/ctocpp/views/scroll_view_ctocpp.cc index 1e0355495..77d774a2d 100644 --- a/libcef_dll/ctocpp/views/scroll_view_ctocpp.cc +++ b/libcef_dll/ctocpp/views/scroll_view_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1f45062afe711a3ee71be696f5a2d45cce8d94f8$ +// $hash=ef1a10743eecd07531e8ef007ecaf448ff085f0a$ // #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h" @@ -20,12 +20,15 @@ #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefScrollView::CreateScrollView( CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -42,6 +45,8 @@ CefRefPtr CefScrollView::CreateScrollView( NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetContentView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_content_view)) return; @@ -59,6 +64,8 @@ void CefScrollViewCToCpp::SetContentView(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetContentView() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_content_view)) return NULL; @@ -73,6 +80,8 @@ CefRefPtr CefScrollViewCToCpp::GetContentView() { } NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetVisibleContentRect() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_visible_content_rect)) return CefRect(); @@ -87,6 +96,8 @@ NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetVisibleContentRect() { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasHorizontalScrollbar() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_horizontal_scrollbar)) return false; @@ -102,6 +113,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasHorizontalScrollbar() { NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetHorizontalScrollbarHeight() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_horizontal_scrollbar_height)) return 0; @@ -116,6 +129,8 @@ int CefScrollViewCToCpp::GetHorizontalScrollbarHeight() { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasVerticalScrollbar() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_vertical_scrollbar)) return false; @@ -130,6 +145,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasVerticalScrollbar() { } NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetVerticalScrollbarWidth() { + shutdown_checker::AssertNotShutdown(); + cef_scroll_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_vertical_scrollbar_width)) return 0; @@ -145,6 +162,8 @@ NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetVerticalScrollbarWidth() { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -159,6 +178,8 @@ CefRefPtr CefScrollViewCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -173,6 +194,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -188,6 +211,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -203,6 +228,8 @@ CefRefPtr CefScrollViewCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -217,6 +244,8 @@ CefRefPtr CefScrollViewCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefScrollViewCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -234,6 +263,8 @@ NO_SANITIZE("cfi-icall") CefString CefScrollViewCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefScrollViewCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -250,6 +281,8 @@ CefString CefScrollViewCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -264,6 +297,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -279,6 +314,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAttached() { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -299,6 +336,8 @@ bool CefScrollViewCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -313,6 +352,8 @@ CefRefPtr CefScrollViewCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -327,6 +368,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -341,6 +384,8 @@ NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -352,6 +397,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -366,6 +413,8 @@ NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -378,6 +427,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetGroupID(int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -393,6 +444,8 @@ CefRefPtr CefScrollViewCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefScrollViewCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -408,6 +461,8 @@ CefRefPtr CefScrollViewCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -419,6 +474,8 @@ void CefScrollViewCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -433,6 +490,8 @@ NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -448,6 +507,8 @@ NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBoundsInScreen() { NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -459,6 +520,8 @@ void CefScrollViewCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -474,6 +537,8 @@ NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -485,6 +550,8 @@ void CefScrollViewCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefScrollViewCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -499,6 +566,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefScrollViewCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -513,6 +582,8 @@ NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -524,6 +595,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -538,6 +611,8 @@ NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -552,6 +627,8 @@ NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -566,6 +643,8 @@ NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -577,6 +656,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -588,6 +669,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -602,6 +685,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -616,6 +701,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -627,6 +714,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -642,6 +731,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsEnabled() { NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -653,6 +744,8 @@ void CefScrollViewCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -667,6 +760,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -681,6 +776,8 @@ NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -693,6 +790,8 @@ NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -704,6 +803,8 @@ void CefScrollViewCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefScrollViewCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -719,6 +820,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefScrollViewCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -734,6 +837,8 @@ bool CefScrollViewCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -749,6 +854,8 @@ bool CefScrollViewCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -764,6 +871,8 @@ bool CefScrollViewCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -780,6 +889,8 @@ bool CefScrollViewCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -802,6 +913,8 @@ bool CefScrollViewCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -825,6 +938,12 @@ bool CefScrollViewCToCpp::ConvertPointFromView(CefRefPtr view, CefScrollViewCToCpp::CefScrollViewCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefScrollViewCToCpp::~CefScrollViewCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_scroll_view_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/scroll_view_ctocpp.h b/libcef_dll/ctocpp/views/scroll_view_ctocpp.h index b8bc38d15..d24cb69e9 100644 --- a/libcef_dll/ctocpp/views/scroll_view_ctocpp.h +++ b/libcef_dll/ctocpp/views/scroll_view_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=449d87f51627999388402fb81e921d2260d129d2$ +// $hash=d595053c7f504c985e1e0e723d0a9a707246af75$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_SCROLL_VIEW_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefScrollViewCToCpp : public CefCToCppRefCounted { public: CefScrollViewCToCpp(); + virtual ~CefScrollViewCToCpp(); // CefScrollView methods. void SetContentView(CefRefPtr view) OVERRIDE; diff --git a/libcef_dll/ctocpp/views/textfield_ctocpp.cc b/libcef_dll/ctocpp/views/textfield_ctocpp.cc index adf8024ab..595426102 100644 --- a/libcef_dll/ctocpp/views/textfield_ctocpp.cc +++ b/libcef_dll/ctocpp/views/textfield_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bd3736c06ac24ec5368944bd88a6c3edb074ee47$ +// $hash=ab0bf369a9ba09450fd8adc5a3c040f62f90ffaa$ // #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" @@ -21,12 +21,15 @@ #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefTextfield::CreateTextfield( CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -43,6 +46,8 @@ CefRefPtr CefTextfield::CreateTextfield( NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetPasswordInput(bool password_input) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_password_input)) return; @@ -54,6 +59,8 @@ void CefTextfieldCToCpp::SetPasswordInput(bool password_input) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsPasswordInput() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_password_input)) return false; @@ -68,6 +75,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsPasswordInput() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetReadOnly(bool read_only) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_read_only)) return; @@ -79,6 +88,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetReadOnly(bool read_only) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsReadOnly() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_read_only)) return false; @@ -93,6 +104,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsReadOnly() { } NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetText() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_text)) return CefString(); @@ -110,6 +123,8 @@ NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetText() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_text)) return; @@ -127,6 +142,8 @@ void CefTextfieldCToCpp::SetText(const CefString& text) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::AppendText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, append_text)) return; @@ -144,6 +161,8 @@ void CefTextfieldCToCpp::AppendText(const CefString& text) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::InsertOrReplaceText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, insert_or_replace_text)) return; @@ -160,6 +179,8 @@ void CefTextfieldCToCpp::InsertOrReplaceText(const CefString& text) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::HasSelection() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_selection)) return false; @@ -174,6 +195,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::HasSelection() { } NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetSelectedText() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selected_text)) return CefString(); @@ -190,6 +213,8 @@ NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetSelectedText() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SelectAll(bool reversed) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, select_all)) return; @@ -201,6 +226,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SelectAll(bool reversed) { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearSelection() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear_selection)) return; @@ -212,6 +239,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearSelection() { } NO_SANITIZE("cfi-icall") CefRange CefTextfieldCToCpp::GetSelectedRange() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selected_range)) return CefRange(); @@ -227,6 +256,8 @@ NO_SANITIZE("cfi-icall") CefRange CefTextfieldCToCpp::GetSelectedRange() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SelectRange(const CefRange& range) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, select_range)) return; @@ -238,6 +269,8 @@ void CefTextfieldCToCpp::SelectRange(const CefRange& range) { } NO_SANITIZE("cfi-icall") size_t CefTextfieldCToCpp::GetCursorPosition() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_cursor_position)) return 0; @@ -253,6 +286,8 @@ NO_SANITIZE("cfi-icall") size_t CefTextfieldCToCpp::GetCursorPosition() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetTextColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_text_color)) return; @@ -264,6 +299,8 @@ void CefTextfieldCToCpp::SetTextColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetTextColor() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_text_color)) return 0; @@ -279,6 +316,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetTextColor() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetSelectionTextColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_selection_text_color)) return; @@ -291,6 +330,8 @@ void CefTextfieldCToCpp::SetSelectionTextColor(cef_color_t color) { NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetSelectionTextColor() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_text_color)) return 0; @@ -306,6 +347,8 @@ cef_color_t CefTextfieldCToCpp::GetSelectionTextColor() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetSelectionBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_selection_background_color)) return; @@ -318,6 +361,8 @@ void CefTextfieldCToCpp::SetSelectionBackgroundColor(cef_color_t color) { NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetSelectionBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_selection_background_color)) return 0; @@ -333,6 +378,8 @@ cef_color_t CefTextfieldCToCpp::GetSelectionBackgroundColor() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetFontList(const CefString& font_list) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_font_list)) return; @@ -351,6 +398,8 @@ void CefTextfieldCToCpp::SetFontList(const CefString& font_list) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ApplyTextColor(cef_color_t color, const CefRange& range) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, apply_text_color)) return; @@ -365,6 +414,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ApplyTextStyle(cef_text_style_t style, bool add, const CefRange& range) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, apply_text_style)) return; @@ -377,6 +428,8 @@ void CefTextfieldCToCpp::ApplyTextStyle(cef_text_style_t style, NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsCommandEnabled(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_command_enabled)) return false; @@ -392,6 +445,8 @@ bool CefTextfieldCToCpp::IsCommandEnabled(int command_id) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ExecuteCommand(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, execute_command)) return; @@ -403,6 +458,8 @@ void CefTextfieldCToCpp::ExecuteCommand(int command_id) { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearEditHistory() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, clear_edit_history)) return; @@ -415,6 +472,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearEditHistory() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetPlaceholderText(const CefString& text) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_placeholder_text)) return; @@ -431,6 +490,8 @@ void CefTextfieldCToCpp::SetPlaceholderText(const CefString& text) { } NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetPlaceholderText() { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_placeholder_text)) return CefString(); @@ -448,6 +509,8 @@ NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetPlaceholderText() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetPlaceholderTextColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_placeholder_text_color)) return; @@ -460,6 +523,8 @@ void CefTextfieldCToCpp::SetPlaceholderTextColor(cef_color_t color) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetAccessibleName(const CefString& name) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accessible_name)) return; @@ -477,6 +542,8 @@ void CefTextfieldCToCpp::SetAccessibleName(const CefString& name) { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -491,6 +558,8 @@ CefRefPtr CefTextfieldCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -505,6 +574,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -520,6 +591,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -535,6 +608,8 @@ CefRefPtr CefTextfieldCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -549,6 +624,8 @@ CefRefPtr CefTextfieldCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -566,6 +643,8 @@ NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -582,6 +661,8 @@ CefString CefTextfieldCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -596,6 +677,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -611,6 +694,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAttached() { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -631,6 +716,8 @@ bool CefTextfieldCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -645,6 +732,8 @@ CefRefPtr CefTextfieldCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -659,6 +748,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -673,6 +764,8 @@ NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -684,6 +777,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -698,6 +793,8 @@ NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -710,6 +807,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetGroupID(int group_id) { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -725,6 +824,8 @@ CefRefPtr CefTextfieldCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefTextfieldCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -740,6 +841,8 @@ CefRefPtr CefTextfieldCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -751,6 +854,8 @@ void CefTextfieldCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -765,6 +870,8 @@ NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -779,6 +886,8 @@ NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBoundsInScreen() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -790,6 +899,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -805,6 +916,8 @@ NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -816,6 +929,8 @@ void CefTextfieldCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefTextfieldCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -830,6 +945,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefTextfieldCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -844,6 +961,8 @@ NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -855,6 +974,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -869,6 +990,8 @@ NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -883,6 +1006,8 @@ NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -897,6 +1022,8 @@ NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -908,6 +1035,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -919,6 +1048,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -933,6 +1064,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -947,6 +1080,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -958,6 +1093,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -972,6 +1109,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsEnabled() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -983,6 +1122,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -997,6 +1138,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -1011,6 +1154,8 @@ NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -1023,6 +1168,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -1034,6 +1181,8 @@ void CefTextfieldCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -1049,6 +1198,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -1064,6 +1215,8 @@ bool CefTextfieldCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -1079,6 +1232,8 @@ bool CefTextfieldCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -1094,6 +1249,8 @@ bool CefTextfieldCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -1110,6 +1267,8 @@ bool CefTextfieldCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -1132,6 +1291,8 @@ bool CefTextfieldCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -1155,6 +1316,12 @@ bool CefTextfieldCToCpp::ConvertPointFromView(CefRefPtr view, CefTextfieldCToCpp::CefTextfieldCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTextfieldCToCpp::~CefTextfieldCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_textfield_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/views/textfield_ctocpp.h b/libcef_dll/ctocpp/views/textfield_ctocpp.h index 7d965a87d..022a70c3c 100644 --- a/libcef_dll/ctocpp/views/textfield_ctocpp.h +++ b/libcef_dll/ctocpp/views/textfield_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6f93be2614acf11078bc37e77bae08a2275bba95$ +// $hash=2ca8fa808e192f52dd9df44bd424096890d4fedf$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefTextfieldCToCpp : public CefCToCppRefCounted { public: CefTextfieldCToCpp(); + virtual ~CefTextfieldCToCpp(); // CefTextfield methods. void SetPasswordInput(bool password_input) OVERRIDE; diff --git a/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.cc index 3b66385c2..b94da76ea 100644 --- a/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bbe6563b5645c4d9c9ef38be7570bfa825b3dfb7$ +// $hash=13c568e0e5acfbb24da30fa9ff4516ab9b7a449e$ // #include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h" #include "libcef_dll/cpptoc/views/textfield_cpptoc.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefTextfieldDelegateCToCpp::OnKeyEvent(CefRefPtr textfield, const CefKeyEvent& event) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_key_event)) return false; @@ -43,6 +46,8 @@ bool CefTextfieldDelegateCToCpp::OnKeyEvent(CefRefPtr textfield, NO_SANITIZE("cfi-icall") void CefTextfieldDelegateCToCpp::OnAfterUserAction( CefRefPtr textfield) { + shutdown_checker::AssertNotShutdown(); + cef_textfield_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_after_user_action)) return; @@ -60,6 +65,8 @@ void CefTextfieldDelegateCToCpp::OnAfterUserAction( NO_SANITIZE("cfi-icall") CefSize CefTextfieldDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -82,6 +89,8 @@ CefSize CefTextfieldDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefTextfieldDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -104,6 +113,8 @@ CefSize CefTextfieldDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefTextfieldDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -127,6 +138,8 @@ CefSize CefTextfieldDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefTextfieldDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -152,6 +165,8 @@ void CefTextfieldDelegateCToCpp::OnParentViewChanged( CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -177,6 +192,8 @@ NO_SANITIZE("cfi-icall") void CefTextfieldDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -200,6 +217,8 @@ void CefTextfieldDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefTextfieldDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -218,6 +237,8 @@ void CefTextfieldDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefTextfieldDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -238,6 +259,12 @@ void CefTextfieldDelegateCToCpp::OnBlur(CefRefPtr view) { CefTextfieldDelegateCToCpp::CefTextfieldDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefTextfieldDelegateCToCpp::~CefTextfieldDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_textfield_delegate_t* CefCToCppRefCounted< CefTextfieldDelegateCToCpp, diff --git a/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h b/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h index 32287a7a9..b2e057901 100644 --- a/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=0dea3c72fc25391dee433ed53eb4f5e64b8cde05$ +// $hash=7e9a55e827274278c30ee0a17b6271089f660199$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_DELEGATE_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefTextfieldDelegateCToCpp cef_textfield_delegate_t> { public: CefTextfieldDelegateCToCpp(); + virtual ~CefTextfieldDelegateCToCpp(); // CefTextfieldDelegate methods. bool OnKeyEvent(CefRefPtr textfield, diff --git a/libcef_dll/ctocpp/views/view_ctocpp.cc b/libcef_dll/ctocpp/views/view_ctocpp.cc index 01b1c56ca..9f0c742f3 100644 --- a/libcef_dll/ctocpp/views/view_ctocpp.cc +++ b/libcef_dll/ctocpp/views/view_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c5b0ac1b0b5eaa537353cd942bd698494369ede9$ +// $hash=d9b3283c6b62f62541adfadc9829e759fd011693$ // #include "libcef_dll/ctocpp/views/view_ctocpp.h" @@ -22,11 +22,14 @@ #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h" #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -41,6 +44,8 @@ CefRefPtr CefViewCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -55,6 +60,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -70,6 +77,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -84,6 +93,8 @@ CefRefPtr CefViewCToCpp::AsScrollView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -98,6 +109,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefViewCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -115,6 +128,8 @@ NO_SANITIZE("cfi-icall") CefString CefViewCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefViewCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -131,6 +146,8 @@ CefString CefViewCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -145,6 +162,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -159,6 +178,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAttached() { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -179,6 +200,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -193,6 +216,8 @@ CefRefPtr CefViewCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -207,6 +232,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -221,6 +248,8 @@ NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -232,6 +261,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -246,6 +277,8 @@ NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -257,6 +290,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetGroupID(int group_id) { } NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -272,6 +307,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefViewCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -286,6 +323,8 @@ CefRefPtr CefViewCToCpp::GetViewForID(int id) { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -297,6 +336,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -311,6 +352,8 @@ NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -325,6 +368,8 @@ NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBoundsInScreen() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -336,6 +381,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -351,6 +398,8 @@ NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -362,6 +411,8 @@ void CefViewCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefViewCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -376,6 +427,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefViewCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -390,6 +443,8 @@ NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -401,6 +456,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -415,6 +472,8 @@ NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -429,6 +488,8 @@ NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -443,6 +504,8 @@ NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -454,6 +517,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -465,6 +530,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -479,6 +546,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -493,6 +562,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -504,6 +575,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -518,6 +591,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsEnabled() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -529,6 +604,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -543,6 +620,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -557,6 +636,8 @@ NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefViewCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -569,6 +650,8 @@ NO_SANITIZE("cfi-icall") void CefViewCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -580,6 +663,8 @@ void CefViewCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefViewCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -595,6 +680,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefViewCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -610,6 +697,8 @@ bool CefViewCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -625,6 +714,8 @@ bool CefViewCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -640,6 +731,8 @@ bool CefViewCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -656,6 +749,8 @@ bool CefViewCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -678,6 +773,8 @@ bool CefViewCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefViewCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -701,6 +798,12 @@ bool CefViewCToCpp::ConvertPointFromView(CefRefPtr view, CefViewCToCpp::CefViewCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefViewCToCpp::~CefViewCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_view_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/view_ctocpp.h b/libcef_dll/ctocpp/views/view_ctocpp.h index 4d9888237..43c5f1b8e 100644 --- a/libcef_dll/ctocpp/views/view_ctocpp.h +++ b/libcef_dll/ctocpp/views/view_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=c3d8adff25c82d351b798649a480cf03459c18b1$ +// $hash=ffb88cfe6b2e62b3141b974fb8b95134efe7e41d$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_VIEW_CTOCPP_H_ @@ -42,6 +42,7 @@ class CefViewCToCpp : public CefCToCppRefCounted { public: CefViewCToCpp(); + virtual ~CefViewCToCpp(); // CefView methods. CefRefPtr AsBrowserView() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/view_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/view_delegate_ctocpp.cc index 5d00bf928..27e9e2ca0 100644 --- a/libcef_dll/ctocpp/views/view_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/view_delegate_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=73eb00459c1666846ffdb155f8794a4683805815$ +// $hash=5e86714a2c9fa13e5ff7dc221900215f78caa2a6$ // #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h" @@ -20,11 +20,14 @@ #include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefSize CefViewDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -46,6 +49,8 @@ CefSize CefViewDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefViewDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -67,6 +72,8 @@ CefSize CefViewDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefViewDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -89,6 +96,8 @@ CefSize CefViewDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefViewDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -112,6 +121,8 @@ NO_SANITIZE("cfi-icall") void CefViewDelegateCToCpp::OnParentViewChanged(CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) return; @@ -136,6 +147,8 @@ NO_SANITIZE("cfi-icall") void CefViewDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) return; @@ -158,6 +171,8 @@ void CefViewDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefViewDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_focus)) return; @@ -175,6 +190,8 @@ void CefViewDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefViewDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_blur)) return; @@ -194,6 +211,12 @@ void CefViewDelegateCToCpp::OnBlur(CefRefPtr view) { CefViewDelegateCToCpp::CefViewDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefViewDelegateCToCpp::~CefViewDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_view_delegate_t* CefCToCppRefCounted { public: CefViewDelegateCToCpp(); + virtual ~CefViewDelegateCToCpp(); // CefViewDelegate methods. CefSize GetPreferredSize(CefRefPtr view) override; diff --git a/libcef_dll/ctocpp/views/window_ctocpp.cc b/libcef_dll/ctocpp/views/window_ctocpp.cc index b67b3ec93..d9977d40e 100644 --- a/libcef_dll/ctocpp/views/window_ctocpp.cc +++ b/libcef_dll/ctocpp/views/window_ctocpp.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=50523c3af4096fd2f5f6dda0bfb9b328674fbabe$ +// $hash=c84c5f339d403831921a9c36b816dd51a2514d3d$ // #include "libcef_dll/ctocpp/views/window_ctocpp.h" @@ -27,12 +27,15 @@ #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h" #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefWindow::CreateTopLevelWindow( CefRefPtr delegate) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate @@ -48,6 +51,8 @@ CefRefPtr CefWindow::CreateTopLevelWindow( // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Show() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, show)) return; @@ -59,6 +64,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Show() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Hide() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, hide)) return; @@ -71,6 +78,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Hide() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::CenterWindow(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, center_window)) return; @@ -82,6 +91,8 @@ void CefWindowCToCpp::CenterWindow(const CefSize& size) { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Close() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close)) return; @@ -93,6 +104,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Close() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsClosed() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_closed)) return false; @@ -107,6 +120,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsClosed() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Activate() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, activate)) return; @@ -118,6 +133,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Activate() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Deactivate() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, deactivate)) return; @@ -129,6 +146,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Deactivate() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsActive() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_active)) return false; @@ -143,6 +162,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsActive() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::BringToTop() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, bring_to_top)) return; @@ -154,6 +175,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::BringToTop() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetAlwaysOnTop(bool on_top) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_always_on_top)) return; @@ -165,6 +188,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetAlwaysOnTop(bool on_top) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAlwaysOnTop() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_always_on_top)) return false; @@ -179,6 +204,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAlwaysOnTop() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Maximize() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, maximize)) return; @@ -190,6 +217,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Maximize() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Minimize() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, minimize)) return; @@ -201,6 +230,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Minimize() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Restore() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, restore)) return; @@ -212,6 +243,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Restore() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFullscreen(bool fullscreen) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_fullscreen)) return; @@ -223,6 +256,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFullscreen(bool fullscreen) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMaximized() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_maximized)) return false; @@ -237,6 +272,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMaximized() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMinimized() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_minimized)) return false; @@ -251,6 +288,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMinimized() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFullscreen() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_fullscreen)) return false; @@ -266,6 +305,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFullscreen() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetTitle(const CefString& title) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_title)) return; @@ -279,6 +320,8 @@ void CefWindowCToCpp::SetTitle(const CefString& title) { } NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTitle() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_title)) return CefString(); @@ -296,6 +339,8 @@ NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTitle() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetWindowIcon(CefRefPtr image) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_window_icon)) return; @@ -312,6 +357,8 @@ void CefWindowCToCpp::SetWindowIcon(CefRefPtr image) { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetWindowIcon() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window_icon)) return NULL; @@ -327,6 +374,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetWindowIcon() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetWindowAppIcon(CefRefPtr image) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_window_app_icon)) return; @@ -344,6 +393,8 @@ void CefWindowCToCpp::SetWindowAppIcon(CefRefPtr image) { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetWindowAppIcon() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window_app_icon)) return NULL; @@ -361,6 +412,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::ShowMenu(CefRefPtr menu_model, const CefPoint& screen_point, cef_menu_anchor_position_t anchor_position) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, show_menu)) return; @@ -378,6 +431,8 @@ void CefWindowCToCpp::ShowMenu(CefRefPtr menu_model, } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::CancelMenu() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, cancel_menu)) return; @@ -389,6 +444,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::CancelMenu() { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetDisplay() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_display)) return NULL; @@ -404,6 +461,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetDisplay() { NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetClientAreaBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_client_area_bounds_in_screen)) return CefRect(); @@ -420,6 +479,8 @@ CefRect CefWindowCToCpp::GetClientAreaBoundsInScreen() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetDraggableRegions( const std::vector& regions) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_draggable_regions)) return; @@ -450,6 +511,8 @@ void CefWindowCToCpp::SetDraggableRegions( } NO_SANITIZE("cfi-icall") CefWindowHandle CefWindowCToCpp::GetWindowHandle() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_window_handle)) return kNullWindowHandle; @@ -465,6 +528,8 @@ NO_SANITIZE("cfi-icall") CefWindowHandle CefWindowCToCpp::GetWindowHandle() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SendKeyPress(int key_code, uint32 event_flags) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_key_press)) return; @@ -477,6 +542,8 @@ void CefWindowCToCpp::SendKeyPress(int key_code, uint32 event_flags) { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SendMouseMove(int screen_x, int screen_y) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_move)) return; @@ -491,6 +558,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SendMouseEvents(cef_mouse_button_type_t button, bool mouse_down, bool mouse_up) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, send_mouse_events)) return; @@ -507,6 +576,8 @@ void CefWindowCToCpp::SetAccelerator(int command_id, bool shift_pressed, bool ctrl_pressed, bool alt_pressed) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_accelerator)) return; @@ -520,6 +591,8 @@ void CefWindowCToCpp::SetAccelerator(int command_id, NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAccelerator(int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_accelerator)) return; @@ -531,6 +604,8 @@ void CefWindowCToCpp::RemoveAccelerator(int command_id) { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllAccelerators() { + shutdown_checker::AssertNotShutdown(); + cef_window_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_all_accelerators)) return; @@ -542,6 +617,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllAccelerators() { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsWindow() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_window)) return NULL; @@ -557,6 +634,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsWindow() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::SetToFillLayout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_to_fill_layout)) return NULL; @@ -573,6 +652,8 @@ CefRefPtr CefWindowCToCpp::SetToFillLayout() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::SetToBoxLayout( const CefBoxLayoutSettings& settings) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_to_box_layout)) return NULL; @@ -587,6 +668,8 @@ CefRefPtr CefWindowCToCpp::SetToBoxLayout( } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetLayout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_layout)) return NULL; @@ -601,6 +684,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetLayout() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Layout() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, layout)) return; @@ -613,6 +698,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Layout() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::AddChildView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, add_child_view)) return; @@ -630,6 +717,8 @@ void CefWindowCToCpp::AddChildView(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::AddChildViewAt(CefRefPtr view, int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, add_child_view_at)) return; @@ -651,6 +740,8 @@ void CefWindowCToCpp::AddChildViewAt(CefRefPtr view, int index) { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::ReorderChildView(CefRefPtr view, int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, reorder_child_view)) return; @@ -668,6 +759,8 @@ void CefWindowCToCpp::ReorderChildView(CefRefPtr view, int index) { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveChildView(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, remove_child_view)) return; @@ -684,6 +777,8 @@ void CefWindowCToCpp::RemoveChildView(CefRefPtr view) { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllChildViews() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, remove_all_child_views)) return; @@ -695,6 +790,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllChildViews() { } NO_SANITIZE("cfi-icall") size_t CefWindowCToCpp::GetChildViewCount() { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_child_view_count)) return 0; @@ -710,6 +807,8 @@ NO_SANITIZE("cfi-icall") size_t CefWindowCToCpp::GetChildViewCount() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetChildViewAt(int index) { + shutdown_checker::AssertNotShutdown(); + cef_panel_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_child_view_at)) return NULL; @@ -730,6 +829,8 @@ CefRefPtr CefWindowCToCpp::GetChildViewAt(int index) { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsBrowserView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; @@ -744,6 +845,8 @@ CefRefPtr CefWindowCToCpp::AsBrowserView() { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsButton() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; @@ -758,6 +861,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsButton() { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsPanel() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; @@ -773,6 +878,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsPanel() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsScrollView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; @@ -788,6 +895,8 @@ CefRefPtr CefWindowCToCpp::AsScrollView() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::AsTextfield() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; @@ -802,6 +911,8 @@ CefRefPtr CefWindowCToCpp::AsTextfield() { } NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTypeString() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); @@ -819,6 +930,8 @@ NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTypeString() { NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::ToString(bool include_children) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); @@ -835,6 +948,8 @@ CefString CefWindowCToCpp::ToString(bool include_children) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsValid() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; @@ -849,6 +964,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsValid() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAttached() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; @@ -863,6 +980,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAttached() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsSame(CefRefPtr that) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; @@ -883,6 +1002,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsSame(CefRefPtr that) { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetDelegate() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; @@ -897,6 +1018,8 @@ CefRefPtr CefWindowCToCpp::GetDelegate() { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetWindow() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; @@ -911,6 +1034,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetWindow() { } NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; @@ -925,6 +1050,8 @@ NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetID() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; @@ -936,6 +1063,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetID(int id) { } NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetGroupID() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; @@ -950,6 +1079,8 @@ NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetGroupID() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetGroupID(int group_id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; @@ -961,6 +1092,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetGroupID(int group_id) { } NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetParentView() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; @@ -976,6 +1109,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetParentView() { NO_SANITIZE("cfi-icall") CefRefPtr CefWindowCToCpp::GetViewForID(int id) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; @@ -991,6 +1126,8 @@ CefRefPtr CefWindowCToCpp::GetViewForID(int id) { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetBounds(const CefRect& bounds) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; @@ -1002,6 +1139,8 @@ void CefWindowCToCpp::SetBounds(const CefRect& bounds) { } NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBounds() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); @@ -1016,6 +1155,8 @@ NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBounds() { } NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBoundsInScreen() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); @@ -1030,6 +1171,8 @@ NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBoundsInScreen() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetSize(const CefSize& size) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; @@ -1041,6 +1184,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetSize(const CefSize& size) { } NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); @@ -1056,6 +1201,8 @@ NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetSize() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetPosition(const CefPoint& position) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; @@ -1067,6 +1214,8 @@ void CefWindowCToCpp::SetPosition(const CefPoint& position) { } NO_SANITIZE("cfi-icall") CefPoint CefWindowCToCpp::GetPosition() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); @@ -1081,6 +1230,8 @@ NO_SANITIZE("cfi-icall") CefPoint CefWindowCToCpp::GetPosition() { } NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); @@ -1095,6 +1246,8 @@ NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetPreferredSize() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SizeToPreferredSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; @@ -1106,6 +1259,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SizeToPreferredSize() { } NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMinimumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); @@ -1120,6 +1275,8 @@ NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMinimumSize() { } NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMaximumSize() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); @@ -1134,6 +1291,8 @@ NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMaximumSize() { } NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetHeightForWidth(int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; @@ -1148,6 +1307,8 @@ NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetHeightForWidth(int width) { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::InvalidateLayout() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; @@ -1159,6 +1320,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::InvalidateLayout() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetVisible(bool visible) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; @@ -1170,6 +1333,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetVisible(bool visible) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsVisible() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; @@ -1184,6 +1349,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsVisible() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsDrawn() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; @@ -1198,6 +1365,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsDrawn() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetEnabled(bool enabled) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; @@ -1209,6 +1378,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetEnabled(bool enabled) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsEnabled() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; @@ -1223,6 +1394,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsEnabled() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFocusable(bool focusable) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; @@ -1234,6 +1407,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFocusable(bool focusable) { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; @@ -1248,6 +1423,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFocusable() { } NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAccessibilityFocusable() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; @@ -1262,6 +1439,8 @@ NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAccessibilityFocusable() { } NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RequestFocus() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; @@ -1274,6 +1453,8 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RequestFocus() { NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetBackgroundColor(cef_color_t color) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; @@ -1285,6 +1466,8 @@ void CefWindowCToCpp::SetBackgroundColor(cef_color_t color) { } NO_SANITIZE("cfi-icall") cef_color_t CefWindowCToCpp::GetBackgroundColor() { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; @@ -1300,6 +1483,8 @@ NO_SANITIZE("cfi-icall") cef_color_t CefWindowCToCpp::GetBackgroundColor() { NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointToScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; @@ -1315,6 +1500,8 @@ bool CefWindowCToCpp::ConvertPointToScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointFromScreen(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; @@ -1330,6 +1517,8 @@ bool CefWindowCToCpp::ConvertPointFromScreen(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointToWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; @@ -1345,6 +1534,8 @@ bool CefWindowCToCpp::ConvertPointToWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointFromWindow(CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; @@ -1361,6 +1552,8 @@ bool CefWindowCToCpp::ConvertPointFromWindow(CefPoint& point) { NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; @@ -1383,6 +1576,8 @@ bool CefWindowCToCpp::ConvertPointToView(CefRefPtr view, NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { + shutdown_checker::AssertNotShutdown(); + cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; @@ -1406,6 +1601,12 @@ bool CefWindowCToCpp::ConvertPointFromView(CefRefPtr view, CefWindowCToCpp::CefWindowCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWindowCToCpp::~CefWindowCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_window_t* CefCToCppRefCounted::UnwrapDerived( diff --git a/libcef_dll/ctocpp/views/window_ctocpp.h b/libcef_dll/ctocpp/views/window_ctocpp.h index a9b426dd6..7ceaafef4 100644 --- a/libcef_dll/ctocpp/views/window_ctocpp.h +++ b/libcef_dll/ctocpp/views/window_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=179f75853f115673b26a1e9ff857289e000fc529$ +// $hash=1e04ddcff8f7d50d52e1d21c0d20c9b246ff8b67$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefWindowCToCpp : public CefCToCppRefCounted { public: CefWindowCToCpp(); + virtual ~CefWindowCToCpp(); // CefWindow methods. void Show() OVERRIDE; diff --git a/libcef_dll/ctocpp/views/window_delegate_ctocpp.cc b/libcef_dll/ctocpp/views/window_delegate_ctocpp.cc index 5bf954575..4e11a8349 100644 --- a/libcef_dll/ctocpp/views/window_delegate_ctocpp.cc +++ b/libcef_dll/ctocpp/views/window_delegate_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=86431dec54edf22c5c0dd1d60f3ed889297be073$ +// $hash=b293e7aab991af4d9643913f36fce298093c64ca$ // #include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h" #include "libcef_dll/cpptoc/views/view_cpptoc.h" #include "libcef_dll/cpptoc/views/window_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnWindowCreated(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_window_created)) return; @@ -37,6 +40,8 @@ void CefWindowDelegateCToCpp::OnWindowCreated(CefRefPtr window) { NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnWindowDestroyed(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_window_destroyed)) return; @@ -57,6 +62,8 @@ CefRefPtr CefWindowDelegateCToCpp::GetParentWindow( CefRefPtr window, bool* is_menu, bool* can_activate_menu) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_parent_window)) return NULL; @@ -99,6 +106,8 @@ CefRefPtr CefWindowDelegateCToCpp::GetParentWindow( NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::IsFrameless(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_frameless)) return false; @@ -119,6 +128,8 @@ bool CefWindowDelegateCToCpp::IsFrameless(CefRefPtr window) { NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::CanResize(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_resize)) return false; @@ -139,6 +150,8 @@ bool CefWindowDelegateCToCpp::CanResize(CefRefPtr window) { NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::CanMaximize(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_maximize)) return false; @@ -159,6 +172,8 @@ bool CefWindowDelegateCToCpp::CanMaximize(CefRefPtr window) { NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::CanMinimize(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_minimize)) return false; @@ -179,6 +194,8 @@ bool CefWindowDelegateCToCpp::CanMinimize(CefRefPtr window) { NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::CanClose(CefRefPtr window) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, can_close)) return false; @@ -200,6 +217,8 @@ bool CefWindowDelegateCToCpp::CanClose(CefRefPtr window) { NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::OnAccelerator(CefRefPtr window, int command_id) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_accelerator)) return false; @@ -222,6 +241,8 @@ bool CefWindowDelegateCToCpp::OnAccelerator(CefRefPtr window, NO_SANITIZE("cfi-icall") bool CefWindowDelegateCToCpp::OnKeyEvent(CefRefPtr window, const CefKeyEvent& event) { + shutdown_checker::AssertNotShutdown(); + cef_window_delegate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, on_key_event)) return false; @@ -243,6 +264,8 @@ bool CefWindowDelegateCToCpp::OnKeyEvent(CefRefPtr window, NO_SANITIZE("cfi-icall") CefSize CefWindowDelegateCToCpp::GetPreferredSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) @@ -265,6 +288,8 @@ CefSize CefWindowDelegateCToCpp::GetPreferredSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefWindowDelegateCToCpp::GetMinimumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) @@ -287,6 +312,8 @@ CefSize CefWindowDelegateCToCpp::GetMinimumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") CefSize CefWindowDelegateCToCpp::GetMaximumSize(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) @@ -310,6 +337,8 @@ CefSize CefWindowDelegateCToCpp::GetMaximumSize(CefRefPtr view) { NO_SANITIZE("cfi-icall") int CefWindowDelegateCToCpp::GetHeightForWidth(CefRefPtr view, int width) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) @@ -334,6 +363,8 @@ NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnParentViewChanged(CefRefPtr view, bool added, CefRefPtr parent) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_parent_view_changed)) @@ -359,6 +390,8 @@ NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnChildViewChanged(CefRefPtr view, bool added, CefRefPtr child) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_child_view_changed)) @@ -382,6 +415,8 @@ void CefWindowDelegateCToCpp::OnChildViewChanged(CefRefPtr view, NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnFocus(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_focus)) @@ -400,6 +435,8 @@ void CefWindowDelegateCToCpp::OnFocus(CefRefPtr view) { NO_SANITIZE("cfi-icall") void CefWindowDelegateCToCpp::OnBlur(CefRefPtr view) { + shutdown_checker::AssertNotShutdown(); + cef_view_delegate_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, on_blur)) @@ -420,6 +457,12 @@ void CefWindowDelegateCToCpp::OnBlur(CefRefPtr view) { CefWindowDelegateCToCpp::CefWindowDelegateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWindowDelegateCToCpp::~CefWindowDelegateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_window_delegate_t* CefCToCppRefCounted< CefWindowDelegateCToCpp, diff --git a/libcef_dll/ctocpp/views/window_delegate_ctocpp.h b/libcef_dll/ctocpp/views/window_delegate_ctocpp.h index 1fd87464a..15beba575 100644 --- a/libcef_dll/ctocpp/views/window_delegate_ctocpp.h +++ b/libcef_dll/ctocpp/views/window_delegate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=beaf05cc70c6586ef1297178523f542b8e8ba9b0$ +// $hash=64f116a617afd01284ebb5cc0587c3cb7576451d$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_DELEGATE_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefWindowDelegateCToCpp cef_window_delegate_t> { public: CefWindowDelegateCToCpp(); + virtual ~CefWindowDelegateCToCpp(); // CefWindowDelegate methods. void OnWindowCreated(CefRefPtr window) override; diff --git a/libcef_dll/ctocpp/waitable_event_ctocpp.cc b/libcef_dll/ctocpp/waitable_event_ctocpp.cc index 8c9a831b7..4b15e205e 100644 --- a/libcef_dll/ctocpp/waitable_event_ctocpp.cc +++ b/libcef_dll/ctocpp/waitable_event_ctocpp.cc @@ -9,10 +9,11 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=6389a8402fade5483d5d7bef8c360e60b091e3a9$ +// $hash=6adad274838ecda1d695602455642eceebaeecf5$ // #include "libcef_dll/ctocpp/waitable_event_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -20,6 +21,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefWaitableEvent::CreateWaitableEvent( bool automatic_reset, bool initially_signaled) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute @@ -33,6 +36,8 @@ CefRefPtr CefWaitableEvent::CreateWaitableEvent( // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Reset() { + shutdown_checker::AssertNotShutdown(); + cef_waitable_event_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reset)) return; @@ -44,6 +49,8 @@ NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Reset() { } NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Signal() { + shutdown_checker::AssertNotShutdown(); + cef_waitable_event_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, signal)) return; @@ -55,6 +62,8 @@ NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Signal() { } NO_SANITIZE("cfi-icall") bool CefWaitableEventCToCpp::IsSignaled() { + shutdown_checker::AssertNotShutdown(); + cef_waitable_event_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_signaled)) return false; @@ -69,6 +78,8 @@ NO_SANITIZE("cfi-icall") bool CefWaitableEventCToCpp::IsSignaled() { } NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Wait() { + shutdown_checker::AssertNotShutdown(); + cef_waitable_event_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, wait)) return; @@ -80,6 +91,8 @@ NO_SANITIZE("cfi-icall") void CefWaitableEventCToCpp::Wait() { } NO_SANITIZE("cfi-icall") bool CefWaitableEventCToCpp::TimedWait(int64 max_ms) { + shutdown_checker::AssertNotShutdown(); + cef_waitable_event_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, timed_wait)) return false; @@ -97,6 +110,12 @@ NO_SANITIZE("cfi-icall") bool CefWaitableEventCToCpp::TimedWait(int64 max_ms) { CefWaitableEventCToCpp::CefWaitableEventCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWaitableEventCToCpp::~CefWaitableEventCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_waitable_event_t* CefCToCppRefCounted { public: CefWaitableEventCToCpp(); + virtual ~CefWaitableEventCToCpp(); // CefWaitableEvent methods. void Reset() OVERRIDE; diff --git a/libcef_dll/ctocpp/web_plugin_info_ctocpp.cc b/libcef_dll/ctocpp/web_plugin_info_ctocpp.cc index 86310b8d7..7b7ddf3fc 100644 --- a/libcef_dll/ctocpp/web_plugin_info_ctocpp.cc +++ b/libcef_dll/ctocpp/web_plugin_info_ctocpp.cc @@ -9,14 +9,17 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=45a48d5d97bd0239b2af24e1527211c89d5dec78$ +// $hash=302e7fb07a9a9c9d494e5b99b1b93a079047d67f$ // #include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetName() { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_info_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_name)) return CefString(); @@ -33,6 +36,8 @@ NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetName() { } NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetPath() { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_info_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_path)) return CefString(); @@ -49,6 +54,8 @@ NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetPath() { } NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetVersion() { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_info_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_version)) return CefString(); @@ -65,6 +72,8 @@ NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetVersion() { } NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetDescription() { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_info_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_description)) return CefString(); @@ -84,6 +93,12 @@ NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetDescription() { CefWebPluginInfoCToCpp::CefWebPluginInfoCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginInfoCToCpp::~CefWebPluginInfoCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_web_plugin_info_t* CefCToCppRefCounted { public: CefWebPluginInfoCToCpp(); + virtual ~CefWebPluginInfoCToCpp(); // CefWebPluginInfo methods. CefString GetName() OVERRIDE; diff --git a/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.cc b/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.cc index b5f0e7edc..097a8a27b 100644 --- a/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.cc +++ b/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=4f157c64f2ab929cebcca896d2bf9c8dfca474f8$ +// $hash=2c4278425b993d2b7b8c2bbb545bef9e27f4caaa$ // #include "libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h" #include "libcef_dll/cpptoc/web_plugin_info_cpptoc.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall") bool CefWebPluginInfoVisitorCToCpp::Visit(CefRefPtr info, int count, int total) { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_info_visitor_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, visit)) return false; @@ -44,6 +47,12 @@ bool CefWebPluginInfoVisitorCToCpp::Visit(CefRefPtr info, CefWebPluginInfoVisitorCToCpp::CefWebPluginInfoVisitorCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginInfoVisitorCToCpp::~CefWebPluginInfoVisitorCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_web_plugin_info_visitor_t* CefCToCppRefCounted< CefWebPluginInfoVisitorCToCpp, diff --git a/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h b/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h index 9d0af3d13..e8409bce9 100644 --- a/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h +++ b/libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ec0059711db0aa8e96a2a06e431a6342be11acd2$ +// $hash=f68bbf707b7cb2fdf231c0186efae2343daa1b64$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_WEB_PLUGIN_INFO_VISITOR_CTOCPP_H_ @@ -34,6 +34,7 @@ class CefWebPluginInfoVisitorCToCpp cef_web_plugin_info_visitor_t> { public: CefWebPluginInfoVisitorCToCpp(); + virtual ~CefWebPluginInfoVisitorCToCpp(); // CefWebPluginInfoVisitor methods. bool Visit(CefRefPtr info, int count, int total) override; diff --git a/libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.cc b/libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.cc index be0ae54f6..794e8a4bd 100644 --- a/libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.cc +++ b/libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=a1ff97873ff99c6b200a1f497bce56dede1b3c29$ +// $hash=fa4bd24cb16fc046045edf192a66b514e5665ae4$ // #include "libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") void CefWebPluginUnstableCallbackCToCpp::IsUnstable(const CefString& path, bool unstable) { + shutdown_checker::AssertNotShutdown(); + cef_web_plugin_unstable_callback_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_unstable)) return; @@ -38,6 +41,12 @@ void CefWebPluginUnstableCallbackCToCpp::IsUnstable(const CefString& path, CefWebPluginUnstableCallbackCToCpp::CefWebPluginUnstableCallbackCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWebPluginUnstableCallbackCToCpp::~CefWebPluginUnstableCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_web_plugin_unstable_callback_t* CefCToCppRefCounted { public: CefWebPluginUnstableCallbackCToCpp(); + virtual ~CefWebPluginUnstableCallbackCToCpp(); // CefWebPluginUnstableCallback methods. void IsUnstable(const CefString& path, bool unstable) override; diff --git a/libcef_dll/ctocpp/write_handler_ctocpp.cc b/libcef_dll/ctocpp/write_handler_ctocpp.cc index d38bda465..a69b6d513 100644 --- a/libcef_dll/ctocpp/write_handler_ctocpp.cc +++ b/libcef_dll/ctocpp/write_handler_ctocpp.cc @@ -9,15 +9,18 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=536427dc9c0e3db93170b1308bfed09a99da0a17$ +// $hash=f0e23086a6138f7cbaabfb496b0b2acf592f58c7$ // #include "libcef_dll/ctocpp/write_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") size_t CefWriteHandlerCToCpp::Write(const void* ptr, size_t size, size_t n) { + shutdown_checker::AssertNotShutdown(); + cef_write_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, write)) return 0; @@ -38,6 +41,8 @@ size_t CefWriteHandlerCToCpp::Write(const void* ptr, size_t size, size_t n) { NO_SANITIZE("cfi-icall") int CefWriteHandlerCToCpp::Seek(int64 offset, int whence) { + shutdown_checker::AssertNotShutdown(); + cef_write_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, seek)) return 0; @@ -52,6 +57,8 @@ int CefWriteHandlerCToCpp::Seek(int64 offset, int whence) { } NO_SANITIZE("cfi-icall") int64 CefWriteHandlerCToCpp::Tell() { + shutdown_checker::AssertNotShutdown(); + cef_write_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, tell)) return 0; @@ -66,6 +73,8 @@ NO_SANITIZE("cfi-icall") int64 CefWriteHandlerCToCpp::Tell() { } NO_SANITIZE("cfi-icall") int CefWriteHandlerCToCpp::Flush() { + shutdown_checker::AssertNotShutdown(); + cef_write_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, flush)) return 0; @@ -80,6 +89,8 @@ NO_SANITIZE("cfi-icall") int CefWriteHandlerCToCpp::Flush() { } NO_SANITIZE("cfi-icall") bool CefWriteHandlerCToCpp::MayBlock() { + shutdown_checker::AssertNotShutdown(); + cef_write_handler_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, may_block)) return false; @@ -97,6 +108,12 @@ NO_SANITIZE("cfi-icall") bool CefWriteHandlerCToCpp::MayBlock() { CefWriteHandlerCToCpp::CefWriteHandlerCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefWriteHandlerCToCpp::~CefWriteHandlerCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_write_handler_t* CefCToCppRefCounted { public: CefWriteHandlerCToCpp(); + virtual ~CefWriteHandlerCToCpp(); // CefWriteHandler methods. size_t Write(const void* ptr, size_t size, size_t n) override; diff --git a/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc b/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc index d6f7132f9..210466fb5 100644 --- a/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc +++ b/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc @@ -9,16 +9,19 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=623cadf0650f3e44162d02ff05e54aa6793960a4$ +// $hash=5bc1c7f31098cee8e16b1dd17b1e85f93bdb8f86$ // #include "libcef_dll/ctocpp/x509cert_principal_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetDisplayName() { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_display_name)) return CefString(); @@ -35,6 +38,8 @@ CefString CefX509CertPrincipalCToCpp::GetDisplayName() { } NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetCommonName() { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_common_name)) return CefString(); @@ -52,6 +57,8 @@ NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetCommonName() { NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetLocalityName() { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_locality_name)) return CefString(); @@ -69,6 +76,8 @@ CefString CefX509CertPrincipalCToCpp::GetLocalityName() { NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetStateOrProvinceName() { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_state_or_province_name)) return CefString(); @@ -86,6 +95,8 @@ CefString CefX509CertPrincipalCToCpp::GetStateOrProvinceName() { NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetCountryName() { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_country_name)) return CefString(); @@ -104,6 +115,8 @@ CefString CefX509CertPrincipalCToCpp::GetCountryName() { NO_SANITIZE("cfi-icall") void CefX509CertPrincipalCToCpp::GetStreetAddresses( std::vector& addresses) { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_street_addresses)) return; @@ -130,6 +143,8 @@ void CefX509CertPrincipalCToCpp::GetStreetAddresses( NO_SANITIZE("cfi-icall") void CefX509CertPrincipalCToCpp::GetOrganizationNames( std::vector& names) { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_organization_names)) return; @@ -156,6 +171,8 @@ void CefX509CertPrincipalCToCpp::GetOrganizationNames( NO_SANITIZE("cfi-icall") void CefX509CertPrincipalCToCpp::GetOrganizationUnitNames( std::vector& names) { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_organization_unit_names)) return; @@ -182,6 +199,8 @@ void CefX509CertPrincipalCToCpp::GetOrganizationUnitNames( NO_SANITIZE("cfi-icall") void CefX509CertPrincipalCToCpp::GetDomainComponents( std::vector& components) { + shutdown_checker::AssertNotShutdown(); + cef_x509cert_principal_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_domain_components)) return; @@ -209,6 +228,12 @@ void CefX509CertPrincipalCToCpp::GetDomainComponents( CefX509CertPrincipalCToCpp::CefX509CertPrincipalCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefX509CertPrincipalCToCpp::~CefX509CertPrincipalCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_x509cert_principal_t* CefCToCppRefCounted< CefX509CertPrincipalCToCpp, diff --git a/libcef_dll/ctocpp/x509cert_principal_ctocpp.h b/libcef_dll/ctocpp/x509cert_principal_ctocpp.h index fe594bb67..2f0e449d0 100644 --- a/libcef_dll/ctocpp/x509cert_principal_ctocpp.h +++ b/libcef_dll/ctocpp/x509cert_principal_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1191741f09eb45e66b23bb2552014b7b9fc9e57e$ +// $hash=4ec23d382ee5cf9636ef2b181716e845d4f4313e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_X509CERT_PRINCIPAL_CTOCPP_H_ @@ -33,6 +33,7 @@ class CefX509CertPrincipalCToCpp cef_x509cert_principal_t> { public: CefX509CertPrincipalCToCpp(); + virtual ~CefX509CertPrincipalCToCpp(); // CefX509CertPrincipal methods. CefString GetDisplayName() OVERRIDE; diff --git a/libcef_dll/ctocpp/x509certificate_ctocpp.cc b/libcef_dll/ctocpp/x509certificate_ctocpp.cc index f24a47685..c343c4629 100644 --- a/libcef_dll/ctocpp/x509certificate_ctocpp.cc +++ b/libcef_dll/ctocpp/x509certificate_ctocpp.cc @@ -9,18 +9,21 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1d3225e378b79ddd0f93eb3cf5e0633d9c887fa6$ +// $hash=da3fb122fef7a7fc6a035f63fc5cb97443270ba1$ // #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" #include #include "libcef_dll/ctocpp/binary_value_ctocpp.h" #include "libcef_dll/ctocpp/x509cert_principal_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefX509CertificateCToCpp::GetSubject() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_subject)) return NULL; @@ -36,6 +39,8 @@ CefRefPtr CefX509CertificateCToCpp::GetSubject() { NO_SANITIZE("cfi-icall") CefRefPtr CefX509CertificateCToCpp::GetIssuer() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_issuer)) return NULL; @@ -51,6 +56,8 @@ CefRefPtr CefX509CertificateCToCpp::GetIssuer() { NO_SANITIZE("cfi-icall") CefRefPtr CefX509CertificateCToCpp::GetSerialNumber() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_serial_number)) return NULL; @@ -65,6 +72,8 @@ CefRefPtr CefX509CertificateCToCpp::GetSerialNumber() { } NO_SANITIZE("cfi-icall") CefTime CefX509CertificateCToCpp::GetValidStart() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_valid_start)) return CefTime(); @@ -79,6 +88,8 @@ NO_SANITIZE("cfi-icall") CefTime CefX509CertificateCToCpp::GetValidStart() { } NO_SANITIZE("cfi-icall") CefTime CefX509CertificateCToCpp::GetValidExpiry() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_valid_expiry)) return CefTime(); @@ -94,6 +105,8 @@ NO_SANITIZE("cfi-icall") CefTime CefX509CertificateCToCpp::GetValidExpiry() { NO_SANITIZE("cfi-icall") CefRefPtr CefX509CertificateCToCpp::GetDEREncoded() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_derencoded)) return NULL; @@ -109,6 +122,8 @@ CefRefPtr CefX509CertificateCToCpp::GetDEREncoded() { NO_SANITIZE("cfi-icall") CefRefPtr CefX509CertificateCToCpp::GetPEMEncoded() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_pemencoded)) return NULL; @@ -123,6 +138,8 @@ CefRefPtr CefX509CertificateCToCpp::GetPEMEncoded() { } NO_SANITIZE("cfi-icall") size_t CefX509CertificateCToCpp::GetIssuerChainSize() { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_issuer_chain_size)) return 0; @@ -139,6 +156,8 @@ NO_SANITIZE("cfi-icall") size_t CefX509CertificateCToCpp::GetIssuerChainSize() { NO_SANITIZE("cfi-icall") void CefX509CertificateCToCpp::GetDEREncodedIssuerChain( IssuerChainBinaryList& chain) { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_derencoded_issuer_chain)) return; @@ -178,6 +197,8 @@ void CefX509CertificateCToCpp::GetDEREncodedIssuerChain( NO_SANITIZE("cfi-icall") void CefX509CertificateCToCpp::GetPEMEncodedIssuerChain( IssuerChainBinaryList& chain) { + shutdown_checker::AssertNotShutdown(); + cef_x509certificate_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_pemencoded_issuer_chain)) return; @@ -218,6 +239,12 @@ void CefX509CertificateCToCpp::GetPEMEncodedIssuerChain( CefX509CertificateCToCpp::CefX509CertificateCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefX509CertificateCToCpp::~CefX509CertificateCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_x509certificate_t* CefCToCppRefCounted< CefX509CertificateCToCpp, diff --git a/libcef_dll/ctocpp/x509certificate_ctocpp.h b/libcef_dll/ctocpp/x509certificate_ctocpp.h index 07947427e..119fd101c 100644 --- a/libcef_dll/ctocpp/x509certificate_ctocpp.h +++ b/libcef_dll/ctocpp/x509certificate_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=e51efc688ca9b8786a46f3ffd0eca5b7255c112e$ +// $hash=76b8765bc1a94b95fdac5bbdf27f3f93dc9b1b37$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_X509CERTIFICATE_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefX509CertificateCToCpp cef_x509certificate_t> { public: CefX509CertificateCToCpp(); + virtual ~CefX509CertificateCToCpp(); // CefX509Certificate methods. CefRefPtr GetSubject() OVERRIDE; diff --git a/libcef_dll/ctocpp/xml_reader_ctocpp.cc b/libcef_dll/ctocpp/xml_reader_ctocpp.cc index b7cedf055..cbe6d09ed 100644 --- a/libcef_dll/ctocpp/xml_reader_ctocpp.cc +++ b/libcef_dll/ctocpp/xml_reader_ctocpp.cc @@ -9,11 +9,12 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=88096155a0f5d7f6e77b5eba85002695ab087e2f$ +// $hash=552d7b3e60ccba53db5da76e2c8f29bcadce2c1b$ // #include "libcef_dll/ctocpp/xml_reader_ctocpp.h" #include "libcef_dll/ctocpp/stream_reader_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. @@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall") CefRefPtr CefXmlReader::Create(CefRefPtr stream, EncodingType encodingType, const CefString& URI) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: stream; type: refptr_same @@ -43,6 +46,8 @@ CefRefPtr CefXmlReader::Create(CefRefPtr stream, // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToNextNode() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_next_node)) return false; @@ -57,6 +62,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToNextNode() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::Close() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close)) return false; @@ -71,6 +78,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::Close() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasError() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_error)) return false; @@ -85,6 +94,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasError() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetError() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_error)) return CefString(); @@ -101,6 +112,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetError() { } NO_SANITIZE("cfi-icall") CefXmlReader::NodeType CefXmlReaderCToCpp::GetType() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_type)) return XML_NODE_UNSUPPORTED; @@ -115,6 +128,8 @@ NO_SANITIZE("cfi-icall") CefXmlReader::NodeType CefXmlReaderCToCpp::GetType() { } NO_SANITIZE("cfi-icall") int CefXmlReaderCToCpp::GetDepth() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_depth)) return 0; @@ -129,6 +144,8 @@ NO_SANITIZE("cfi-icall") int CefXmlReaderCToCpp::GetDepth() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetLocalName() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_local_name)) return CefString(); @@ -145,6 +162,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetLocalName() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetPrefix() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_prefix)) return CefString(); @@ -161,6 +180,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetPrefix() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetQualifiedName() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_qualified_name)) return CefString(); @@ -177,6 +198,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetQualifiedName() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetNamespaceURI() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_namespace_uri)) return CefString(); @@ -193,6 +216,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetNamespaceURI() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetBaseURI() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_base_uri)) return CefString(); @@ -209,6 +234,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetBaseURI() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetXmlLang() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_xml_lang)) return CefString(); @@ -225,6 +252,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetXmlLang() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::IsEmptyElement() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, is_empty_element)) return false; @@ -239,6 +268,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::IsEmptyElement() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasValue() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_value)) return false; @@ -253,6 +284,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasValue() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetValue() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_value)) return CefString(); @@ -269,6 +302,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetValue() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasAttributes() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, has_attributes)) return false; @@ -283,6 +318,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::HasAttributes() { } NO_SANITIZE("cfi-icall") size_t CefXmlReaderCToCpp::GetAttributeCount() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_attribute_count)) return 0; @@ -297,6 +334,8 @@ NO_SANITIZE("cfi-icall") size_t CefXmlReaderCToCpp::GetAttributeCount() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetAttribute(int index) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_attribute_byindex)) return CefString(); @@ -320,6 +359,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetAttribute(int index) { NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetAttribute(const CefString& qualifiedName) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_attribute_byqname)) return CefString(); @@ -344,6 +385,8 @@ CefString CefXmlReaderCToCpp::GetAttribute(const CefString& qualifiedName) { NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetAttribute(const CefString& localName, const CefString& namespaceURI) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_attribute_bylname)) return CefString(); @@ -370,6 +413,8 @@ CefString CefXmlReaderCToCpp::GetAttribute(const CefString& localName, } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetInnerXml() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_inner_xml)) return CefString(); @@ -386,6 +431,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetInnerXml() { } NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetOuterXml() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_outer_xml)) return CefString(); @@ -402,6 +449,8 @@ NO_SANITIZE("cfi-icall") CefString CefXmlReaderCToCpp::GetOuterXml() { } NO_SANITIZE("cfi-icall") int CefXmlReaderCToCpp::GetLineNumber() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_line_number)) return 0; @@ -416,6 +465,8 @@ NO_SANITIZE("cfi-icall") int CefXmlReaderCToCpp::GetLineNumber() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToAttribute(int index) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_attribute_byindex)) return false; @@ -436,6 +487,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToAttribute(int index) { NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToAttribute(const CefString& qualifiedName) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_attribute_byqname)) return false; @@ -458,6 +511,8 @@ bool CefXmlReaderCToCpp::MoveToAttribute(const CefString& qualifiedName) { NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToAttribute(const CefString& localName, const CefString& namespaceURI) { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_attribute_bylname)) return false; @@ -482,6 +537,8 @@ bool CefXmlReaderCToCpp::MoveToAttribute(const CefString& localName, } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToFirstAttribute() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_first_attribute)) return false; @@ -496,6 +553,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToFirstAttribute() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToNextAttribute() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_next_attribute)) return false; @@ -510,6 +569,8 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToNextAttribute() { } NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToCarryingElement() { + shutdown_checker::AssertNotShutdown(); + cef_xml_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_carrying_element)) return false; @@ -527,6 +588,12 @@ NO_SANITIZE("cfi-icall") bool CefXmlReaderCToCpp::MoveToCarryingElement() { CefXmlReaderCToCpp::CefXmlReaderCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefXmlReaderCToCpp::~CefXmlReaderCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_xml_reader_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/xml_reader_ctocpp.h b/libcef_dll/ctocpp/xml_reader_ctocpp.h index 462178601..a8388b8cf 100644 --- a/libcef_dll/ctocpp/xml_reader_ctocpp.h +++ b/libcef_dll/ctocpp/xml_reader_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=aa3fb0bea5b9b6c3dfb2ec8726930c9986d28c2e$ +// $hash=6297235868055fdedc13fe91527afa260211501c$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_XML_READER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefXmlReaderCToCpp : public CefCToCppRefCounted { public: CefXmlReaderCToCpp(); + virtual ~CefXmlReaderCToCpp(); // CefXmlReader methods. bool MoveToNextNode() OVERRIDE; diff --git a/libcef_dll/ctocpp/zip_reader_ctocpp.cc b/libcef_dll/ctocpp/zip_reader_ctocpp.cc index af1ef5064..35e2acbcb 100644 --- a/libcef_dll/ctocpp/zip_reader_ctocpp.cc +++ b/libcef_dll/ctocpp/zip_reader_ctocpp.cc @@ -9,17 +9,20 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=1d79e81aa15b006ce503e69d797018197d0fc7a2$ +// $hash=c5ce367ea1e8754b04b07012ca8355c2fa62f203$ // #include "libcef_dll/ctocpp/zip_reader_ctocpp.h" #include "libcef_dll/ctocpp/stream_reader_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" // STATIC METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") CefRefPtr CefZipReader::Create( CefRefPtr stream) { + shutdown_checker::AssertNotShutdown(); + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: stream; type: refptr_same @@ -38,6 +41,8 @@ CefRefPtr CefZipReader::Create( // VIRTUAL METHODS - Body may be edited by hand. NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::MoveToFirstFile() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_first_file)) return false; @@ -52,6 +57,8 @@ NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::MoveToFirstFile() { } NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::MoveToNextFile() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_next_file)) return false; @@ -68,6 +75,8 @@ NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::MoveToNextFile() { NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::MoveToFile(const CefString& fileName, bool caseSensitive) { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, move_to_file)) return false; @@ -88,6 +97,8 @@ bool CefZipReaderCToCpp::MoveToFile(const CefString& fileName, } NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::Close() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close)) return false; @@ -102,6 +113,8 @@ NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::Close() { } NO_SANITIZE("cfi-icall") CefString CefZipReaderCToCpp::GetFileName() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_name)) return CefString(); @@ -118,6 +131,8 @@ NO_SANITIZE("cfi-icall") CefString CefZipReaderCToCpp::GetFileName() { } NO_SANITIZE("cfi-icall") int64 CefZipReaderCToCpp::GetFileSize() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_size)) return 0; @@ -132,6 +147,8 @@ NO_SANITIZE("cfi-icall") int64 CefZipReaderCToCpp::GetFileSize() { } NO_SANITIZE("cfi-icall") CefTime CefZipReaderCToCpp::GetFileLastModified() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_file_last_modified)) return CefTime(); @@ -147,6 +164,8 @@ NO_SANITIZE("cfi-icall") CefTime CefZipReaderCToCpp::GetFileLastModified() { NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::OpenFile(const CefString& password) { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, open_file)) return false; @@ -163,6 +182,8 @@ bool CefZipReaderCToCpp::OpenFile(const CefString& password) { } NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::CloseFile() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, close_file)) return false; @@ -178,6 +199,8 @@ NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::CloseFile() { NO_SANITIZE("cfi-icall") int CefZipReaderCToCpp::ReadFile(void* buffer, size_t bufferSize) { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, read_file)) return 0; @@ -197,6 +220,8 @@ int CefZipReaderCToCpp::ReadFile(void* buffer, size_t bufferSize) { } NO_SANITIZE("cfi-icall") int64 CefZipReaderCToCpp::Tell() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, tell)) return 0; @@ -211,6 +236,8 @@ NO_SANITIZE("cfi-icall") int64 CefZipReaderCToCpp::Tell() { } NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::Eof() { + shutdown_checker::AssertNotShutdown(); + cef_zip_reader_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, eof)) return false; @@ -228,6 +255,12 @@ NO_SANITIZE("cfi-icall") bool CefZipReaderCToCpp::Eof() { CefZipReaderCToCpp::CefZipReaderCToCpp() {} +// DESTRUCTOR - Do not edit by hand. + +CefZipReaderCToCpp::~CefZipReaderCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + template <> cef_zip_reader_t* CefCToCppRefCounted:: diff --git a/libcef_dll/ctocpp/zip_reader_ctocpp.h b/libcef_dll/ctocpp/zip_reader_ctocpp.h index e9cb7be4c..c6971b092 100644 --- a/libcef_dll/ctocpp/zip_reader_ctocpp.h +++ b/libcef_dll/ctocpp/zip_reader_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=bef7d549790a313452bb3c137a43dc5fe5817999$ +// $hash=326b507d5065261a9cf824f4bf32e97099971e55$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_ZIP_READER_CTOCPP_H_ @@ -31,6 +31,7 @@ class CefZipReaderCToCpp : public CefCToCppRefCounted { public: CefZipReaderCToCpp(); + virtual ~CefZipReaderCToCpp(); // CefZipReader methods. bool MoveToFirstFile() OVERRIDE; diff --git a/libcef_dll/libcef_dll.cc b/libcef_dll/libcef_dll.cc index 7ad81ccc5..84bff40d5 100644 --- a/libcef_dll/libcef_dll.cc +++ b/libcef_dll/libcef_dll.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=824a78e502417eccd79d65691b35b9a965d72778$ +// $hash=8af691e6af858c05e00d4899d8f35a6a4a7109af$ // #include "include/capi/cef_app_capi.h" @@ -86,11 +86,7 @@ #include "libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h" #include "libcef_dll/cpptoc/thread_cpptoc.h" #include "libcef_dll/cpptoc/urlrequest_cpptoc.h" -#include "libcef_dll/cpptoc/v8context_cpptoc.h" -#include "libcef_dll/cpptoc/v8exception_cpptoc.h" -#include "libcef_dll/cpptoc/v8stack_frame_cpptoc.h" #include "libcef_dll/cpptoc/v8stack_trace_cpptoc.h" -#include "libcef_dll/cpptoc/v8value_cpptoc.h" #include "libcef_dll/cpptoc/value_cpptoc.h" #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h" #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h" @@ -114,7 +110,6 @@ #include "libcef_dll/cpptoc/zip_reader_cpptoc.h" #include "libcef_dll/ctocpp/accessibility_handler_ctocpp.h" #include "libcef_dll/ctocpp/app_ctocpp.h" -#include "libcef_dll/ctocpp/browser_process_handler_ctocpp.h" #include "libcef_dll/ctocpp/completion_callback_ctocpp.h" #include "libcef_dll/ctocpp/context_menu_handler_ctocpp.h" #include "libcef_dll/ctocpp/cookie_visitor_ctocpp.h" @@ -140,7 +135,6 @@ #include "libcef_dll/ctocpp/read_handler_ctocpp.h" #include "libcef_dll/ctocpp/register_cdm_callback_ctocpp.h" #include "libcef_dll/ctocpp/render_handler_ctocpp.h" -#include "libcef_dll/ctocpp/render_process_handler_ctocpp.h" #include "libcef_dll/ctocpp/request_handler_ctocpp.h" #include "libcef_dll/ctocpp/resolve_callback_ctocpp.h" #include "libcef_dll/ctocpp/resource_bundle_handler_ctocpp.h" @@ -157,10 +151,7 @@ #include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h" #include "libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h" #include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h" -#include "libcef_dll/ctocpp/v8accessor_ctocpp.h" -#include "libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.h" #include "libcef_dll/ctocpp/v8handler_ctocpp.h" -#include "libcef_dll/ctocpp/v8interceptor_ctocpp.h" #include "libcef_dll/ctocpp/views/browser_view_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h" #include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h" @@ -171,6 +162,7 @@ #include "libcef_dll/ctocpp/web_plugin_info_visitor_ctocpp.h" #include "libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.h" #include "libcef_dll/ctocpp/write_handler_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // GLOBAL FUNCTIONS - Body may be edited by hand. @@ -236,11 +228,15 @@ CEF_EXPORT int cef_initialize(const struct _cef_main_args_t* args, CEF_EXPORT void cef_shutdown() { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING +#if DCHECK_IS_ON() + shutdown_checker::SetIsShutdown(); +#endif + // Execute CefShutdown(); #if DCHECK_IS_ON() - // Check that all wrapper objects have been destroyed + // Check that all wrapper objects have been destroyed. DCHECK( base::AtomicRefCountIsZero(&CefAccessibilityHandlerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefAuthCallbackCppToC::DebugObjCt)); @@ -250,8 +246,6 @@ CEF_EXPORT void cef_shutdown() { DCHECK(base::AtomicRefCountIsZero(&CefBoxLayoutCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserHostCppToC::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefBrowserProcessHandlerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserViewCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserViewDelegateCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefButtonCppToC::DebugObjCt)); @@ -317,8 +311,6 @@ CEF_EXPORT void cef_shutdown() { DCHECK(base::AtomicRefCountIsZero(&CefReadHandlerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRegisterCdmCallbackCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRenderHandlerCToCpp::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefRenderProcessHandlerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRequestCallbackCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRequestHandlerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefResolveCallbackCToCpp::DebugObjCt)); @@ -332,8 +324,6 @@ CEF_EXPORT void cef_shutdown() { base::AtomicRefCountIsZero(&CefRunFileDialogCallbackCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSSLInfoCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSSLStatusCppToC::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefSchemeHandlerFactoryCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSchemeRegistrarCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefScrollViewCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero( @@ -344,7 +334,6 @@ CEF_EXPORT void cef_shutdown() { DCHECK(base::AtomicRefCountIsZero(&CefStreamReaderCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefStreamWriterCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefStringVisitorCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefTaskCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTaskRunnerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTextfieldCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTextfieldDelegateCToCpp::DebugObjCt)); @@ -372,16 +361,7 @@ CEF_EXPORT void cef_shutdown() { &CefTranslatorTestScopedLibraryCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefURLRequestClientCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefURLRequestCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8AccessorCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero( - &CefV8ArrayBufferReleaseCallbackCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ContextCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ExceptionCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8HandlerCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8InterceptorCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8StackFrameCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefV8StackTraceCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ValueCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefValueCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefViewCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefViewDelegateCToCpp::DebugObjCt)); diff --git a/libcef_dll/shutdown_checker.cc b/libcef_dll/shutdown_checker.cc new file mode 100644 index 000000000..f369d0345 --- /dev/null +++ b/libcef_dll/shutdown_checker.cc @@ -0,0 +1,67 @@ +// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights +// reserved. Use of this source code is governed by a BSD-style license that +// can be found in the LICENSE file. + +#include "libcef_dll/shutdown_checker.h" + +// For compatibility with older client compiler versions only use std::atomic +// on the library side. +#if defined(BUILDING_CEF_SHARED) +#include +#else +#include "include/base/cef_atomic_ref_count.h" +#endif + +#include "include/base/cef_logging.h" + +namespace shutdown_checker { + +#if DCHECK_IS_ON() + +namespace { + +#if defined(BUILDING_CEF_SHARED) + +std::atomic_bool g_cef_shutdown{false}; + +bool IsCefShutdown() { + return g_cef_shutdown.load(); +} + +void SetCefShutdown() { + g_cef_shutdown.store(true); +} + +#else // !defined(BUILDING_CEF_SHARED) + +base::AtomicRefCount g_cef_shutdown ATOMIC_DECLARATION; + +bool IsCefShutdown() { + return !base::AtomicRefCountIsZero(&g_cef_shutdown); +} + +void SetCefShutdown() { + base::AtomicRefCountInc(&g_cef_shutdown); +} + +#endif // !defined(BUILDING_CEF_SHARED) + +} // namespace + +void AssertNotShutdown() { + DCHECK(!IsCefShutdown()) + << "Object reference incorrectly held at CefShutdown"; +} + +void SetIsShutdown() { + DCHECK(!IsCefShutdown()); + SetCefShutdown(); +} + +#else // !DCHECK_IS_ON() + +void AssertNotShutdown() {} + +#endif // !DCHECK_IS_ON() + +} // namespace shutdown_checker diff --git a/libcef_dll/shutdown_checker.h b/libcef_dll/shutdown_checker.h new file mode 100644 index 000000000..9d447881d --- /dev/null +++ b/libcef_dll/shutdown_checker.h @@ -0,0 +1,19 @@ +// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights +// reserved. Use of this source code is governed by a BSD-style license that +// can be found in the LICENSE file. + +#ifndef CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_ +#define CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_ +#pragma once + +namespace shutdown_checker { + +// Check that CEF objects are not held at CefShutdown. +void AssertNotShutdown(); + +// Called from libcef_dll.cc and libcef_dll_wrapper.cc. +void SetIsShutdown(); + +} // namespace shutdown_checker + +#endif // CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_ diff --git a/libcef_dll/transfer_util.cc b/libcef_dll/transfer_util.cc index 03fed4c1f..eb6a79c55 100644 --- a/libcef_dll/transfer_util.cc +++ b/libcef_dll/transfer_util.cc @@ -2,7 +2,7 @@ // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. -#include "transfer_util.h" +#include "libcef_dll/transfer_util.h" void transfer_string_list_contents(cef_string_list_t fromList, StringList& toList) { diff --git a/libcef_dll/wrapper/libcef_dll_wrapper.cc b/libcef_dll/wrapper/libcef_dll_wrapper.cc index 296505f7b..1f6d2a4f0 100644 --- a/libcef_dll/wrapper/libcef_dll_wrapper.cc +++ b/libcef_dll/wrapper/libcef_dll_wrapper.cc @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=dfa41e1f1e43a693fb48a8de17a8a7cddba8c60a$ +// $hash=2c0a480ed8c98ae12feed0d3cb7911d96ebbf2b9$ // #include "include/capi/cef_app_capi.h" @@ -43,7 +43,6 @@ #include "include/test/cef_test_helpers.h" #include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h" #include "libcef_dll/cpptoc/app_cpptoc.h" -#include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h" #include "libcef_dll/cpptoc/completion_callback_cpptoc.h" #include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h" #include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h" @@ -69,7 +68,6 @@ #include "libcef_dll/cpptoc/read_handler_cpptoc.h" #include "libcef_dll/cpptoc/register_cdm_callback_cpptoc.h" #include "libcef_dll/cpptoc/render_handler_cpptoc.h" -#include "libcef_dll/cpptoc/render_process_handler_cpptoc.h" #include "libcef_dll/cpptoc/request_handler_cpptoc.h" #include "libcef_dll/cpptoc/resolve_callback_cpptoc.h" #include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h" @@ -86,10 +84,7 @@ #include "libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h" #include "libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h" #include "libcef_dll/cpptoc/urlrequest_client_cpptoc.h" -#include "libcef_dll/cpptoc/v8accessor_cpptoc.h" -#include "libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.h" #include "libcef_dll/cpptoc/v8handler_cpptoc.h" -#include "libcef_dll/cpptoc/v8interceptor_cpptoc.h" #include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h" @@ -146,11 +141,7 @@ #include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h" #include "libcef_dll/ctocpp/thread_ctocpp.h" #include "libcef_dll/ctocpp/urlrequest_ctocpp.h" -#include "libcef_dll/ctocpp/v8context_ctocpp.h" -#include "libcef_dll/ctocpp/v8exception_ctocpp.h" -#include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h" #include "libcef_dll/ctocpp/v8stack_trace_ctocpp.h" -#include "libcef_dll/ctocpp/v8value_ctocpp.h" #include "libcef_dll/ctocpp/value_ctocpp.h" #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h" @@ -172,6 +163,7 @@ #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" #include "libcef_dll/ctocpp/xml_reader_ctocpp.h" #include "libcef_dll/ctocpp/zip_reader_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" #include "libcef_dll/transfer_util.h" // Define used to facilitate parsing. @@ -229,11 +221,15 @@ CEF_GLOBAL bool CefInitialize(const CefMainArgs& args, NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING +#if DCHECK_IS_ON() + shutdown_checker::SetIsShutdown(); +#endif + // Execute cef_shutdown(); #if DCHECK_IS_ON() - // Check that all wrapper objects have been destroyed + // Check that all wrapper objects have been destroyed. DCHECK( base::AtomicRefCountIsZero(&CefAccessibilityHandlerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefAuthCallbackCToCpp::DebugObjCt)); @@ -243,8 +239,6 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { DCHECK(base::AtomicRefCountIsZero(&CefBoxLayoutCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserHostCToCpp::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefBrowserProcessHandlerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserViewCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefBrowserViewDelegateCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefButtonCToCpp::DebugObjCt)); @@ -310,8 +304,6 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { DCHECK(base::AtomicRefCountIsZero(&CefReadHandlerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRegisterCdmCallbackCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRenderHandlerCppToC::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefRenderProcessHandlerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRequestCallbackCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefRequestHandlerCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefResolveCallbackCppToC::DebugObjCt)); @@ -325,8 +317,6 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { base::AtomicRefCountIsZero(&CefRunFileDialogCallbackCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSSLInfoCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSSLStatusCToCpp::DebugObjCt)); - DCHECK( - base::AtomicRefCountIsZero(&CefSchemeHandlerFactoryCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefSchemeRegistrarCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefScrollViewCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero( @@ -337,7 +327,6 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { DCHECK(base::AtomicRefCountIsZero(&CefStreamReaderCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefStreamWriterCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefStringVisitorCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefTaskCppToC::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTaskRunnerCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTextfieldCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefTextfieldDelegateCppToC::DebugObjCt)); @@ -365,16 +354,7 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() { &CefTranslatorTestScopedLibraryChildChildCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefURLRequestCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefURLRequestClientCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8AccessorCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero( - &CefV8ArrayBufferReleaseCallbackCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ContextCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ExceptionCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8HandlerCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8InterceptorCppToC::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8StackFrameCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefV8StackTraceCToCpp::DebugObjCt)); - DCHECK(base::AtomicRefCountIsZero(&CefV8ValueCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefValueCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefViewCToCpp::DebugObjCt)); DCHECK(base::AtomicRefCountIsZero(&CefViewDelegateCppToC::DebugObjCt)); @@ -441,7 +421,7 @@ NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefCrashReportingEnabled() { NO_SANITIZE("cfi-icall") CEF_GLOBAL - void CefSetCrashKeyValue(const CefString& key, const CefString& value) { +void CefSetCrashKeyValue(const CefString& key, const CefString& value) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: key; type: string_byref_const @@ -586,10 +566,10 @@ CEF_GLOBAL void CefLoadCRLSetsFile(const CefString& path) { NO_SANITIZE("cfi-icall") CEF_GLOBAL - bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin, - const CefString& target_protocol, - const CefString& target_domain, - bool allow_target_subdomains) { +bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin, + const CefString& target_protocol, + const CefString& target_domain, + bool allow_target_subdomains) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: source_origin; type: string_byref_const @@ -613,10 +593,10 @@ CEF_GLOBAL NO_SANITIZE("cfi-icall") CEF_GLOBAL - bool CefRemoveCrossOriginWhitelistEntry(const CefString& source_origin, - const CefString& target_protocol, - const CefString& target_domain, - bool allow_target_subdomains) { +bool CefRemoveCrossOriginWhitelistEntry(const CefString& source_origin, + const CefString& target_protocol, + const CefString& target_domain, + bool allow_target_subdomains) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: source_origin; type: string_byref_const @@ -677,7 +657,7 @@ CEF_GLOBAL bool CefCreateURL(const CefURLParts& parts, CefString& url) { NO_SANITIZE("cfi-icall") CEF_GLOBAL CefString - CefFormatUrlForSecurityDisplay(const CefString& origin_url) { +CefFormatUrlForSecurityDisplay(const CefString& origin_url) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: origin_url; type: string_byref_const @@ -715,8 +695,8 @@ CEF_GLOBAL CefString CefGetMimeType(const CefString& extension) { NO_SANITIZE("cfi-icall") CEF_GLOBAL - void CefGetExtensionsForMimeType(const CefString& mime_type, - std::vector& extensions) { +void CefGetExtensionsForMimeType(const CefString& mime_type, + std::vector& extensions) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: mime_type; type: string_byref_const @@ -854,8 +834,8 @@ CEF_GLOBAL CefRefPtr CefParseJSONAndReturnError( } NO_SANITIZE("cfi-icall") -CEF_GLOBAL CefString - CefWriteJSON(CefRefPtr node, cef_json_writer_options_t options) { +CEF_GLOBAL CefString CefWriteJSON(CefRefPtr node, + cef_json_writer_options_t options) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: node; type: refptr_same @@ -1066,7 +1046,7 @@ CEF_GLOBAL bool CefRegisterExtension(const CefString& extension_name, NO_SANITIZE("cfi-icall") CEF_GLOBAL - void CefVisitWebPluginInfo(CefRefPtr visitor) { +void CefVisitWebPluginInfo(CefRefPtr visitor) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: visitor; type: refptr_diff @@ -1133,8 +1113,8 @@ CEF_GLOBAL void CefIsWebPluginUnstable( NO_SANITIZE("cfi-icall") CEF_GLOBAL - void CefRegisterWidevineCdm(const CefString& path, - CefRefPtr callback) { +void CefRegisterWidevineCdm(const CefString& path, + CefRefPtr callback) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: path; type: string_byref_const diff --git a/tools/cef_parser.py b/tools/cef_parser.py index c2e21e9a1..bbd2837ce 100644 --- a/tools/cef_parser.py +++ b/tools/cef_parser.py @@ -274,6 +274,9 @@ def format_translation_includes(header, body): result += '#include "libcef_dll/ctocpp/'+directory+ \ get_capi_name(item[3:], False)+'_ctocpp.h"\n' + if body.find('shutdown_checker') > 0: + result += '#include "libcef_dll/shutdown_checker.h"\n' + if body.find('transfer_') > 0: result += '#include "libcef_dll/transfer_util.h"\n' diff --git a/tools/make_cpptoc_header.py b/tools/make_cpptoc_header.py index 822b4af52..417b31fb2 100644 --- a/tools/make_cpptoc_header.py +++ b/tools/make_cpptoc_header.py @@ -73,6 +73,7 @@ def make_cpptoc_header(header, clsname): ' : public ' + template_class + '<'+clsname+'CppToC, '+clsname+', '+capiname+'> {\n'+ \ ' public:\n'+ \ ' '+clsname+'CppToC();\n'+ \ + ' virtual ~'+clsname+'CppToC();\n'+ \ '};\n\n' result += '#endif // CEF_LIBCEF_DLL_CPPTOC_' + defname + '_CPPTOC_H_' diff --git a/tools/make_cpptoc_impl.py b/tools/make_cpptoc_impl.py index f0eaf00ef..1eb6d785f 100644 --- a/tools/make_cpptoc_impl.py +++ b/tools/make_cpptoc_impl.py @@ -29,11 +29,20 @@ def make_cpptoc_function_impl_existing(cls, name, func, impl, defined_names): name, func, parts) + '{' + changes + impl['body'] + '\n}\n\n' -def make_cpptoc_function_impl_new(cls, name, func, defined_names): +def make_cpptoc_function_impl_new(cls, name, func, defined_names, base_scoped): + # Special handling for the cef_shutdown global function. + is_cef_shutdown = name == 'cef_shutdown' and isinstance( + func.parent, obj_header) + # retrieve the C API prototype parts parts = func.get_capi_parts(defined_names) result = make_cpptoc_impl_proto(name, func, parts) + ' {' + if isinstance(func.parent, obj_class) and \ + not func.parent.has_attrib('no_debugct_check') and \ + not base_scoped: + result += '\n shutdown_checker::AssertNotShutdown();\n' + invalid = [] # retrieve the function arguments @@ -296,6 +305,11 @@ def make_cpptoc_function_impl_new(cls, name, func, defined_names): result += '\n' result_len = len(result) + if is_cef_shutdown: + result += '\n\n#if DCHECK_IS_ON()'\ + '\n shutdown_checker::SetIsShutdown();'\ + '\n#endif\n' + # execution result += '\n // Execute\n ' @@ -406,8 +420,7 @@ def make_cpptoc_function_impl_new(cls, name, func, defined_names): result += '\n' result_len = len(result) - # special handling for the global cef_shutdown function - if name == 'cef_shutdown' and isinstance(func.parent, obj_header): + if is_cef_shutdown: classes = func.parent.get_classes() names = [] @@ -423,7 +436,7 @@ def make_cpptoc_function_impl_new(cls, name, func, defined_names): if len(names) > 0: names = sorted(names) result += '\n#if DCHECK_IS_ON()'\ - '\n // Check that all wrapper objects have been destroyed' + '\n // Check that all wrapper objects have been destroyed.' for name in names: result += '\n DCHECK(base::AtomicRefCountIsZero(&' + name + '::DebugObjCt));' result += '\n#endif // DCHECK_IS_ON()' @@ -462,7 +475,8 @@ def make_cpptoc_function_impl_new(cls, name, func, defined_names): return result -def make_cpptoc_function_impl(cls, funcs, existing, prefixname, defined_names): +def make_cpptoc_function_impl(cls, funcs, existing, prefixname, defined_names, + base_scoped): impl = '' for func in funcs: @@ -477,13 +491,14 @@ def make_cpptoc_function_impl(cls, funcs, existing, prefixname, defined_names): impl += make_cpptoc_function_impl_existing(cls, name, func, value, defined_names) else: - impl += make_cpptoc_function_impl_new(cls, name, func, defined_names) + impl += make_cpptoc_function_impl_new(cls, name, func, defined_names, + base_scoped) return impl def make_cpptoc_virtual_function_impl(header, cls, existing, prefixname, - defined_names): + defined_names, base_scoped): funcs = [] funcs.extend(cls.get_virtual_funcs()) cur_cls = cls @@ -499,7 +514,7 @@ def make_cpptoc_virtual_function_impl(header, cls, existing, prefixname, cur_cls = header.get_class(parent_name, defined_names) return make_cpptoc_function_impl(cls, funcs, existing, prefixname, - defined_names) + defined_names, base_scoped) def make_cpptoc_virtual_function_assignment_block(funcs, offset, prefixname): @@ -590,8 +605,8 @@ def make_cpptoc_class_impl(header, clsname, impl): template_class = 'CefCppToCRefCounted' # generate virtual functions - virtualimpl = make_cpptoc_virtual_function_impl(header, cls, existing, - prefixname, defined_names) + virtualimpl = make_cpptoc_virtual_function_impl( + header, cls, existing, prefixname, defined_names, base_scoped) if len(virtualimpl) > 0: virtualimpl = '\nnamespace {\n\n// MEMBER FUNCTIONS - Body may be edited by hand.\n\n' + virtualimpl + '} // namespace' @@ -604,7 +619,7 @@ def make_cpptoc_class_impl(header, clsname, impl): # generate static functions staticimpl = make_cpptoc_function_impl(cls, cls.get_static_funcs(), existing, None, - defined_names) + defined_names, base_scoped) if len(staticimpl) > 0: staticimpl = '\n// GLOBAL FUNCTIONS - Body may be edited by hand.\n\n' + staticimpl @@ -617,6 +632,13 @@ def make_cpptoc_class_impl(header, clsname, impl): clsname+'CppToC::'+clsname+'CppToC() {\n' const += make_cpptoc_virtual_function_assignment(header, cls, prefixname, defined_names) + const += '}\n\n'+ \ + '// DESTRUCTOR - Do not edit by hand.\n\n'+ \ + clsname+'CppToC::~'+clsname+'CppToC() {\n' + + if not cls.has_attrib('no_debugct_check') and not base_scoped: + const += ' shutdown_checker::AssertNotShutdown();\n' + const += '}\n\n' # determine what includes are required by identifying what translation @@ -670,7 +692,7 @@ def make_cpptoc_global_impl(header, impl): # generate global functions impl = make_cpptoc_function_impl(None, header.get_funcs(), existing, None, - defined_names) + defined_names, False) if len(impl) > 0: impl = '\n// GLOBAL FUNCTIONS - Body may be edited by hand.\n\n' + impl diff --git a/tools/make_ctocpp_header.py b/tools/make_ctocpp_header.py index 79003746d..6061200ed 100644 --- a/tools/make_ctocpp_header.py +++ b/tools/make_ctocpp_header.py @@ -115,7 +115,8 @@ def make_ctocpp_header(header, clsname): result += 'class '+clsname+'CToCpp\n'+ \ ' : public ' + template_class + '<'+clsname+'CToCpp, '+clsname+', '+capiname+'> {\n'+ \ ' public:\n'+ \ - ' '+clsname+'CToCpp();\n\n' + ' '+clsname+'CToCpp();\n'+ \ + ' virtual ~'+clsname+'CToCpp();\n\n' result += func_body result += '};\n\n' diff --git a/tools/make_ctocpp_impl.py b/tools/make_ctocpp_impl.py index 78ad214bd..c1c2a94ef 100644 --- a/tools/make_ctocpp_impl.py +++ b/tools/make_ctocpp_impl.py @@ -38,11 +38,20 @@ def make_ctocpp_function_impl_existing(clsname, name, func, impl): changes+impl['body']+'\n}\n\n' -def make_ctocpp_function_impl_new(clsname, name, func): +def make_ctocpp_function_impl_new(clsname, name, func, base_scoped): + # Special handling for the CefShutdown global function. + is_cef_shutdown = name == 'CefShutdown' and isinstance( + func.parent, obj_header) + # build the C++ prototype parts = func.get_cpp_parts(True) result = make_ctocpp_impl_proto(clsname, name, func, parts) + ' {' + if isinstance(func.parent, obj_class) and \ + not func.parent.has_attrib('no_debugct_check') and \ + not base_scoped: + result += '\n shutdown_checker::AssertNotShutdown();\n' + if isinstance(func, obj_function_virtual): # determine how the struct should be referenced if clsname == func.parent.get_name(): @@ -315,6 +324,11 @@ def make_ctocpp_function_impl_new(clsname, name, func): result += '\n' result_len = len(result) + if is_cef_shutdown: + result += '\n\n#if DCHECK_IS_ON()'\ + '\n shutdown_checker::SetIsShutdown();'\ + '\n#endif\n' + # execution result += '\n // Execute\n ' @@ -447,8 +461,7 @@ def make_ctocpp_function_impl_new(clsname, name, func): result += '\n' result_len = len(result) - # special handling for the global CefShutdown function - if name == 'CefShutdown' and isinstance(func.parent, obj_header): + if is_cef_shutdown: classes = func.parent.get_classes() names = [] @@ -464,7 +477,7 @@ def make_ctocpp_function_impl_new(clsname, name, func): if len(names) > 0: names = sorted(names) result += '\n#if DCHECK_IS_ON()'\ - '\n // Check that all wrapper objects have been destroyed' + '\n // Check that all wrapper objects have been destroyed.' for name in names: result += '\n DCHECK(base::AtomicRefCountIsZero(&' + name + '::DebugObjCt));' result += '\n#endif // DCHECK_IS_ON()' @@ -504,7 +517,7 @@ def make_ctocpp_function_impl_new(clsname, name, func): return result -def make_ctocpp_function_impl(clsname, funcs, existing): +def make_ctocpp_function_impl(clsname, funcs, existing, base_scoped): impl = '' for func in funcs: @@ -515,14 +528,15 @@ def make_ctocpp_function_impl(clsname, funcs, existing): # an implementation exists that was not auto-generated impl += make_ctocpp_function_impl_existing(clsname, name, func, value) else: - impl += make_ctocpp_function_impl_new(clsname, name, func) + impl += make_ctocpp_function_impl_new(clsname, name, func, base_scoped) return impl -def make_ctocpp_virtual_function_impl(header, cls, existing): +def make_ctocpp_virtual_function_impl(header, cls, existing, base_scoped): impl = make_ctocpp_function_impl(cls.get_name(), - cls.get_virtual_funcs(), existing) + cls.get_virtual_funcs(), existing, + base_scoped) cur_cls = cls while True: @@ -535,7 +549,7 @@ def make_ctocpp_virtual_function_impl(header, cls, existing): raise Exception('Class does not exist: ' + parent_name) impl += make_ctocpp_function_impl(cls.get_name(), parent_cls.get_virtual_funcs(), - existing) + existing, base_scoped) cur_cls = header.get_class(parent_name) return impl @@ -593,7 +607,8 @@ def make_ctocpp_class_impl(header, clsname, impl): template_class = 'CefCToCppRefCounted' # generate virtual functions - virtualimpl = make_ctocpp_virtual_function_impl(header, cls, existing) + virtualimpl = make_ctocpp_virtual_function_impl(header, cls, existing, + base_scoped) if len(virtualimpl) > 0: virtualimpl = '\n// VIRTUAL METHODS - Body may be edited by hand.\n\n' + virtualimpl @@ -602,7 +617,8 @@ def make_ctocpp_class_impl(header, clsname, impl): # generate static functions staticimpl = make_ctocpp_function_impl(clsname, - cls.get_static_funcs(), existing) + cls.get_static_funcs(), existing, + base_scoped) if len(staticimpl) > 0: staticimpl = '\n// STATIC METHODS - Body may be edited by hand.\n\n' + staticimpl @@ -613,7 +629,14 @@ def make_ctocpp_class_impl(header, clsname, impl): const = '// CONSTRUCTOR - Do not edit by hand.\n\n'+ \ clsname+'CToCpp::'+clsname+'CToCpp() {\n'+ \ - '}\n\n' + '}\n\n'+ \ + '// DESTRUCTOR - Do not edit by hand.\n\n'+ \ + clsname+'CToCpp::~'+clsname+'CToCpp() {\n' + + if not cls.has_attrib('no_debugct_check') and not base_scoped: + const += ' shutdown_checker::AssertNotShutdown();\n' + + const += '}\n\n' # determine what includes are required by identifying what translation # classes are being used @@ -661,7 +684,7 @@ def make_ctocpp_global_impl(header, impl): existing = get_function_impls(impl, 'CEF_GLOBAL') # generate static functions - impl = make_ctocpp_function_impl(None, header.get_funcs(), existing) + impl = make_ctocpp_function_impl(None, header.get_funcs(), existing, False) if len(impl) > 0: impl = '\n// GLOBAL METHODS - Body may be edited by hand.\n\n' + impl