Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -9,16 +9,18 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=47339f94c600cd510238e5994ac25684fe82fc14$
//
#include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK resource_bundle_handler_get_localized_string(
struct _cef_resource_bundle_handler_t* self, int string_id,
struct _cef_resource_bundle_handler_t* self,
int string_id,
cef_string_t* string) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -35,15 +37,16 @@ int CEF_CALLBACK resource_bundle_handler_get_localized_string(
// Execute
bool _retval = CefResourceBundleHandlerCppToC::Get(self)->GetLocalizedString(
string_id,
stringStr);
string_id, stringStr);
// Return type: bool
return _retval;
}
int CEF_CALLBACK resource_bundle_handler_get_data_resource(
struct _cef_resource_bundle_handler_t* self, int resource_id, void** data,
struct _cef_resource_bundle_handler_t* self,
int resource_id,
void** data,
size_t* data_size) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -60,15 +63,13 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource(
return 0;
// Translate param: data; type: simple_byref
void* dataVal = data?*data:NULL;
void* dataVal = data ? *data : NULL;
// Translate param: data_size; type: simple_byref
size_t data_sizeVal = data_size?*data_size:0;
size_t data_sizeVal = data_size ? *data_size : 0;
// Execute
bool _retval = CefResourceBundleHandlerCppToC::Get(self)->GetDataResource(
resource_id,
dataVal,
data_sizeVal);
resource_id, dataVal, data_sizeVal);
// Restore param: data; type: simple_byref
if (data)
@ -82,8 +83,11 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource(
}
int CEF_CALLBACK resource_bundle_handler_get_data_resource_for_scale(
struct _cef_resource_bundle_handler_t* self, int resource_id,
cef_scale_factor_t scale_factor, void** data, size_t* data_size) {
struct _cef_resource_bundle_handler_t* self,
int resource_id,
cef_scale_factor_t scale_factor,
void** data,
size_t* data_size) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -99,17 +103,14 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource_for_scale(
return 0;
// Translate param: data; type: simple_byref
void* dataVal = data?*data:NULL;
void* dataVal = data ? *data : NULL;
// Translate param: data_size; type: simple_byref
size_t data_sizeVal = data_size?*data_size:0;
size_t data_sizeVal = data_size ? *data_size : 0;
// Execute
bool _retval = CefResourceBundleHandlerCppToC::Get(
self)->GetDataResourceForScale(
resource_id,
scale_factor,
dataVal,
data_sizeVal);
bool _retval =
CefResourceBundleHandlerCppToC::Get(self)->GetDataResourceForScale(
resource_id, scale_factor, dataVal, data_sizeVal);
// Restore param: data; type: simple_byref
if (data)
@ -124,7 +125,6 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource_for_scale(
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefResourceBundleHandlerCppToC::CefResourceBundleHandlerCppToC() {
@ -135,18 +135,28 @@ CefResourceBundleHandlerCppToC::CefResourceBundleHandlerCppToC() {
resource_bundle_handler_get_data_resource_for_scale;
}
template<> CefRefPtr<CefResourceBundleHandler> CefCppToCRefCounted<CefResourceBundleHandlerCppToC,
CefResourceBundleHandler, cef_resource_bundle_handler_t>::UnwrapDerived(
CefWrapperType type, cef_resource_bundle_handler_t* s) {
template <>
CefRefPtr<CefResourceBundleHandler> CefCppToCRefCounted<
CefResourceBundleHandlerCppToC,
CefResourceBundleHandler,
cef_resource_bundle_handler_t>::UnwrapDerived(CefWrapperType type,
cef_resource_bundle_handler_t*
s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefResourceBundleHandlerCppToC,
CefResourceBundleHandler, cef_resource_bundle_handler_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefResourceBundleHandlerCppToC,
CefResourceBundleHandler,
cef_resource_bundle_handler_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefResourceBundleHandlerCppToC,
CefResourceBundleHandler, cef_resource_bundle_handler_t>::kWrapperType =
WT_RESOURCE_BUNDLE_HANDLER;
template <>
CefWrapperType
CefCppToCRefCounted<CefResourceBundleHandlerCppToC,
CefResourceBundleHandler,
cef_resource_bundle_handler_t>::kWrapperType =
WT_RESOURCE_BUNDLE_HANDLER;