[Mac] Add API for dock, fixes #46.

This commit is contained in:
Cheng Zhao 2013-08-06 16:19:56 +08:00
parent 6e90430df5
commit b1f88d680b
5 changed files with 76 additions and 0 deletions

View file

@ -13,5 +13,11 @@ app.commandLine =
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument
if process.platform is 'darwin'
app.dock =
bounce: (type = 'informational') -> bindings.dockBounce type
cancelBounce: bindings.dockCancelBounce
setBadge: bindings.dockSetBadgeText
# Only one App object pemitted.
module.exports = app