Chromium Code Reviews| Index: chrome/common/extensions/api/context_menus.json |
| diff --git a/chrome/common/extensions/api/context_menus.json b/chrome/common/extensions/api/context_menus.json |
| index 7c757e045859aaeb7e38cd726043e7f5441e5a14..d6cc6645954259df7969b370cf552823fae9de99 100644 |
| --- a/chrome/common/extensions/api/context_menus.json |
| +++ b/chrome/common/extensions/api/context_menus.json |
| @@ -6,6 +6,12 @@ |
| { |
| "namespace": "contextMenus", |
| "description": "Use the <code>chrome.contextMenus</code> API to add items to Google Chrome's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.", |
| + "properties": { |
| + "ACTION_MENU_TOP_LEVEL_LIMIT": { |
| + "value": 6, |
| + "description": "The maximum number of top level extension items that can be added to an extension action context menu." |
|
Yoyo Zhou
2014/07/22 21:35:42
document it here. "Any items beyond this limit wil
Yoyo Zhou
2014/07/22 21:37:09
Sorry, what I meant is, this should be checked in
gpdavis
2014/07/23 23:09:52
Done.
Yoyo Zhou
2014/07/23 23:37:21
Done? I don't see this returning an error from con
gpdavis
2014/07/23 23:57:58
Sorry-- should have clarified this. The done was
|
| + } |
| + }, |
| "functions": [ |
| { |
| "name": "create", |
| @@ -48,7 +54,7 @@ |
| "type": "array", |
| "items": { |
| "type": "string", |
| - "enum": ["all", "page", "frame", "selection", "link", "editable", "image", "video", "audio", "launcher"] |
| + "enum": ["all", "page", "frame", "selection", "link", "editable", "image", "video", "audio", "launcher", "browser_action", "page_action"] |
| }, |
| "minItems": 1, |
| "optional": true, |
| @@ -143,7 +149,7 @@ |
| "type": "array", |
| "items": { |
| "type": "string", |
| - "enum": ["all", "page", "frame", "selection", "link", "editable", "image", "video", "audio", "launcher"] |
| + "enum": ["all", "page", "frame", "selection", "link", "editable", "image", "video", "audio", "launcher", "browser_action", "page_action"] |
| }, |
| "minItems": 1, |
| "optional": true |