blob: a20a75fb21524d2e39f46aa0a4d1d1eb67252197 [file] [log] [blame]
[
{
"namespace": "functionsOnTypes",
"description": "The functionsOnTypes API.",
"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)."
}
}
}
]
}
]
}
]
}
]