Confirmed users
346
edits
No edit summary |
(→API) |
||
Line 4: | Line 4: | ||
readonly attribute PowerManager power; | readonly attribute PowerManager power; | ||
}; | }; | ||
interface PowerManager { | interface PowerManager { | ||
void powerOff(); | void powerOff(); | ||
Line 55: | Line 55: | ||
*/ | */ | ||
attribute double screenBrightness; | attribute double screenBrightness; | ||
/** | /** | ||
* Is it possible that the device's CPU will sleep after the screen is | * Is it possible that the device's CPU will sleep after the screen is | ||
Line 63: | Line 63: | ||
attribute boolean cpuSleepAllowed; | attribute boolean cpuSleepAllowed; | ||
}; | }; | ||
interface WakeLockListener { | interface WakeLockListener { | ||
/** | /** | ||
Line 84: | Line 84: | ||
void callback(DOMString topic, DOMString state); | void callback(DOMString topic, DOMString state); | ||
}; | }; | ||
== Security/Privacy implications == | == Security/Privacy implications == | ||