Initial RPC API implementation.

Basic usage is:
remote = require 'remote'
Window = remote.require 'window'
w = new Window { width: 800, height: 600 }

Still need to do:
* Beter support for Array type.
* Remote objects should cheat devtools.
* Support cross-process callbacks.
This commit is contained in:
Cheng Zhao 2013-04-24 16:43:01 +08:00
parent f8899242c5
commit d723173bc7
8 changed files with 145 additions and 25 deletions

View file

@ -15,11 +15,11 @@ ipc.on('sync-message', function(event, process_id, routing_id) {
atom.browserMainParts.preMainMessageLoopRun = function() {
mainWindow = new Window({ width: 800, height: 600 });
mainWindow.url = 'file://' + __dirname + '/index.html';
mainWindow.loadURL('file://' + __dirname + '/index.html');
mainWindow.on('page-title-updated', function(event, title) {
event.preventDefault();
this.title = 'Atom Shell - ' + title;
this.setTitle('Atom Shell - ' + title);
});
}