mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Added/Updated power /w docs
This commit is contained in:
Vendored
+15
@@ -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
|
||||
////////////////////
|
||||
|
||||
Reference in New Issue
Block a user