Add PowerSaveBlocker APIs.

This commit is contained in:
Haojian Wu 2015-06-21 20:57:42 +08:00
parent a1cbd11b5b
commit 7c5afdd388
5 changed files with 152 additions and 0 deletions

View file

@ -0,0 +1,8 @@
bindings = process.atomBinding 'power_save_blocker'
powerSaveBlocker = bindings.powerSaveBlocker
powerSaveBlocker.PREVENT_APP_SUSPENSION = 0
powerSaveBlocker.PREVENT_DISPLAY_SLEEP = 1
module.exports = powerSaveBlocker