electron/browser/api/lib/window.coffee
Cheng Zhao d723173bc7 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.
2013-04-24 16:43:01 +08:00

6 lines
171 B
CoffeeScript

EventEmitter = require('events').EventEmitter
Window = process.atom_binding('window').Window
Window.prototype.__proto__ = EventEmitter.prototype
module.exports = Window