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,11 +9,12 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=1c3649a0a566198686f496673b77f9bd74865581$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/task_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/task_runner_ctocpp.h"
|
||||
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefTaskRunner> CefTaskRunner::GetForCurrentThread() {
|
||||
@@ -30,14 +31,12 @@ CefRefPtr<CefTaskRunner> CefTaskRunner::GetForThread(CefThreadId threadId) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_task_runner_t* _retval = cef_task_runner_get_for_thread(
|
||||
threadId);
|
||||
cef_task_runner_t* _retval = cef_task_runner_get_for_thread(threadId);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefTaskRunnerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefTaskRunnerCToCpp::IsSame(CefRefPtr<CefTaskRunner> that) {
|
||||
@@ -53,11 +52,10 @@ bool CefTaskRunnerCToCpp::IsSame(CefRefPtr<CefTaskRunner> that) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_same(_struct,
|
||||
CefTaskRunnerCToCpp::Unwrap(that));
|
||||
int _retval = _struct->is_same(_struct, CefTaskRunnerCToCpp::Unwrap(that));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefTaskRunnerCToCpp::BelongsToCurrentThread() {
|
||||
@@ -71,7 +69,7 @@ bool CefTaskRunnerCToCpp::BelongsToCurrentThread() {
|
||||
int _retval = _struct->belongs_to_current_thread(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefTaskRunnerCToCpp::BelongsToThread(CefThreadId threadId) {
|
||||
@@ -82,11 +80,10 @@ bool CefTaskRunnerCToCpp::BelongsToThread(CefThreadId threadId) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->belongs_to_thread(_struct,
|
||||
threadId);
|
||||
int _retval = _struct->belongs_to_thread(_struct, threadId);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefTaskRunnerCToCpp::PostTask(CefRefPtr<CefTask> task) {
|
||||
@@ -102,15 +99,14 @@ bool CefTaskRunnerCToCpp::PostTask(CefRefPtr<CefTask> task) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->post_task(_struct,
|
||||
CefTaskCppToC::Wrap(task));
|
||||
int _retval = _struct->post_task(_struct, CefTaskCppToC::Wrap(task));
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefTaskRunnerCToCpp::PostDelayedTask(CefRefPtr<CefTask> task,
|
||||
int64 delay_ms) {
|
||||
int64 delay_ms) {
|
||||
cef_task_runner_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, post_delayed_task))
|
||||
return false;
|
||||
@@ -123,31 +119,34 @@ bool CefTaskRunnerCToCpp::PostDelayedTask(CefRefPtr<CefTask> task,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->post_delayed_task(_struct,
|
||||
CefTaskCppToC::Wrap(task),
|
||||
delay_ms);
|
||||
int _retval =
|
||||
_struct->post_delayed_task(_struct, CefTaskCppToC::Wrap(task), delay_ms);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefTaskRunnerCToCpp::CefTaskRunnerCToCpp() {
|
||||
}
|
||||
CefTaskRunnerCToCpp::CefTaskRunnerCToCpp() {}
|
||||
|
||||
template<> cef_task_runner_t* CefCToCppRefCounted<CefTaskRunnerCToCpp,
|
||||
CefTaskRunner, cef_task_runner_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefTaskRunner* c) {
|
||||
template <>
|
||||
cef_task_runner_t*
|
||||
CefCToCppRefCounted<CefTaskRunnerCToCpp, CefTaskRunner, cef_task_runner_t>::
|
||||
UnwrapDerived(CefWrapperType type, CefTaskRunner* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefTaskRunnerCToCpp,
|
||||
CefTaskRunner, cef_task_runner_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefTaskRunnerCToCpp,
|
||||
CefTaskRunner,
|
||||
cef_task_runner_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefTaskRunnerCToCpp,
|
||||
CefTaskRunner, cef_task_runner_t>::kWrapperType = WT_TASK_RUNNER;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefTaskRunnerCToCpp,
|
||||
CefTaskRunner,
|
||||
cef_task_runner_t>::kWrapperType =
|
||||
WT_TASK_RUNNER;
|
||||
|
Reference in New Issue
Block a user