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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 6799020: Add support for a "frame" context option to chrome.contextMenus.create/update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update docs. Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 "checked": { 2827 "checked": {
2828 "type": "boolean", 2828 "type": "boolean",
2829 "optional": true, 2829 "optional": true,
2830 "description": "The initial state of a checkbox or radio item: t rue for selected and false for unselected. Only one radio item can be selected a t a time in a given group of radio items." 2830 "description": "The initial state of a checkbox or radio item: t rue for selected and false for unselected. Only one radio item can be selected a t a time in a given group of radio items."
2831 }, 2831 },
2832 "contexts": { 2832 "contexts": {
2833 "type": "array", 2833 "type": "array",
2834 "items": {"type": "string"}, 2834 "items": {"type": "string"},
2835 "minItems": 1, 2835 "minItems": 1,
2836 "optional": true, 2836 "optional": true,
2837 "description": "List of contexts this menu item will appear in. Legal values are: 'all', 'page', 'selection', 'link', 'editable', 'image', 'vide o', and 'audio'. Defaults to ['page']." 2837 "description": "List of contexts this menu item will appear in. Legal values are: 'all', 'page', 'frame', 'selection', 'link', 'editable', 'imag e', 'video', and 'audio'. Defaults to ['page']."
asargent_no_longer_on_chrome 2011/04/06 20:39:33 Some time after I first added the contextMenus API
Mihai Parparita -not on Chrome 2011/04/06 21:01:05 Will do this in a follow-up CL.
2838 }, 2838 },
2839 "onclick": { 2839 "onclick": {
2840 "type": "function", 2840 "type": "function",
2841 "optional": true, 2841 "optional": true,
2842 "description": "A function that will be called back when the men u item is clicked.", 2842 "description": "A function that will be called back when the men u item is clicked.",
2843 "parameters": [ 2843 "parameters": [
2844 { 2844 {
2845 "name": "info", 2845 "name": "info",
2846 "$ref": "OnClickData", 2846 "$ref": "OnClickData",
2847 "description": "Information about the item clicked and the c ontext where the click happened." 2847 "description": "Information about the item clicked and the c ontext where the click happened."
(...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 { 4962 {
4963 "type": "integer", 4963 "type": "integer",
4964 "name": "tabId", 4964 "name": "tabId",
4965 "description": "The id of the tab that was detached." 4965 "description": "The id of the tab that was detached."
4966 } 4966 }
4967 ] 4967 ]
4968 } 4968 }
4969 ] 4969 ]
4970 } 4970 }
4971 ] 4971 ]
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/common/extensions/docs/contextMenus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698