Add dummy implementaions of node integration in Windows.
This commit is contained in:
parent
afca7464be
commit
803ec00378
5 changed files with 112 additions and 0 deletions
4
atom.gyp
4
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',
|
||||
|
|
27
browser/node_bindings_browser_win.cc
Normal file
27
browser/node_bindings_browser_win.cc
Normal file
|
@ -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
|
27
browser/node_bindings_browser_win.h
Normal file
27
browser/node_bindings_browser_win.h
Normal file
|
@ -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_
|
27
renderer/node_bindings_renderer_win.cc
Normal file
27
renderer/node_bindings_renderer_win.cc
Normal file
|
@ -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
|
27
renderer/node_bindings_renderer_win.h
Normal file
27
renderer/node_bindings_renderer_win.h
Normal file
|
@ -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_
|
Loading…
Reference in a new issue