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,17 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b7e861d09ab59b636e98e56a191e68a0869b5412$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/v8exception_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_message(
|
||||
struct _cef_v8exception_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
v8exception_get_message(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -32,8 +33,8 @@ cef_string_userfree_t CEF_CALLBACK v8exception_get_message(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_source_line(
|
||||
struct _cef_v8exception_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
v8exception_get_source_line(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,8 +48,8 @@ cef_string_userfree_t CEF_CALLBACK v8exception_get_source_line(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_script_resource_name(
|
||||
struct _cef_v8exception_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
v8exception_get_script_resource_name(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -76,8 +77,8 @@ int CEF_CALLBACK v8exception_get_line_number(struct _cef_v8exception_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_start_position(
|
||||
struct _cef_v8exception_t* self) {
|
||||
int CEF_CALLBACK
|
||||
v8exception_get_start_position(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -135,7 +136,6 @@ int CEF_CALLBACK v8exception_get_end_column(struct _cef_v8exception_t* self) {
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8ExceptionCppToC::CefV8ExceptionCppToC() {
|
||||
@ -149,17 +149,23 @@ CefV8ExceptionCppToC::CefV8ExceptionCppToC() {
|
||||
GetStruct()->get_end_column = v8exception_get_end_column;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefV8Exception> CefCppToCRefCounted<CefV8ExceptionCppToC,
|
||||
CefV8Exception, cef_v8exception_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_v8exception_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefV8Exception>
|
||||
CefCppToCRefCounted<CefV8ExceptionCppToC, CefV8Exception, cef_v8exception_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_v8exception_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefV8ExceptionCppToC,
|
||||
CefV8Exception, cef_v8exception_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefV8ExceptionCppToC,
|
||||
CefV8Exception,
|
||||
cef_v8exception_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefV8ExceptionCppToC,
|
||||
CefV8Exception, cef_v8exception_t>::kWrapperType = WT_V8EXCEPTION;
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefV8ExceptionCppToC,
|
||||
CefV8Exception,
|
||||
cef_v8exception_t>::kWrapperType =
|
||||
WT_V8EXCEPTION;
|
||||
|
Reference in New Issue
Block a user