| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "systemPrivate", | 7 "namespace": "systemPrivate", |
| 8 "description": "none", | 8 "description": "none", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| 11 "id": "UpdateStatusState", |
| 12 "type": "string", |
| 13 "enum": ["NotAvailable", "Updating", "NeedRestart"], |
| 14 "description": "State of system update. NotAvailable when there is no a
vailable update or the update system is in error state, Updating when a system u
pdate is in progress, NeedRestart when a system update is finished and restart i
s needed." |
| 15 }, |
| 16 { |
| 17 "id": "GetIncognitoModeAvailabilityValue", |
| 18 "type": "string", |
| 19 "enum": ["enabled", "disabled", "forced"], |
| 20 "description": "Exposes whether the incognito mode is available to windo
ws. One of 'enabled', 'disabled' (user cannot browse pages in Incognito mode), '
forced' (all pages/sessions are forced into Incognito mode)." |
| 21 }, |
| 22 { |
| 11 "id": "UpdateStatus", | 23 "id": "UpdateStatus", |
| 12 "type": "object", | 24 "type": "object", |
| 13 "description": "Information about the system update.", | 25 "description": "Information about the system update.", |
| 14 "properties": { | 26 "properties": { |
| 15 "state": { | 27 "state": { |
| 16 "type": "string", | 28 "$ref": "UpdateStatusState", |
| 17 "enum": ["NotAvailable", "Updating", "NeedRestart"], | 29 "description": "State of system update." |
| 18 "description": "State of system update. NotAvailable when there is
no available update or the update system is in error state, Updating when a syst
em update is in progress, NeedRestart when a system update is finished and resta
rt is needed." | |
| 19 }, | 30 }, |
| 20 "downloadProgress": { | 31 "downloadProgress": { |
| 21 "type": "number", | 32 "type": "number", |
| 22 "description": "Value between 0 and 1 describing the progress of sys
tem update download. This value will be set to 0 when |state| is NotAvailable,
1 when NeedRestart." | 33 "description": "Value between 0 and 1 describing the progress of sys
tem update download. This value will be set to 0 when |state| is NotAvailable,
1 when NeedRestart." |
| 23 } | 34 } |
| 24 } | 35 } |
| 25 }, | 36 }, |
| 26 { | 37 { |
| 27 "id": "VolumeInfo", | 38 "id": "VolumeInfo", |
| 28 "type": "object", | 39 "type": "object", |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 "type": "function", | 65 "type": "function", |
| 55 "description": "Returns whether the incognito mode is enabled, disabled
or forced", | 66 "description": "Returns whether the incognito mode is enabled, disabled
or forced", |
| 56 "parameters": [ | 67 "parameters": [ |
| 57 { | 68 { |
| 58 "name": "callback", | 69 "name": "callback", |
| 59 "type": "function", | 70 "type": "function", |
| 60 "description": "Called with the result.", | 71 "description": "Called with the result.", |
| 61 "parameters": [ | 72 "parameters": [ |
| 62 { | 73 { |
| 63 "name": "value", | 74 "name": "value", |
| 64 "type": "string", | 75 "$ref": "GetIncognitoModeAvailabilityValue" |
| 65 "enum": ["enabled", "disabled", "forced"], | |
| 66 "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)." | |
| 67 } | 76 } |
| 68 ] | 77 ] |
| 69 } | 78 } |
| 70 ] | 79 ] |
| 71 }, | 80 }, |
| 72 { | 81 { |
| 73 "name": "getUpdateStatus", | 82 "name": "getUpdateStatus", |
| 74 "type": "function", | 83 "type": "function", |
| 75 "description": "Gets information about the system update.", | 84 "description": "Gets information about the system update.", |
| 76 "parameters": [ | 85 "parameters": [ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 }, | 148 }, |
| 140 { | 149 { |
| 141 "name": "onWokeUp", | 150 "name": "onWokeUp", |
| 142 "type": "function", | 151 "type": "function", |
| 143 "description": "Fired when the device wakes up from sleep.", | 152 "description": "Fired when the device wakes up from sleep.", |
| 144 "parameters": [] | 153 "parameters": [] |
| 145 } | 154 } |
| 146 ] | 155 ] |
| 147 } | 156 } |
| 148 ] | 157 ] |
| OLD | NEW |