| Index: tools/json_schema_compiler/test/functionsOnTypes.json
|
| diff --git a/tools/json_schema_compiler/test/functionsOnTypes.json b/tools/json_schema_compiler/test/functionsOnTypes.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e8c822055cbe41d274313054ae544b23850c8814
|
| --- /dev/null
|
| +++ b/tools/json_schema_compiler/test/functionsOnTypes.json
|
| @@ -0,0 +1,74 @@
|
| +[
|
| + {
|
| + "namespace": "functionsOnTypes",
|
| + "types": [
|
| + {
|
| + "id": "StorageArea",
|
| + "type": "object",
|
| + "functions": [
|
| + {
|
| + "name": "get",
|
| + "type": "function",
|
| + "description": "Gets one or more items from storage.",
|
| + "parameters": [
|
| + {
|
| + "name": "keys",
|
| + "choices": [
|
| + { "type": "string" },
|
| + {
|
| + "type": "object",
|
| + "description": "Storage items to return in the callback, where the values are replaced with those from storage if they exist.",
|
| + "properties": {},
|
| + "additionalProperties": { "type": "any" }
|
| + }
|
| + ],
|
| + "description": "A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in <code>null</code> to get the entire contents of storage.",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "callback",
|
| + "type": "function",
|
| + "description": "Callback with storage items, or on failure (in which case lastError will be set).",
|
| + "parameters": [
|
| + {
|
| + "name": "items",
|
| + "type": "object",
|
| + "properties": {},
|
| + "additionalProperties": { "type": "any" },
|
| + "description": "Object with items in their key-value mappings."
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "ChromeSetting",
|
| + "type": "object",
|
| + "description": "An interface which allows access to a Chrome browser setting.",
|
| + "functions": [
|
| + {
|
| + "name": "get",
|
| + "type": "function",
|
| + "description": "Gets the value of a setting.",
|
| + "parameters": [
|
| + {
|
| + "name": "details",
|
| + "type": "object",
|
| + "description": "What setting to consider.",
|
| + "properties": {
|
| + "incognito": {
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Whether to return the setting that applies to the incognito session (default false)."
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| +]
|
|
|