Initialize node in browser process.
This commit is contained in:
parent
e49861b45b
commit
f853fc3df5
7 changed files with 90 additions and 3 deletions
|
@ -10,15 +10,21 @@
|
|||
#include "brightray/browser/default_web_contents_delegate.h"
|
||||
#include "brightray/browser/inspectable_web_contents.h"
|
||||
#include "brightray/browser/inspectable_web_contents_view.h"
|
||||
#include "common/node_bindings.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
AtomBrowserMainParts::AtomBrowserMainParts() {
|
||||
AtomBrowserMainParts::AtomBrowserMainParts()
|
||||
: node_bindings_(new NodeBindings) {
|
||||
}
|
||||
|
||||
AtomBrowserMainParts::~AtomBrowserMainParts() {
|
||||
}
|
||||
|
||||
void AtomBrowserMainParts::PostEarlyInitialization() {
|
||||
node_bindings_->Initialize();
|
||||
}
|
||||
|
||||
void AtomBrowserMainParts::PreMainMessageLoopRun() {
|
||||
brightray::BrowserMainParts::PreMainMessageLoopRun();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue