Added/Updated power /w docs

This commit is contained in:
Fredrik Høisæther Rasch
2015-09-05 14:48:05 +02:00
parent ebf3ac235c
commit 87965af337
+15
View File
@@ -5180,6 +5180,21 @@ declare module chrome.platformKeys {
export function verifyTLSServerCertificate(details: ServerCertificateVerificationDetails, callback: (result: ServerCertificateVerificationResult) => void): void;
}
////////////////////
// Power
////////////////////
/**
* Use the chrome.power API to override the system's power management features.
* Permissions: "power"
* @since Chrome 27.
*/
declare module chrome.power {
/** Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request. */
export function requestKeepAwake(level: string): void;
/** Releases a request previously made via requestKeepAwake(). */
export function releaseKeepAwake(): void;
}
////////////////////
// Privacy
////////////////////