Update GlobalShortcut API design.

* Rename Shortcut API to GlobalShortcut for better suite.
* Implement the new design interfaces.
* Put the chromium related source code to the same directory as in chrome.
This commit is contained in:
Haojian Wu 2014-07-31 12:22:29 +08:00
parent b2217474c1
commit 035679057e
16 changed files with 288 additions and 302 deletions

View file

@ -0,0 +1,5 @@
bindings = process.atomBinding 'global_shortcut'
globalShortcut = bindings.globalShortcut
module.exports = globalShortcut

View file

@ -1,7 +0,0 @@
EventEmitter = require('events').EventEmitter
bindings = process.atomBinding 'shortcut'
Shortcut = bindings.Shortcut
Shortcut::__proto__ = EventEmitter.prototype
module.exports = Shortcut