Don't separate node bindings into renderer and browser part.
Since we are going to use embeding thread to implement message integration on all platforms, we do not need to separate renderer and browser anymore.
This commit is contained in:
parent
bc62d8c2c5
commit
008b8d404d
11 changed files with 64 additions and 123 deletions
|
@ -20,7 +20,7 @@ AtomBrowserMainParts* AtomBrowserMainParts::self_ = NULL;
|
|||
AtomBrowserMainParts::AtomBrowserMainParts()
|
||||
: atom_bindings_(new AtomBrowserBindings),
|
||||
browser_(new Browser),
|
||||
node_bindings_(NodeBindings::CreateInBrowser()) {
|
||||
node_bindings_(NodeBindings::Create(true)) {
|
||||
DCHECK(!self_) << "Cannot have two AtomBrowserMainParts";
|
||||
self_ = this;
|
||||
}
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
// 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
|
|
@ -1,27 +0,0 @@
|
|||
// 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_
|
Loading…
Add table
Add a link
Reference in a new issue