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 ////////////////////