]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick: for cpplint.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 14 Apr 2013 09:33:44 +0000 (17:33 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 14 Apr 2013 09:33:44 +0000 (17:33 +0800)
app/atom_library_main.h
browser/api/atom_extensions.cc
browser/atom_browser_main_parts.h
common/node_bindings.h
common/node_bindings_mac.mm

index adbe25bda50cffcd1f0b571ce48bfae823060a8f..b9aa32511b266c4d2fdec24b3520cf050e9f01d6 100644 (file)
@@ -6,10 +6,8 @@
 #define ATOM_APP_ATOM_LIBRARY_MAIN_
 
 extern "C" {
-
-__attribute__ ((visibility ("default")))
+__attribute__((visibility("default")))
 int AtomMain(int argc, const char* argv[]);
-
 }
 
 #endif  // ATOM_APP_ATOM_LIBRARY_MAIN_
index 0cb77796915ea73ff5c0dc19bfcc61c31ac738f4..b37b6f11c20af4faac2c8a029023e66014148335 100644 (file)
@@ -29,10 +29,9 @@ namespace atom {
 #define NODE_EXT_LIST_ITEM NODE_EXT_STRING
 #define NODE_EXT_LIST_END NULL};
 
-#include "browser/api/atom_extensions.h"
+#include "browser/api/atom_extensions.h" // NOLINT
 
-node::node_module_struct* get_builtin_module(const char *name)
-{
+node::node_module_struct* get_builtin_module(const char *name) {
   char buf[128];
   node::node_module_struct *cur = NULL;
   snprintf(buf, sizeof(buf), "atom_%s", name);
index 6e96aaa1d33594fadc728af60542f8c1dee85afa..aa50ef7d7d227226eae5aa704aa673623c7ff2d5 100644 (file)
@@ -20,7 +20,7 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts {
 
  protected:
   virtual void PostEarlyInitialization() OVERRIDE;
-  virtual void PreMainMessageLoopStart() OVERRIDE; 
+  virtual void PreMainMessageLoopStart() OVERRIDE;
   virtual void PreMainMessageLoopRun() OVERRIDE;
 
  private:
index 9c9d4cadee329db32dc3da82fbeb6cd7a46fb1bd..2b684d8ee44160e82cfae9c775444dae3e05aeec 100644 (file)
@@ -32,9 +32,10 @@ class NodeBindings {
 
   bool is_browser_;
 
+ private:
   DISALLOW_COPY_AND_ASSIGN(NodeBindings);
 };
 
-}  // namespace at
+}  // namespace atom
 
 #endif  // RAVE_COMMON_NODE_BINDINGS_
index cc203c02d18529d7a652e851f7405c414983f66e..78cdc6ad13c3c008b3a9d7da56d14e79037440ce 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "node_bindings_mac.h"
+#include "common/node_bindings_mac.h"
 
 #include "base/message_loop.h"
 #include "content/public/browser/browser_thread.h"
@@ -76,7 +76,7 @@ void NodeBindingsMac::UvRunOnce() {
   // Deal with uv events.
   int r = uv_run(loop_, (uv_run_mode)(UV_RUN_ONCE | UV_RUN_NOWAIT));
   if (r == 0 || loop_->stop_flag != 0)
-    MessageLoop::current()->QuitWhenIdle(); // Quit from uv.
+    MessageLoop::current()->QuitWhenIdle();  // Quit from uv.
 
   // Tell the worker thread to continue polling.
   uv_sem_post(&embed_sem_);