From 87965af3373a8b57844bdd87e4a6714446087700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B8is=C3=A6ther=20Rasch?= Date: Sat, 5 Sep 2015 14:48:05 +0200 Subject: [PATCH] Added/Updated power /w docs --- chrome/chrome.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index 209322f2d9..cc5b160337 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -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 ////////////////////