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 d341192e657730aa8b0b38a624645e01f1809f8c..9c6e39078b5487f46183832d9d2ab12f9c12eb8e 100644 |
--- a/chrome/common/extensions/api/extension_api.json |
+++ b/chrome/common/extensions/api/extension_api.json |
@@ -1060,6 +1060,143 @@ |
] |
}, |
{ |
+ "namespace": "experimental.permissions", |
+ "types": [ |
+ { |
+ "id": "Permissions", |
+ "type": "object", |
+ "properties": { |
+ "permissions": { |
+ "type": "array", |
+ "items": {"type": "string"}, |
+ "optional": true, |
+ "description": "List of named permissions (does not include hosts or origins)." |
+ } |
+ } |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "onAdded", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Fired when the extension acquires new permissions.", |
+ "parameters": [ |
+ { |
+ "$ref": "Permissions", |
+ "name": "permissions", |
+ "description": "The newly acquired permissions." |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "onRemoved", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Fired when access to permissions has been removed from the extension.", |
+ "parameters": [ |
+ { |
+ "$ref": "Permissions", |
+ "name": "permissions", |
+ "description": "The permissions that have been removed." |
+ } |
+ ] |
+ } |
+ ], |
+ "functions": [ |
+ { |
+ "name": "getAll", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Gets the extension's current set of permissions.", |
+ "parameters": [ |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "name": "permissions", |
+ "$ref": "Permissions", |
+ "description": "The extension's active permissions." |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "contains", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Checks if the extension has the specified permissions.", |
+ "parameters": [ |
+ { |
+ "name": "permissions", |
+ "$ref": "Permissions" |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "parameters": [ |
+ { |
+ "name": "result", |
+ "type": "boolean", |
+ "description": "True if the extension has the specified permissions." |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "request", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Requests access to the specified permissions. These permissions must be defined in the optional_permissions field of the manifest.", |
+ "parameters": [ |
+ { |
+ "name": "permissions", |
+ "$ref": "Permissions" |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "optional": true, |
+ "parameters": [ |
+ { |
+ "name": "granted", |
+ "type": "boolean", |
+ "description": "True if the user granted the specified permissions." |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "remove", |
+ "type": "function", |
+ "unprivileged": true, |
+ "description": "Removes access to the specified permissions.", |
+ "parameters": [ |
+ { |
+ "name": "permissions", |
+ "$ref": "Permissions" |
+ }, |
+ { |
+ "name": "callback", |
+ "type": "function", |
+ "optional": true, |
+ "parameters": [ |
+ { |
+ "name": "removed", |
+ "type": "boolean", |
+ "description": "True if the permissions were removed." |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
"namespace": "tabs", |
"types": [ |
{ |
@@ -6385,7 +6522,7 @@ |
"title": { |
"type": "string", |
"optional": true, |
- "description": "The title of the notification." |
+ "description": "The title of the notification." |
}, |
"bodyText": { |
"type": "string", |