Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1889)

Unified Diff: chrome/common/extensions/api/context_menus.json

Issue 359493005: Extend contextMenus API to support browser/page actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments, naming, small changes Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698