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,17 +9,19 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d3d4fbf680412ca26d5803ffd269dea1e06ed388$
//
#include "libcef_dll/cpptoc/focus_handler_cpptoc.h"
#include "libcef_dll/ctocpp/browser_ctocpp.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
cef_browser_t* browser, int next) {
cef_browser_t* browser,
int next) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -31,13 +33,13 @@ void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
return;
// Execute
CefFocusHandlerCppToC::Get(self)->OnTakeFocus(
CefBrowserCToCpp::Wrap(browser),
next?true:false);
CefFocusHandlerCppToC::Get(self)->OnTakeFocus(CefBrowserCToCpp::Wrap(browser),
next ? true : false);
}
int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
cef_browser_t* browser, cef_focus_source_t source) {
cef_browser_t* browser,
cef_focus_source_t source) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -50,15 +52,14 @@ int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
// Execute
bool _retval = CefFocusHandlerCppToC::Get(self)->OnSetFocus(
CefBrowserCToCpp::Wrap(browser),
source);
CefBrowserCToCpp::Wrap(browser), source);
// Return type: bool
return _retval;
}
void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self,
cef_browser_t* browser) {
cef_browser_t* browser) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -70,13 +71,11 @@ void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self,
return;
// Execute
CefFocusHandlerCppToC::Get(self)->OnGotFocus(
CefBrowserCToCpp::Wrap(browser));
CefFocusHandlerCppToC::Get(self)->OnGotFocus(CefBrowserCToCpp::Wrap(browser));
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefFocusHandlerCppToC::CefFocusHandlerCppToC() {
@ -85,17 +84,25 @@ CefFocusHandlerCppToC::CefFocusHandlerCppToC() {
GetStruct()->on_got_focus = focus_handler_on_got_focus;
}
template<> CefRefPtr<CefFocusHandler> CefCppToCRefCounted<CefFocusHandlerCppToC,
CefFocusHandler, cef_focus_handler_t>::UnwrapDerived(CefWrapperType type,
cef_focus_handler_t* s) {
template <>
CefRefPtr<CefFocusHandler> CefCppToCRefCounted<
CefFocusHandlerCppToC,
CefFocusHandler,
cef_focus_handler_t>::UnwrapDerived(CefWrapperType type,
cef_focus_handler_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefFocusHandlerCppToC,
CefFocusHandler, cef_focus_handler_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefFocusHandlerCppToC,
CefFocusHandler,
cef_focus_handler_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefFocusHandlerCppToC,
CefFocusHandler, cef_focus_handler_t>::kWrapperType = WT_FOCUS_HANDLER;
template <>
CefWrapperType CefCppToCRefCounted<CefFocusHandlerCppToC,
CefFocusHandler,
cef_focus_handler_t>::kWrapperType =
WT_FOCUS_HANDLER;