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,15 +9,18 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=18f54750f071fa94a3397dedaf2b90c3d4fe3f4b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h"
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr<CefNavigationEntry> entry,
|
||||
bool current, int index, int total) {
|
||||
bool current,
|
||||
int index,
|
||||
int total) {
|
||||
cef_navigation_entry_visitor_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, visit))
|
||||
return false;
|
||||
@@ -30,35 +33,39 @@ bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr<CefNavigationEntry> entry,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->visit(_struct,
|
||||
CefNavigationEntryCppToC::Wrap(entry),
|
||||
current,
|
||||
index,
|
||||
total);
|
||||
int _retval = _struct->visit(_struct, CefNavigationEntryCppToC::Wrap(entry),
|
||||
current, index, total);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {
|
||||
}
|
||||
CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {}
|
||||
|
||||
template<> cef_navigation_entry_visitor_t* CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::UnwrapDerived(
|
||||
CefWrapperType type, CefNavigationEntryVisitor* c) {
|
||||
template <>
|
||||
cef_navigation_entry_visitor_t* CefCToCppRefCounted<
|
||||
CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor,
|
||||
cef_navigation_entry_visitor_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefNavigationEntryVisitor*
|
||||
c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::DebugObjCt =
|
||||
0;
|
||||
template <>
|
||||
base::AtomicRefCount
|
||||
CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor,
|
||||
cef_navigation_entry_visitor_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::kWrapperType =
|
||||
WT_NAVIGATION_ENTRY_VISITOR;
|
||||
template <>
|
||||
CefWrapperType
|
||||
CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
|
||||
CefNavigationEntryVisitor,
|
||||
cef_navigation_entry_visitor_t>::kWrapperType =
|
||||
WT_NAVIGATION_ENTRY_VISITOR;
|
||||
|
Reference in New Issue
Block a user