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,16 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8d2618628f2907d261fe020c7e5d60dd5f45f14b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/v8value_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/v8accessor_ctocpp.h"
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
const CefRefPtr<CefV8Value> object, CefRefPtr<CefV8Value>& retval,
|
||||
CefString& exception) {
|
||||
const CefRefPtr<CefV8Value> object,
|
||||
CefRefPtr<CefV8Value>& retval,
|
||||
CefString& exception) {
|
||||
cef_v8accessor_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get))
|
||||
return false;
|
||||
@@ -41,11 +43,9 @@ bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
cef_v8value_t* retvalOrig = retvalStruct;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get(_struct,
|
||||
name.GetStruct(),
|
||||
CefV8ValueCppToC::Wrap(object),
|
||||
&retvalStruct,
|
||||
exception.GetWritableStruct());
|
||||
int _retval =
|
||||
_struct->get(_struct, name.GetStruct(), CefV8ValueCppToC::Wrap(object),
|
||||
&retvalStruct, exception.GetWritableStruct());
|
||||
|
||||
// Restore param:retval; type: refptr_diff_byref
|
||||
if (retvalStruct) {
|
||||
@@ -57,12 +57,13 @@ bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
}
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefV8AccessorCToCpp::Set(const CefString& name,
|
||||
const CefRefPtr<CefV8Value> object, const CefRefPtr<CefV8Value> value,
|
||||
CefString& exception) {
|
||||
const CefRefPtr<CefV8Value> object,
|
||||
const CefRefPtr<CefV8Value> value,
|
||||
CefString& exception) {
|
||||
cef_v8accessor_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set))
|
||||
return false;
|
||||
@@ -83,33 +84,35 @@ bool CefV8AccessorCToCpp::Set(const CefString& name,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set(_struct,
|
||||
name.GetStruct(),
|
||||
CefV8ValueCppToC::Wrap(object),
|
||||
CefV8ValueCppToC::Wrap(value),
|
||||
exception.GetWritableStruct());
|
||||
int _retval = _struct->set(
|
||||
_struct, name.GetStruct(), CefV8ValueCppToC::Wrap(object),
|
||||
CefV8ValueCppToC::Wrap(value), exception.GetWritableStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8AccessorCToCpp::CefV8AccessorCToCpp() {
|
||||
}
|
||||
CefV8AccessorCToCpp::CefV8AccessorCToCpp() {}
|
||||
|
||||
template<> cef_v8accessor_t* CefCToCppRefCounted<CefV8AccessorCToCpp,
|
||||
CefV8Accessor, cef_v8accessor_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefV8Accessor* c) {
|
||||
template <>
|
||||
cef_v8accessor_t*
|
||||
CefCToCppRefCounted<CefV8AccessorCToCpp, CefV8Accessor, cef_v8accessor_t>::
|
||||
UnwrapDerived(CefWrapperType type, CefV8Accessor* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefV8AccessorCToCpp,
|
||||
CefV8Accessor, cef_v8accessor_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefV8AccessorCToCpp,
|
||||
CefV8Accessor,
|
||||
cef_v8accessor_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefV8AccessorCToCpp,
|
||||
CefV8Accessor, cef_v8accessor_t>::kWrapperType = WT_V8ACCESSOR;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefV8AccessorCToCpp,
|
||||
CefV8Accessor,
|
||||
cef_v8accessor_t>::kWrapperType =
|
||||
WT_V8ACCESSOR;
|
||||
|
Reference in New Issue
Block a user