Add the App.commandLine API to control Chromium's command line.

This commit is contained in:
Cheng Zhao 2013-05-17 15:39:44 +08:00
parent 394bf0a8d9
commit 61bca04dfd
4 changed files with 50 additions and 3 deletions

View file

@ -1,7 +1,14 @@
bindings = process.atomBinding 'app'
EventEmitter = require('events').EventEmitter
Application = process.atomBinding('app').Application
Application.prototype.__proto__ = EventEmitter.prototype
Application = bindings.Application
Application::__proto__ = EventEmitter.prototype
app = new Application
app.commandLine =
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument
# Only one App object pemitted.
module.exports = new Application
module.exports = app