Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: chrome/common/extensions/api/storage.json

Issue 12647017: Lazily require types when validating Extensions API calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/content_settings.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698