OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** @fileoverview Externs generated from namespace: systemPrivate */ |
| 6 |
| 7 /** |
| 8 * Information about the system update. |
| 9 * @typedef {{ |
| 10 * state: string, |
| 11 * downloadProgress: number |
| 12 * }} |
| 13 */ |
| 14 var UpdateStatus; |
| 15 |
| 16 /** |
| 17 * Information about the volume. |
| 18 * @typedef {{ |
| 19 * volume: number, |
| 20 * isVolumeMuted: boolean |
| 21 * }} |
| 22 */ |
| 23 var VolumeInfo; |
| 24 |
| 25 /** |
| 26 * Information about a change to the screen brightness. |
| 27 * @typedef {{ |
| 28 * brightness: number, |
| 29 * userInitiated: boolean |
| 30 * }} |
| 31 */ |
| 32 var BrightnessChangeInfo; |
| 33 |
| 34 /** |
| 35 * @const |
| 36 */ |
| 37 chrome.systemPrivate = {}; |
| 38 |
| 39 /** |
| 40 * Returns whether the incognito mode is enabled, disabled or forced |
| 41 * @param {Function} callback Called with the result. |
| 42 */ |
| 43 chrome.systemPrivate.getIncognitoModeAvailability = function(callback) {}; |
| 44 |
| 45 /** |
| 46 * Gets information about the system update. |
| 47 * @param {Function} callback |
| 48 */ |
| 49 chrome.systemPrivate.getUpdateStatus = function(callback) {}; |
| 50 |
| 51 /** |
| 52 * Gets Chrome's API key to use for requests to Google services. |
| 53 * @param {Function} callback |
| 54 */ |
| 55 chrome.systemPrivate.getApiKey = function(callback) {}; |
| 56 |
| 57 /** @type {!ChromeEvent} */ |
| 58 chrome.systemPrivate.onVolumeChanged; |
| 59 |
| 60 /** @type {!ChromeEvent} */ |
| 61 chrome.systemPrivate.onBrightnessChanged; |
| 62 |
| 63 /** @type {!ChromeEvent} */ |
| 64 chrome.systemPrivate.onScreenUnlocked; |
| 65 |
| 66 /** @type {!ChromeEvent} */ |
| 67 chrome.systemPrivate.onWokeUp; |
| 68 |
| 69 |
OLD | NEW |