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 b461c9fbd2
commit 33f077616f
1331 changed files with 33014 additions and 32258 deletions

View File

@ -9,19 +9,22 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=8e37dbdeb9b4552a0c19c34e0ad7855a1c5ef709$
//
#include "libcef_dll/cpptoc/geolocation_handler_cpptoc.h"
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/geolocation_callback_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK geolocation_handler_on_request_geolocation_permission(
struct _cef_geolocation_handler_t* self, cef_browser_t* browser,
const cef_string_t* requesting_url, int request_id,
struct _cef_geolocation_handler_t* self,
cef_browser_t* browser,
const cef_string_t* requesting_url,
int request_id,
cef_geolocation_callback_t* callback) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -42,19 +45,18 @@ int CEF_CALLBACK geolocation_handler_on_request_geolocation_permission(
return 0;
// Execute
bool _retval = CefGeolocationHandlerCppToC::Get(
self)->OnRequestGeolocationPermission(
CefBrowserCToCpp::Wrap(browser),
CefString(requesting_url),
request_id,
CefGeolocationCallbackCToCpp::Wrap(callback));
bool _retval =
CefGeolocationHandlerCppToC::Get(self)->OnRequestGeolocationPermission(
CefBrowserCToCpp::Wrap(browser), CefString(requesting_url),
request_id, CefGeolocationCallbackCToCpp::Wrap(callback));
// Return type: bool
return _retval;
}
void CEF_CALLBACK geolocation_handler_on_cancel_geolocation_permission(
struct _cef_geolocation_handler_t* self, cef_browser_t* browser,
struct _cef_geolocation_handler_t* self,
cef_browser_t* browser,
int request_id) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -68,13 +70,11 @@ void CEF_CALLBACK geolocation_handler_on_cancel_geolocation_permission(
// Execute
CefGeolocationHandlerCppToC::Get(self)->OnCancelGeolocationPermission(
CefBrowserCToCpp::Wrap(browser),
request_id);
CefBrowserCToCpp::Wrap(browser), request_id);
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefGeolocationHandlerCppToC::CefGeolocationHandlerCppToC() {
@ -84,18 +84,26 @@ CefGeolocationHandlerCppToC::CefGeolocationHandlerCppToC() {
geolocation_handler_on_cancel_geolocation_permission;
}
template<> CefRefPtr<CefGeolocationHandler> CefCppToCRefCounted<CefGeolocationHandlerCppToC,
CefGeolocationHandler, cef_geolocation_handler_t>::UnwrapDerived(
CefWrapperType type, cef_geolocation_handler_t* s) {
template <>
CefRefPtr<CefGeolocationHandler> CefCppToCRefCounted<
CefGeolocationHandlerCppToC,
CefGeolocationHandler,
cef_geolocation_handler_t>::UnwrapDerived(CefWrapperType type,
cef_geolocation_handler_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefGeolocationHandlerCppToC,
CefGeolocationHandler, cef_geolocation_handler_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefGeolocationHandlerCppToC,
CefGeolocationHandler,
cef_geolocation_handler_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefGeolocationHandlerCppToC,
CefGeolocationHandler, cef_geolocation_handler_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefGeolocationHandlerCppToC,
CefGeolocationHandler,
cef_geolocation_handler_t>::kWrapperType =
WT_GEOLOCATION_HANDLER;