1 // Copyright (c) 2012 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.
7 "namespace": "systemPrivate",
11 "id": "UpdateStatusState",
13 "enum": ["NotAvailable", "Updating", "NeedRestart"],
14 "description": "State of system update. NotAvailable when there is no available update or the update system is in error state, Updating when a system update is in progress, NeedRestart when a system update is finished and restart is needed."
17 "id": "GetIncognitoModeAvailabilityValue",
19 "enum": ["enabled", "disabled", "forced"],
20 "description": "Exposes whether the incognito mode is available to windows. One of 'enabled', 'disabled' (user cannot browse pages in Incognito mode), 'forced' (all pages/sessions are forced into Incognito mode)."
25 "description": "Information about the system update.",
28 "$ref": "UpdateStatusState",
29 "description": "State of system update."
33 "description": "Value between 0 and 1 describing the progress of system update download. This value will be set to 0 when |state| is NotAvailable, 1 when NeedRestart."
40 "description": "Information about the volume.",
42 "volume": {"type": "number", "description": "The value of the volume percent. This must be between 0.0 and 100.0."},
43 "isVolumeMuted": {"type": "boolean", "description": "True if the volume is muted."}
47 "id": "BrightnessChangeInfo",
49 "description": "Information about a change to the screen brightness.",
53 "description": "The value of the current screen brightness in percent, between 0.0 and 100.0."
57 "description": "Whether this change was initiated by user."
64 "name": "getIncognitoModeAvailability",
66 "description": "Returns whether the incognito mode is enabled, disabled or forced",
71 "description": "Called with the result.",
75 "$ref": "GetIncognitoModeAvailabilityValue"
82 "name": "getUpdateStatus",
84 "description": "Gets information about the system update.",
91 "$ref": "UpdateStatus",
93 "description": "Details of the system update"
102 "description": "Gets Chrome's API key to use for requests to Google services.",
111 "description": "The API key."
120 "name": "onVolumeChanged",
122 "description": "Fired when the volume is changed.",
125 "$ref": "VolumeInfo",
127 "description": "Information about the current state of the system volume control, including whether it is muted."
132 "name": "onBrightnessChanged",
134 "description": "Fired when the screen brightness is changed.",
137 "$ref": "BrightnessChangeInfo",
138 "name": "brightness",
139 "description": "Information about a change to the screen brightness."
144 "name": "onScreenUnlocked",
146 "description": "Fired when the screen is unlocked.",
152 "description": "Fired when the device wakes up from sleep.",