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,19 +9,23 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=a6567a72d78089a0a9784dcc94c6af30af98189b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
size_t argumentsCount, struct _cef_v8value_t* const* arguments,
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception) {
|
||||
const cef_string_t* name,
|
||||
struct _cef_v8value_t* object,
|
||||
size_t argumentsCount,
|
||||
struct _cef_v8value_t* const* arguments,
|
||||
struct _cef_v8value_t** retval,
|
||||
cef_string_t* exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -49,7 +53,7 @@ int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
return 0;
|
||||
|
||||
// Translate param: arguments; type: refptr_vec_diff_byref_const
|
||||
std::vector<CefRefPtr<CefV8Value> > argumentsList;
|
||||
std::vector<CefRefPtr<CefV8Value>> argumentsList;
|
||||
if (argumentsCount > 0) {
|
||||
for (size_t i = 0; i < argumentsCount; ++i) {
|
||||
CefRefPtr<CefV8Value> argumentsVal = CefV8ValueCToCpp::Wrap(arguments[i]);
|
||||
@ -66,10 +70,7 @@ int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefV8HandlerCppToC::Get(self)->Execute(
|
||||
CefString(name),
|
||||
CefV8ValueCToCpp::Wrap(object),
|
||||
argumentsList,
|
||||
retvalPtr,
|
||||
CefString(name), CefV8ValueCToCpp::Wrap(object), argumentsList, retvalPtr,
|
||||
exceptionStr);
|
||||
|
||||
// Restore param: retval; type: refptr_diff_byref
|
||||
@ -89,24 +90,29 @@ int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8HandlerCppToC::CefV8HandlerCppToC() {
|
||||
GetStruct()->execute = v8handler_execute;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefV8Handler> CefCppToCRefCounted<CefV8HandlerCppToC,
|
||||
CefV8Handler, cef_v8handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_v8handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefV8Handler>
|
||||
CefCppToCRefCounted<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_v8handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefV8HandlerCppToC,
|
||||
CefV8Handler, cef_v8handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefV8HandlerCppToC,
|
||||
CefV8Handler,
|
||||
cef_v8handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefV8HandlerCppToC, CefV8Handler,
|
||||
cef_v8handler_t>::kWrapperType = WT_V8HANDLER;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefV8HandlerCppToC,
|
||||
CefV8Handler,
|
||||
cef_v8handler_t>::kWrapperType =
|
||||
WT_V8HANDLER;
|
||||
|
Reference in New Issue
Block a user