#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_
#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);
protected:
virtual void PostEarlyInitialization() OVERRIDE;
- virtual void PreMainMessageLoopStart() OVERRIDE;
+ virtual void PreMainMessageLoopStart() OVERRIDE;
virtual void PreMainMessageLoopRun() OVERRIDE;
private:
bool is_browser_;
+ private:
DISALLOW_COPY_AND_ASSIGN(NodeBindings);
};
-} // namespace at
+} // namespace atom
#endif // RAVE_COMMON_NODE_BINDINGS_
// 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"
// 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_);