]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick: Fix cpplint warnings.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 15 Dec 2013 09:09:35 +0000 (17:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 15 Dec 2013 09:09:35 +0000 (17:09 +0800)
browser/api/atom_api_menu.cc
browser/api/atom_api_menu.h
browser/api/atom_api_protocol.h
browser/api/atom_api_window.cc
browser/api/atom_api_window.h

index 4367dac6c0b6058597c75581cc157a4bbe02b96f..ffc9c5a26965ab2822fcc8529f87c5108dbae81f 100644 (file)
@@ -239,7 +239,8 @@ void Menu::Clear(const v8::FunctionCallbackInfo<v8::Value>& args) {
 }
 
 // static
-void Menu::GetIndexOfCommandId(const v8::FunctionCallbackInfo<v8::Value>& args) {
+void Menu::GetIndexOfCommandId(
+    const v8::FunctionCallbackInfo<v8::Value>& args) {
   UNWRAP_MEMNU_AND_CHECK;
   int index = FromV8Value(args[0]);
   args.GetReturnValue().Set(self->model_->GetIndexOfCommandId(index));
index 0e1d1a5c2483eac0f06a4975c418f11a176d010d..9dac74cc10f1e5bc7d9135dadc15cdff88cae8d1 100644 (file)
@@ -57,7 +57,8 @@ class Menu : public EventEmitter,
 
   static void Clear(const v8::FunctionCallbackInfo<v8::Value>& args);
 
-  static void GetIndexOfCommandId(const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void GetIndexOfCommandId(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GetItemCount(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GetCommandIdAt(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GetLabelAt(const v8::FunctionCallbackInfo<v8::Value>& args);
index 1397591038b6c9f3be0e02b7c6485b9f11661703..f03b227a4fe9d5fed22d969c52c8556cff34564f 100644 (file)
@@ -21,11 +21,15 @@ class Protocol {
 
  private:
   static void RegisterProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
-  static void UnregisterProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
-  static void IsHandledProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
-
-  static void InterceptProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
-  static void UninterceptProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void UnregisterProtocol(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void IsHandledProtocol(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
+
+  static void InterceptProtocol(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void UninterceptProtocol(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
 
   static void RegisterProtocolInIO(const std::string& scheme);
   static void UnregisterProtocolInIO(const std::string& scheme);
index c914d0f97b9267058eaf536e2646bf43c7925c31..59c54fbcb3b0a8d6beb515815170b3878eb13670 100644 (file)
@@ -460,7 +460,8 @@ void Window::IsLoading(const v8::FunctionCallbackInfo<v8::Value>& args) {
 }
 
 // static
-void Window::IsWaitingForResponse(const v8::FunctionCallbackInfo<v8::Value>& args) {
+void Window::IsWaitingForResponse(
+    const v8::FunctionCallbackInfo<v8::Value>& args) {
   UNWRAP_WINDOW_AND_CHECK;
   args.GetReturnValue().Set(
       self->window_->GetWebContents()->IsWaitingForResponse());
@@ -610,7 +611,8 @@ void Window::Reload(const v8::FunctionCallbackInfo<v8::Value>& args) {
 }
 
 // static
-void Window::ReloadIgnoringCache(const v8::FunctionCallbackInfo<v8::Value>& args) {
+void Window::ReloadIgnoringCache(
+    const v8::FunctionCallbackInfo<v8::Value>& args) {
   UNWRAP_WINDOW_AND_CHECK;
 
   NavigationController& controller =
index e1ac0675f344bdf4c0fb0fdd8e267eba768d13f4..cc069bd70ddd57637745fc345429f74d227aa127 100644 (file)
@@ -94,7 +94,8 @@ class Window : public EventEmitter,
   // APIs for WebContents.
   static void GetPageTitle(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void IsLoading(const v8::FunctionCallbackInfo<v8::Value>& args);
-  static void IsWaitingForResponse(const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void IsWaitingForResponse(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
   static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GetProcessID(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -111,7 +112,8 @@ class Window : public EventEmitter,
   static void GoToIndex(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void GoToOffset(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void Reload(const v8::FunctionCallbackInfo<v8::Value>& args);
-  static void ReloadIgnoringCache(const v8::FunctionCallbackInfo<v8::Value>& args);
+  static void ReloadIgnoringCache(
+      const v8::FunctionCallbackInfo<v8::Value>& args);
 
   // Called when capturePage is done.
   void OnCapturePageDone(const RefCountedV8Function& callback,