mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename CefBase to CefBaseRefCounted (issue #2090)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/base_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/base_ref_counted_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/v8interceptor_cpptoc.h"
|
||||
@@ -729,7 +729,7 @@ bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBase> user_data) {
|
||||
bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBaseRefCounted> user_data) {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_user_data))
|
||||
return false;
|
||||
@@ -740,13 +740,13 @@ bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBase> user_data) {
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_user_data(_struct,
|
||||
CefBaseCppToC::Wrap(user_data));
|
||||
CefBaseRefCountedCppToC::Wrap(user_data));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
||||
CefRefPtr<CefBaseRefCounted> CefV8ValueCToCpp::GetUserData() {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_user_data))
|
||||
return NULL;
|
||||
@@ -754,10 +754,10 @@ CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_base_t* _retval = _struct->get_user_data(_struct);
|
||||
cef_base_ref_counted_t* _retval = _struct->get_user_data(_struct);
|
||||
|
||||
// Return type: refptr_diff
|
||||
return CefBaseCppToC::Unwrap(_retval);
|
||||
return CefBaseRefCountedCppToC::Unwrap(_retval);
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::GetExternallyAllocatedMemory() {
|
||||
@@ -919,16 +919,16 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
||||
CefV8ValueCToCpp::CefV8ValueCToCpp() {
|
||||
}
|
||||
|
||||
template<> cef_v8value_t* CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
||||
template<> cef_v8value_t* CefCToCppRefCounted<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::UnwrapDerived(CefWrapperType type, CefV8Value* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::DebugObjCt = 0;
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefV8ValueCToCpp,
|
||||
CefV8Value, cef_v8value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCpp<CefV8ValueCToCpp, CefV8Value,
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|
||||
|
Reference in New Issue
Block a user