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": "storage", | 7 "namespace": "storage", |
8 "unprivileged": true, | 8 "unprivileged": true, |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
11 "id": "StorageChange", | 11 "id": "StorageChange", |
12 "type": "object", | 12 "type": "object", |
13 "properties": { | 13 "properties": { |
14 "oldValue": { | 14 "oldValue": { |
15 "type": "any", | 15 "type": "any", |
16 "description": "The old value of the item, if there was an old value
.", | 16 "description": "The old value of the item, if there was an old value
.", |
17 "optional": true | 17 "optional": true |
18 }, | 18 }, |
19 "newValue": { | 19 "newValue": { |
20 "type": "any", | 20 "type": "any", |
21 "description": "The new value of the item, if there is a new value."
, | 21 "description": "The new value of the item, if there is a new value."
, |
22 "optional": true | 22 "optional": true |
23 } | 23 } |
24 } | 24 } |
25 }, | 25 }, |
26 { | 26 { |
27 "id": "StorageArea", | 27 "id": "StorageArea", |
28 "type": "object", | 28 "type": "object", |
| 29 "js_module": "StorageArea", |
29 "functions": [ | 30 "functions": [ |
30 { | 31 { |
31 "name": "get", | 32 "name": "get", |
32 "type": "function", | 33 "type": "function", |
33 "description": "Gets one or more items from storage.", | 34 "description": "Gets one or more items from storage.", |
34 "parameters": [ | 35 "parameters": [ |
35 { | 36 { |
36 "name": "keys", | 37 "name": "keys", |
37 "choices": [ | 38 "choices": [ |
38 { "type": "string" }, | 39 { "type": "string" }, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 }, | 210 }, |
210 "managed": { | 211 "managed": { |
211 "$ref": "StorageArea", | 212 "$ref": "StorageArea", |
212 "description": "Items in the <code>managed</code> storage area are set b
y the domain administrator, and are read-only by the extension; trying to modify
this namespace results in an error.", | 213 "description": "Items in the <code>managed</code> storage area are set b
y the domain administrator, and are read-only by the extension; trying to modify
this namespace results in an error.", |
213 "value": [ "managed" ], | 214 "value": [ "managed" ], |
214 "nodoc": true | 215 "nodoc": true |
215 } | 216 } |
216 } | 217 } |
217 } | 218 } |
218 ] | 219 ] |
OLD | NEW |