From: Cheng Zhao Date: Sun, 15 Dec 2013 09:09:35 +0000 (+0800) Subject: :lipstick: Fix cpplint warnings. X-Git-Tag: v0.8.0~4^2~32 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7e67f7632db75e684bede1a7c4941a78d9ef19fa;p=electron.git :lipstick: Fix cpplint warnings. --- diff --git a/browser/api/atom_api_menu.cc b/browser/api/atom_api_menu.cc index 4367dac6..ffc9c5a2 100644 --- a/browser/api/atom_api_menu.cc +++ b/browser/api/atom_api_menu.cc @@ -239,7 +239,8 @@ void Menu::Clear(const v8::FunctionCallbackInfo& args) { } // static -void Menu::GetIndexOfCommandId(const v8::FunctionCallbackInfo& args) { +void Menu::GetIndexOfCommandId( + const v8::FunctionCallbackInfo& args) { UNWRAP_MEMNU_AND_CHECK; int index = FromV8Value(args[0]); args.GetReturnValue().Set(self->model_->GetIndexOfCommandId(index)); diff --git a/browser/api/atom_api_menu.h b/browser/api/atom_api_menu.h index 0e1d1a5c..9dac74cc 100644 --- a/browser/api/atom_api_menu.h +++ b/browser/api/atom_api_menu.h @@ -57,7 +57,8 @@ class Menu : public EventEmitter, static void Clear(const v8::FunctionCallbackInfo& args); - static void GetIndexOfCommandId(const v8::FunctionCallbackInfo& args); + static void GetIndexOfCommandId( + const v8::FunctionCallbackInfo& args); static void GetItemCount(const v8::FunctionCallbackInfo& args); static void GetCommandIdAt(const v8::FunctionCallbackInfo& args); static void GetLabelAt(const v8::FunctionCallbackInfo& args); diff --git a/browser/api/atom_api_protocol.h b/browser/api/atom_api_protocol.h index 13975910..f03b227a 100644 --- a/browser/api/atom_api_protocol.h +++ b/browser/api/atom_api_protocol.h @@ -21,11 +21,15 @@ class Protocol { private: static void RegisterProtocol(const v8::FunctionCallbackInfo& args); - static void UnregisterProtocol(const v8::FunctionCallbackInfo& args); - static void IsHandledProtocol(const v8::FunctionCallbackInfo& args); - - static void InterceptProtocol(const v8::FunctionCallbackInfo& args); - static void UninterceptProtocol(const v8::FunctionCallbackInfo& args); + static void UnregisterProtocol( + const v8::FunctionCallbackInfo& args); + static void IsHandledProtocol( + const v8::FunctionCallbackInfo& args); + + static void InterceptProtocol( + const v8::FunctionCallbackInfo& args); + static void UninterceptProtocol( + const v8::FunctionCallbackInfo& args); static void RegisterProtocolInIO(const std::string& scheme); static void UnregisterProtocolInIO(const std::string& scheme); diff --git a/browser/api/atom_api_window.cc b/browser/api/atom_api_window.cc index c914d0f9..59c54fbc 100644 --- a/browser/api/atom_api_window.cc +++ b/browser/api/atom_api_window.cc @@ -460,7 +460,8 @@ void Window::IsLoading(const v8::FunctionCallbackInfo& args) { } // static -void Window::IsWaitingForResponse(const v8::FunctionCallbackInfo& args) { +void Window::IsWaitingForResponse( + const v8::FunctionCallbackInfo& args) { UNWRAP_WINDOW_AND_CHECK; args.GetReturnValue().Set( self->window_->GetWebContents()->IsWaitingForResponse()); @@ -610,7 +611,8 @@ void Window::Reload(const v8::FunctionCallbackInfo& args) { } // static -void Window::ReloadIgnoringCache(const v8::FunctionCallbackInfo& args) { +void Window::ReloadIgnoringCache( + const v8::FunctionCallbackInfo& args) { UNWRAP_WINDOW_AND_CHECK; NavigationController& controller = diff --git a/browser/api/atom_api_window.h b/browser/api/atom_api_window.h index e1ac0675..cc069bd7 100644 --- a/browser/api/atom_api_window.h +++ b/browser/api/atom_api_window.h @@ -94,7 +94,8 @@ class Window : public EventEmitter, // APIs for WebContents. static void GetPageTitle(const v8::FunctionCallbackInfo& args); static void IsLoading(const v8::FunctionCallbackInfo& args); - static void IsWaitingForResponse(const v8::FunctionCallbackInfo& args); + static void IsWaitingForResponse( + const v8::FunctionCallbackInfo& args); static void Stop(const v8::FunctionCallbackInfo& args); static void GetRoutingID(const v8::FunctionCallbackInfo& args); static void GetProcessID(const v8::FunctionCallbackInfo& args); @@ -111,7 +112,8 @@ class Window : public EventEmitter, static void GoToIndex(const v8::FunctionCallbackInfo& args); static void GoToOffset(const v8::FunctionCallbackInfo& args); static void Reload(const v8::FunctionCallbackInfo& args); - static void ReloadIgnoringCache(const v8::FunctionCallbackInfo& args); + static void ReloadIgnoringCache( + const v8::FunctionCallbackInfo& args); // Called when capturePage is done. void OnCapturePageDone(const RefCountedV8Function& callback,