Index: chrome/common/extensions/api/extension_api.json |
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
index bcea87642e1a250dd9c4c73b12fe38cb5d53189e..be0f51b955310bc622d9f03db5c24b8dc972fc3c 100644 |
--- a/chrome/common/extensions/api/extension_api.json |
+++ b/chrome/common/extensions/api/extension_api.json |
@@ -699,6 +699,105 @@ |
] |
}, |
{ |
+ "namespace": "experimental.settings", |
+ "types": [], |
+ "functions": [ |
+ { |
+ "name": "get", |
+ "type": "function", |
+ "description": "Gets one or more values from settings.", |
+ "parameters": [ |
+ { |
+ "name": "keys", |
+ "description": "A single key or a list of keys to get from settings. Leave empty to get the entire contents of settings; this should only be used for debugging.", |
+ "optional": true |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "description": "Callback with settings values, or on failure (in which case lastError will be set).", |
+ "parameters": [ |
+ { |
+ "name": "settings", |
+ "type": "object", |
+ "description": "Object with given keys set to settings values." |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "set", |
+ "type": "function", |
+ "description": "Sets multiple settings values.", |
+ "parameters": [ |
+ { |
+ "name": "settings", |
+ "description": "Object to augment settings with. Values that cannot be serialized (functions, etc) will be ignored." |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "description": "Callback with settings values, or on failure (in which case lastError will be set).", |
+ "parameters": [ |
+ { |
+ "name": "settings", |
+ "type": "object", |
+ "description": "Object with given keys set to settings values." |
+ } |
+ ], |
+ "optional": true |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "remove", |
+ "type": "function", |
+ "description": "Removes one or more values from settings.", |
+ "parameters": [ |
+ { |
+ "name": "keys", |
+ "description": "A single key or a list of keys to remove from settings." |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "description": "Callback with an empty settings object, or on failure (in which case lastError will be set).", |
+ "parameters": [ |
+ { |
+ "name": "settings", |
+ "type": "object", |
+ "description": "An empty object." |
+ } |
+ ], |
+ "optional": true |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "clear", |
+ "type": "function", |
+ "description": "Removes all values from settings.", |
+ "parameters": [ |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "description": "Callback with an empty settings object, or on failure (in which case lastError will be set).", |
+ "parameters": [ |
+ { |
+ "name": "settings", |
+ "type": "object", |
+ "description": "An empty object." |
+ } |
+ ], |
+ "optional": true |
+ } |
+ ] |
+ } |
+ ], |
+ "events": [] |
+ }, |
+ { |
"namespace": "windows", |
"types": [ |
{ |