Use JavaScript to open the main window.
This commit is contained in:
parent
b313d94a2f
commit
60528e53ee
11 changed files with 479 additions and 25 deletions
|
@ -17,13 +17,23 @@ class AtomBindings {
|
|||
|
||||
// Add process.atom_binding function, which behaves like process.binding but
|
||||
// load native code from atom-shell instead.
|
||||
void BindTo(v8::Handle<v8::Object> process);
|
||||
virtual void BindTo(v8::Handle<v8::Object> process);
|
||||
|
||||
// Called when the node.js main script has been loaded.
|
||||
virtual void AfterLoad();
|
||||
|
||||
// The require('atom').browserMainParts object.
|
||||
v8::Handle<v8::Object> browser_main_parts() {
|
||||
return browser_main_parts_;
|
||||
}
|
||||
|
||||
private:
|
||||
static v8::Handle<v8::Value> Binding(const v8::Arguments& args);
|
||||
|
||||
static v8::Persistent<v8::Object> binding_cache_;
|
||||
|
||||
v8::Persistent<v8::Object> browser_main_parts_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomBindings);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue