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,13 +9,14 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a9ba4a22361c5f7d2de811f12348633bd2515f43$
|
||||
//
|
||||
|
||||
#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/ctocpp/value_ctocpp.h"
|
||||
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefListValue> CefListValue::Create() {
|
||||
@@ -28,7 +29,6 @@ CefRefPtr<CefListValue> CefListValue::Create() {
|
||||
return CefListValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefListValueCToCpp::IsValid() {
|
||||
@@ -42,7 +42,7 @@ bool CefListValueCToCpp::IsValid() {
|
||||
int _retval = _struct->is_valid(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::IsOwned() {
|
||||
@@ -56,7 +56,7 @@ bool CefListValueCToCpp::IsOwned() {
|
||||
int _retval = _struct->is_owned(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::IsReadOnly() {
|
||||
@@ -70,7 +70,7 @@ bool CefListValueCToCpp::IsReadOnly() {
|
||||
int _retval = _struct->is_read_only(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::IsSame(CefRefPtr<CefListValue> that) {
|
||||
@@ -86,11 +86,10 @@ bool CefListValueCToCpp::IsSame(CefRefPtr<CefListValue> that) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_same(_struct,
|
||||
CefListValueCToCpp::Unwrap(that));
|
||||
int _retval = _struct->is_same(_struct, CefListValueCToCpp::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::IsEqual(CefRefPtr<CefListValue> that) {
|
||||
@@ -106,11 +105,10 @@ bool CefListValueCToCpp::IsEqual(CefRefPtr<CefListValue> that) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_equal(_struct,
|
||||
CefListValueCToCpp::Unwrap(that));
|
||||
int _retval = _struct->is_equal(_struct, CefListValueCToCpp::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefListValue> CefListValueCToCpp::Copy() {
|
||||
@@ -135,11 +133,10 @@ bool CefListValueCToCpp::SetSize(size_t size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_size(_struct,
|
||||
size);
|
||||
int _retval = _struct->set_size(_struct, size);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
size_t CefListValueCToCpp::GetSize() {
|
||||
@@ -167,7 +164,7 @@ bool CefListValueCToCpp::Clear() {
|
||||
int _retval = _struct->clear(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::Remove(size_t index) {
|
||||
@@ -178,11 +175,10 @@ bool CefListValueCToCpp::Remove(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->remove(_struct,
|
||||
index);
|
||||
int _retval = _struct->remove(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefValueType CefListValueCToCpp::GetType(size_t index) {
|
||||
@@ -193,8 +189,7 @@ CefValueType CefListValueCToCpp::GetType(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_value_type_t _retval = _struct->get_type(_struct,
|
||||
index);
|
||||
cef_value_type_t _retval = _struct->get_type(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@@ -208,8 +203,7 @@ CefRefPtr<CefValue> CefListValueCToCpp::GetValue(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_value_t* _retval = _struct->get_value(_struct,
|
||||
index);
|
||||
cef_value_t* _retval = _struct->get_value(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefValueCToCpp::Wrap(_retval);
|
||||
@@ -223,11 +217,10 @@ bool CefListValueCToCpp::GetBool(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_bool(_struct,
|
||||
index);
|
||||
int _retval = _struct->get_bool(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
int CefListValueCToCpp::GetInt(size_t index) {
|
||||
@@ -238,8 +231,7 @@ int CefListValueCToCpp::GetInt(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_int(_struct,
|
||||
index);
|
||||
int _retval = _struct->get_int(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@@ -253,8 +245,7 @@ double CefListValueCToCpp::GetDouble(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
double _retval = _struct->get_double(_struct,
|
||||
index);
|
||||
double _retval = _struct->get_double(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@@ -268,8 +259,7 @@ CefString CefListValueCToCpp::GetString(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval = _struct->get_string(_struct,
|
||||
index);
|
||||
cef_string_userfree_t _retval = _struct->get_string(_struct, index);
|
||||
|
||||
// Return type: string
|
||||
CefString _retvalStr;
|
||||
@@ -285,8 +275,7 @@ CefRefPtr<CefBinaryValue> CefListValueCToCpp::GetBinary(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_binary_value_t* _retval = _struct->get_binary(_struct,
|
||||
index);
|
||||
cef_binary_value_t* _retval = _struct->get_binary(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefBinaryValueCToCpp::Wrap(_retval);
|
||||
@@ -300,8 +289,7 @@ CefRefPtr<CefDictionaryValue> CefListValueCToCpp::GetDictionary(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_dictionary_value_t* _retval = _struct->get_dictionary(_struct,
|
||||
index);
|
||||
cef_dictionary_value_t* _retval = _struct->get_dictionary(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefDictionaryValueCToCpp::Wrap(_retval);
|
||||
@@ -315,8 +303,7 @@ CefRefPtr<CefListValue> CefListValueCToCpp::GetList(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_list_value_t* _retval = _struct->get_list(_struct,
|
||||
index);
|
||||
cef_list_value_t* _retval = _struct->get_list(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefListValueCToCpp::Wrap(_retval);
|
||||
@@ -335,12 +322,11 @@ bool CefListValueCToCpp::SetValue(size_t index, CefRefPtr<CefValue> value) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_value(_struct,
|
||||
index,
|
||||
CefValueCToCpp::Unwrap(value));
|
||||
int _retval =
|
||||
_struct->set_value(_struct, index, CefValueCToCpp::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetNull(size_t index) {
|
||||
@@ -351,11 +337,10 @@ bool CefListValueCToCpp::SetNull(size_t index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_null(_struct,
|
||||
index);
|
||||
int _retval = _struct->set_null(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetBool(size_t index, bool value) {
|
||||
@@ -366,12 +351,10 @@ bool CefListValueCToCpp::SetBool(size_t index, bool value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_bool(_struct,
|
||||
index,
|
||||
value);
|
||||
int _retval = _struct->set_bool(_struct, index, value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetInt(size_t index, int value) {
|
||||
@@ -382,12 +365,10 @@ bool CefListValueCToCpp::SetInt(size_t index, int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_int(_struct,
|
||||
index,
|
||||
value);
|
||||
int _retval = _struct->set_int(_struct, index, value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetDouble(size_t index, double value) {
|
||||
@@ -398,12 +379,10 @@ bool CefListValueCToCpp::SetDouble(size_t index, double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_double(_struct,
|
||||
index,
|
||||
value);
|
||||
int _retval = _struct->set_double(_struct, index, value);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetString(size_t index, const CefString& value) {
|
||||
@@ -416,16 +395,14 @@ bool CefListValueCToCpp::SetString(size_t index, const CefString& value) {
|
||||
// Unverified params: value
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_string(_struct,
|
||||
index,
|
||||
value.GetStruct());
|
||||
int _retval = _struct->set_string(_struct, index, value.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetBinary(size_t index,
|
||||
CefRefPtr<CefBinaryValue> value) {
|
||||
CefRefPtr<CefBinaryValue> value) {
|
||||
cef_list_value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_binary))
|
||||
return false;
|
||||
@@ -438,16 +415,15 @@ bool CefListValueCToCpp::SetBinary(size_t index,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_binary(_struct,
|
||||
index,
|
||||
CefBinaryValueCToCpp::Unwrap(value));
|
||||
int _retval =
|
||||
_struct->set_binary(_struct, index, CefBinaryValueCToCpp::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetDictionary(size_t index,
|
||||
CefRefPtr<CefDictionaryValue> value) {
|
||||
CefRefPtr<CefDictionaryValue> value) {
|
||||
cef_list_value_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_dictionary))
|
||||
return false;
|
||||
@@ -460,12 +436,11 @@ bool CefListValueCToCpp::SetDictionary(size_t index,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_dictionary(_struct,
|
||||
index,
|
||||
CefDictionaryValueCToCpp::Unwrap(value));
|
||||
int _retval = _struct->set_dictionary(
|
||||
_struct, index, CefDictionaryValueCToCpp::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefListValueCToCpp::SetList(size_t index, CefRefPtr<CefListValue> value) {
|
||||
@@ -481,31 +456,34 @@ bool CefListValueCToCpp::SetList(size_t index, CefRefPtr<CefListValue> value) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_list(_struct,
|
||||
index,
|
||||
CefListValueCToCpp::Unwrap(value));
|
||||
int _retval =
|
||||
_struct->set_list(_struct, index, CefListValueCToCpp::Unwrap(value));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefListValueCToCpp::CefListValueCToCpp() {
|
||||
}
|
||||
CefListValueCToCpp::CefListValueCToCpp() {}
|
||||
|
||||
template<> cef_list_value_t* CefCToCppRefCounted<CefListValueCToCpp,
|
||||
CefListValue, cef_list_value_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefListValue* c) {
|
||||
template <>
|
||||
cef_list_value_t*
|
||||
CefCToCppRefCounted<CefListValueCToCpp, CefListValue, cef_list_value_t>::
|
||||
UnwrapDerived(CefWrapperType type, CefListValue* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefListValueCToCpp,
|
||||
CefListValue, cef_list_value_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefListValueCToCpp,
|
||||
CefListValue,
|
||||
cef_list_value_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefListValueCToCpp, CefListValue,
|
||||
cef_list_value_t>::kWrapperType = WT_LIST_VALUE;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefListValueCToCpp,
|
||||
CefListValue,
|
||||
cef_list_value_t>::kWrapperType =
|
||||
WT_LIST_VALUE;
|
||||
|
Reference in New Issue
Block a user