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,10 +9,11 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=5609fad7a14bad55ece61758326b8fdb8a20ac2c$
//
#include "libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
@ -36,32 +37,38 @@ void CEF_CALLBACK get_geolocation_callback_on_location_update(
positionObj.Set(*position, false);
// Execute
CefGetGeolocationCallbackCppToC::Get(self)->OnLocationUpdate(
positionObj);
CefGetGeolocationCallbackCppToC::Get(self)->OnLocationUpdate(positionObj);
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefGetGeolocationCallbackCppToC::CefGetGeolocationCallbackCppToC() {
GetStruct()->on_location_update = get_geolocation_callback_on_location_update;
}
template<> CefRefPtr<CefGetGeolocationCallback> CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::UnwrapDerived(
CefWrapperType type, cef_get_geolocation_callback_t* s) {
template <>
CefRefPtr<CefGetGeolocationCallback>
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback,
cef_get_geolocation_callback_t>::
UnwrapDerived(CefWrapperType type, cef_get_geolocation_callback_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::DebugObjCt =
0;
template <>
base::AtomicRefCount
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback,
cef_get_geolocation_callback_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback, cef_get_geolocation_callback_t>::kWrapperType =
WT_GET_GEOLOCATION_CALLBACK;
template <>
CefWrapperType
CefCppToCRefCounted<CefGetGeolocationCallbackCppToC,
CefGetGeolocationCallback,
cef_get_geolocation_callback_t>::kWrapperType =
WT_GET_GEOLOCATION_CALLBACK;