diff --git a/atom.gyp b/atom.gyp index f45b7f870120..d46e81e07848 100644 --- a/atom.gyp +++ b/atom.gyp @@ -99,6 +99,8 @@ 'browser/native_window_mac.h', 'browser/native_window_mac.mm', 'browser/native_window_observer.h', + 'browser/node_bindings_browser_win.cc', + 'browser/node_bindings_browser_win.h', 'browser/nsalert_synchronous_sheet.h', 'browser/nsalert_synchronous_sheet.mm', 'browser/window_list.cc', @@ -139,6 +141,8 @@ 'renderer/atom_render_view_observer.h', 'renderer/atom_renderer_client.cc', 'renderer/atom_renderer_client.h', + 'renderer/node_bindings_renderer_win.cc', + 'renderer/node_bindings_renderer_win.h', ], 'framework_sources': [ 'app/atom_library_main.cc', diff --git a/browser/node_bindings_browser_win.cc b/browser/node_bindings_browser_win.cc new file mode 100644 index 000000000000..17446c29b799 --- /dev/null +++ b/browser/node_bindings_browser_win.cc @@ -0,0 +1,27 @@ +// Copyright (c) 2013 GitHub, Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "browser/node_bindings_browser_win.h" + +namespace atom { + +NodeBindingsBrowserWin::NodeBindingsBrowserWin() + : NodeBindings(true) { +} + +NodeBindingsBrowserWin::~NodeBindingsBrowserWin() { +} + +void NodeBindingsBrowserWin::PrepareMessageLoop() { +} + +void NodeBindingsBrowserWin::RunMessageLoop() { +} + +// static +NodeBindings* NodeBindings::CreateInBrowser() { + return new NodeBindingsBrowserWin(); +} + +} // namespace atom diff --git a/browser/node_bindings_browser_win.h b/browser/node_bindings_browser_win.h new file mode 100644 index 000000000000..a20cc7230a70 --- /dev/null +++ b/browser/node_bindings_browser_win.h @@ -0,0 +1,27 @@ +// Copyright (c) 2013 GitHub, Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ATOM_BROWSER_NODE_BINDINGS_BROWSER_WIN_H_ +#define ATOM_BROWSER_NODE_BINDINGS_BROWSER_WIN_H_ + +#include "base/compiler_specific.h" +#include "common/node_bindings.h" + +namespace atom { + +class NodeBindingsBrowserWin : public NodeBindings { + public: + NodeBindingsBrowserWin(); + virtual ~NodeBindingsBrowserWin(); + + virtual void PrepareMessageLoop() OVERRIDE; + virtual void RunMessageLoop() OVERRIDE; + + private: + DISALLOW_COPY_AND_ASSIGN(NodeBindingsBrowserWin); +}; + +} // namespace atom + +#endif // ATOM_BROWSER_NODE_BINDINGS_BROWSER_WIN_H_ diff --git a/renderer/node_bindings_renderer_win.cc b/renderer/node_bindings_renderer_win.cc new file mode 100644 index 000000000000..9466732d255c --- /dev/null +++ b/renderer/node_bindings_renderer_win.cc @@ -0,0 +1,27 @@ +// Copyright (c) 2013 GitHub, Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "renderer/node_bindings_renderer_win.h" + +namespace atom { + +NodeBindingsRendererWin::NodeBindingsRendererWin() + : NodeBindings(false) { +} + +NodeBindingsRendererWin::~NodeBindingsRendererWin() { +} + +void NodeBindingsRendererWin::PrepareMessageLoop() { +} + +void NodeBindingsRendererWin::RunMessageLoop() { +} + +// static +NodeBindings* NodeBindings::CreateInRenderer() { + return new NodeBindingsRendererWin(); +} + +} // namespace atom diff --git a/renderer/node_bindings_renderer_win.h b/renderer/node_bindings_renderer_win.h new file mode 100644 index 000000000000..884766fc61dc --- /dev/null +++ b/renderer/node_bindings_renderer_win.h @@ -0,0 +1,27 @@ +// Copyright (c) 2013 GitHub, Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ATOM_RENDERER_NODE_BINDINGS_RENDERER_WIN_H_ +#define ATOM_RENDERER_NODE_BINDINGS_RENDERER_WIN_H_ + +#include "base/compiler_specific.h" +#include "common/node_bindings.h" + +namespace atom { + +class NodeBindingsRendererWin : public NodeBindings { + public: + NodeBindingsRendererWin(); + virtual ~NodeBindingsRendererWin(); + + virtual void PrepareMessageLoop() OVERRIDE; + virtual void RunMessageLoop() OVERRIDE; + + private: + DISALLOW_COPY_AND_ASSIGN(NodeBindingsRendererWin); +}; + +} // namespace atom + +#endif // ATOM_RENDERER_NODE_BINDINGS_RENDERER_WIN_H_