mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=99e81b5d76118790646d2343910363948570fb77$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/base_ref_counted_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
|
||||
@@ -19,7 +21,6 @@
|
||||
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateUndefined() {
|
||||
@@ -46,8 +47,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_bool(
|
||||
value);
|
||||
cef_v8value_t* _retval = cef_v8value_create_bool(value);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -57,8 +57,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateInt(int32 value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_int(
|
||||
value);
|
||||
cef_v8value_t* _retval = cef_v8value_create_int(value);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -68,8 +67,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateUInt(uint32 value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_uint(
|
||||
value);
|
||||
cef_v8value_t* _retval = cef_v8value_create_uint(value);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -79,8 +77,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_double(
|
||||
value);
|
||||
cef_v8value_t* _retval = cef_v8value_create_double(value);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -90,8 +87,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_date(
|
||||
&date);
|
||||
cef_v8value_t* _retval = cef_v8value_create_date(&date);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -103,8 +99,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value) {
|
||||
// Unverified params: value
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_string(
|
||||
value.GetStruct());
|
||||
cef_v8value_t* _retval = cef_v8value_create_string(value.GetStruct());
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -118,9 +113,9 @@ CefRefPtr<CefV8Value> CefV8Value::CreateObject(
|
||||
// Unverified params: accessor, interceptor
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_object(
|
||||
CefV8AccessorCppToC::Wrap(accessor),
|
||||
CefV8InterceptorCppToC::Wrap(interceptor));
|
||||
cef_v8value_t* _retval =
|
||||
cef_v8value_create_object(CefV8AccessorCppToC::Wrap(accessor),
|
||||
CefV8InterceptorCppToC::Wrap(interceptor));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -130,14 +125,14 @@ CefRefPtr<CefV8Value> CefV8Value::CreateArray(int length) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_array(
|
||||
length);
|
||||
cef_v8value_t* _retval = cef_v8value_create_array(length);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateFunction(
|
||||
const CefString& name,
|
||||
CefRefPtr<CefV8Handler> handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -152,14 +147,12 @@ CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = cef_v8value_create_function(
|
||||
name.GetStruct(),
|
||||
CefV8HandlerCppToC::Wrap(handler));
|
||||
name.GetStruct(), CefV8HandlerCppToC::Wrap(handler));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefV8ValueCToCpp::IsValid() {
|
||||
@@ -173,7 +166,7 @@ bool CefV8ValueCToCpp::IsValid() {
|
||||
int _retval = _struct->is_valid(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsUndefined() {
|
||||
@@ -187,7 +180,7 @@ bool CefV8ValueCToCpp::IsUndefined() {
|
||||
int _retval = _struct->is_undefined(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsNull() {
|
||||
@@ -201,7 +194,7 @@ bool CefV8ValueCToCpp::IsNull() {
|
||||
int _retval = _struct->is_null(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsBool() {
|
||||
@@ -215,7 +208,7 @@ bool CefV8ValueCToCpp::IsBool() {
|
||||
int _retval = _struct->is_bool(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsInt() {
|
||||
@@ -229,7 +222,7 @@ bool CefV8ValueCToCpp::IsInt() {
|
||||
int _retval = _struct->is_int(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsUInt() {
|
||||
@@ -243,7 +236,7 @@ bool CefV8ValueCToCpp::IsUInt() {
|
||||
int _retval = _struct->is_uint(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsDouble() {
|
||||
@@ -257,7 +250,7 @@ bool CefV8ValueCToCpp::IsDouble() {
|
||||
int _retval = _struct->is_double(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsDate() {
|
||||
@@ -271,7 +264,7 @@ bool CefV8ValueCToCpp::IsDate() {
|
||||
int _retval = _struct->is_date(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsString() {
|
||||
@@ -285,7 +278,7 @@ bool CefV8ValueCToCpp::IsString() {
|
||||
int _retval = _struct->is_string(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsObject() {
|
||||
@@ -299,7 +292,7 @@ bool CefV8ValueCToCpp::IsObject() {
|
||||
int _retval = _struct->is_object(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsArray() {
|
||||
@@ -313,7 +306,7 @@ bool CefV8ValueCToCpp::IsArray() {
|
||||
int _retval = _struct->is_array(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsFunction() {
|
||||
@@ -327,7 +320,7 @@ bool CefV8ValueCToCpp::IsFunction() {
|
||||
int _retval = _struct->is_function(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that) {
|
||||
@@ -343,11 +336,10 @@ bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_same(_struct,
|
||||
CefV8ValueCToCpp::Unwrap(that));
|
||||
int _retval = _struct->is_same(_struct, CefV8ValueCToCpp::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::GetBoolValue() {
|
||||
@@ -361,7 +353,7 @@ bool CefV8ValueCToCpp::GetBoolValue() {
|
||||
int _retval = _struct->get_bool_value(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
int32 CefV8ValueCToCpp::GetIntValue() {
|
||||
@@ -447,7 +439,7 @@ bool CefV8ValueCToCpp::IsUserCreated() {
|
||||
int _retval = _struct->is_user_created(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::HasException() {
|
||||
@@ -461,7 +453,7 @@ bool CefV8ValueCToCpp::HasException() {
|
||||
int _retval = _struct->has_exception(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Exception> CefV8ValueCToCpp::GetException() {
|
||||
@@ -489,7 +481,7 @@ bool CefV8ValueCToCpp::ClearException() {
|
||||
int _retval = _struct->clear_exception(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::WillRethrowExceptions() {
|
||||
@@ -503,7 +495,7 @@ bool CefV8ValueCToCpp::WillRethrowExceptions() {
|
||||
int _retval = _struct->will_rethrow_exceptions(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetRethrowExceptions(bool rethrow) {
|
||||
@@ -514,11 +506,10 @@ bool CefV8ValueCToCpp::SetRethrowExceptions(bool rethrow) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_rethrow_exceptions(_struct,
|
||||
rethrow);
|
||||
int _retval = _struct->set_rethrow_exceptions(_struct, rethrow);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::HasValue(const CefString& key) {
|
||||
@@ -531,11 +522,10 @@ bool CefV8ValueCToCpp::HasValue(const CefString& key) {
|
||||
// Unverified params: key
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_value_bykey(_struct,
|
||||
key.GetStruct());
|
||||
int _retval = _struct->has_value_bykey(_struct, key.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::HasValue(int index) {
|
||||
@@ -551,11 +541,10 @@ bool CefV8ValueCToCpp::HasValue(int index) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_value_byindex(_struct,
|
||||
index);
|
||||
int _retval = _struct->has_value_byindex(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::DeleteValue(const CefString& key) {
|
||||
@@ -568,11 +557,10 @@ bool CefV8ValueCToCpp::DeleteValue(const CefString& key) {
|
||||
// Unverified params: key
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->delete_value_bykey(_struct,
|
||||
key.GetStruct());
|
||||
int _retval = _struct->delete_value_bykey(_struct, key.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::DeleteValue(int index) {
|
||||
@@ -588,11 +576,10 @@ bool CefV8ValueCToCpp::DeleteValue(int index) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->delete_value_byindex(_struct,
|
||||
index);
|
||||
int _retval = _struct->delete_value_byindex(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key) {
|
||||
@@ -605,8 +592,7 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key) {
|
||||
// Unverified params: key
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = _struct->get_value_bykey(_struct,
|
||||
key.GetStruct());
|
||||
cef_v8value_t* _retval = _struct->get_value_bykey(_struct, key.GetStruct());
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
@@ -625,15 +611,15 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index) {
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = _struct->get_value_byindex(_struct,
|
||||
index);
|
||||
cef_v8value_t* _retval = _struct->get_value_byindex(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
||||
CefRefPtr<CefV8Value> value, PropertyAttribute attribute) {
|
||||
CefRefPtr<CefV8Value> value,
|
||||
PropertyAttribute attribute) {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_value_bykey))
|
||||
return false;
|
||||
@@ -647,13 +633,11 @@ bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
||||
// Unverified params: key
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_value_bykey(_struct,
|
||||
key.GetStruct(),
|
||||
CefV8ValueCToCpp::Unwrap(value),
|
||||
attribute);
|
||||
int _retval = _struct->set_value_bykey(
|
||||
_struct, key.GetStruct(), CefV8ValueCToCpp::Unwrap(value), attribute);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value) {
|
||||
@@ -673,16 +657,16 @@ bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_value_byindex(_struct,
|
||||
index,
|
||||
CefV8ValueCToCpp::Unwrap(value));
|
||||
int _retval = _struct->set_value_byindex(_struct, index,
|
||||
CefV8ValueCToCpp::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
||||
PropertyAttribute attribute) {
|
||||
bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
||||
AccessControl settings,
|
||||
PropertyAttribute attribute) {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_value_byaccessor))
|
||||
return false;
|
||||
@@ -692,13 +676,11 @@ bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
||||
// Unverified params: key
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_value_byaccessor(_struct,
|
||||
key.GetStruct(),
|
||||
settings,
|
||||
attribute);
|
||||
int _retval = _struct->set_value_byaccessor(_struct, key.GetStruct(),
|
||||
settings, attribute);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
||||
@@ -715,8 +697,7 @@ bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
||||
transfer_string_list_contents(keys, keysList);
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_keys(_struct,
|
||||
keysList);
|
||||
int _retval = _struct->get_keys(_struct, keysList);
|
||||
|
||||
// Restore param:keys; type: string_vec_byref
|
||||
if (keysList) {
|
||||
@@ -726,7 +707,7 @@ bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
||||
}
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBaseRefCounted> user_data) {
|
||||
@@ -739,11 +720,11 @@ bool CefV8ValueCToCpp::SetUserData(CefRefPtr<CefBaseRefCounted> user_data) {
|
||||
// Unverified params: user_data
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_user_data(_struct,
|
||||
CefBaseRefCountedCppToC::Wrap(user_data));
|
||||
int _retval =
|
||||
_struct->set_user_data(_struct, CefBaseRefCountedCppToC::Wrap(user_data));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefBaseRefCounted> CefV8ValueCToCpp::GetUserData() {
|
||||
@@ -782,8 +763,8 @@ int CefV8ValueCToCpp::AdjustExternallyAllocatedMemory(int change_in_bytes) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->adjust_externally_allocated_memory(_struct,
|
||||
change_in_bytes);
|
||||
int _retval =
|
||||
_struct->adjust_externally_allocated_memory(_struct, change_in_bytes);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@@ -834,7 +815,8 @@ CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler() {
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunction(
|
||||
CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments) {
|
||||
CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments) {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, execute_function))
|
||||
return NULL;
|
||||
@@ -857,21 +839,20 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunction(
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = _struct->execute_function(_struct,
|
||||
CefV8ValueCToCpp::Unwrap(object),
|
||||
argumentsCount,
|
||||
argumentsList);
|
||||
cef_v8value_t* _retval = _struct->execute_function(
|
||||
_struct, CefV8ValueCToCpp::Unwrap(object), argumentsCount, argumentsList);
|
||||
|
||||
// Restore param:arguments; type: refptr_vec_same_byref_const
|
||||
if (argumentsList)
|
||||
delete [] argumentsList;
|
||||
delete[] argumentsList;
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
||||
CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> object,
|
||||
CefRefPtr<CefV8Context> context,
|
||||
CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments) {
|
||||
cef_v8value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, execute_function_with_context))
|
||||
@@ -899,36 +880,39 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_v8value_t* _retval = _struct->execute_function_with_context(_struct,
|
||||
CefV8ContextCToCpp::Unwrap(context),
|
||||
CefV8ValueCToCpp::Unwrap(object),
|
||||
argumentsCount,
|
||||
argumentsList);
|
||||
cef_v8value_t* _retval = _struct->execute_function_with_context(
|
||||
_struct, CefV8ContextCToCpp::Unwrap(context),
|
||||
CefV8ValueCToCpp::Unwrap(object), argumentsCount, argumentsList);
|
||||
|
||||
// Restore param:arguments; type: refptr_vec_same_byref_const
|
||||
if (argumentsList)
|
||||
delete [] argumentsList;
|
||||
delete[] argumentsList;
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8ValueCToCpp::CefV8ValueCToCpp() {
|
||||
}
|
||||
CefV8ValueCToCpp::CefV8ValueCToCpp() {}
|
||||
|
||||
template<> cef_v8value_t* CefCToCppRefCounted<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::UnwrapDerived(CefWrapperType type, CefV8Value* c) {
|
||||
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 CefCToCppRefCounted<CefV8ValueCToCpp,
|
||||
CefV8Value, cef_v8value_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefV8ValueCToCpp,
|
||||
CefV8Value,
|
||||
cef_v8value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefV8ValueCToCpp, CefV8Value,
|
||||
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefV8ValueCToCpp,
|
||||
CefV8Value,
|
||||
cef_v8value_t>::kWrapperType = WT_V8VALUE;
|
||||
|
Reference in New Issue
Block a user