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

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

Issue 10984034: Revert 158691 - Give platform apps control over launcher right-click context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "contextMenus", 7 "namespace": "contextMenus",
8 "dependencies": [ "tabs" ], 8 "dependencies": [ "tabs" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 26 matching lines...) Expand all
37 "optional": true, 37 "optional": true,
38 "description": "If the element is a link, the URL it points to." 38 "description": "If the element is a link, the URL it points to."
39 }, 39 },
40 "srcUrl": { 40 "srcUrl": {
41 "type": "string", 41 "type": "string",
42 "optional": true, 42 "optional": true,
43 "description": "Will be present for elements with a 'src' URL." 43 "description": "Will be present for elements with a 'src' URL."
44 }, 44 },
45 "pageUrl": { 45 "pageUrl": {
46 "type": "string", 46 "type": "string",
47 "optional": true, 47 "description": "The URL of the page where the menu item was clicked. "
48 "description": "The URL of the page where the menu item was clicked. This property is not set if the click occured in a context where there is no cu rrent page, such as in a launcher context menu."
49 }, 48 },
50 "frameUrl": { 49 "frameUrl": {
51 "type": "string", 50 "type": "string",
52 "optional": true, 51 "optional": true,
53 "description": " The URL of the frame of the element where the conte xt menu was clicked, if it was in a frame." 52 "description": " The URL of the frame of the element where the conte xt menu was clicked, if it was in a frame."
54 }, 53 },
55 "selectionText": { 54 "selectionText": {
56 "type": "string", 55 "type": "string",
57 "optional": true, 56 "optional": true,
58 "description": "The text for the context selection, if any." 57 "description": "The text for the context selection, if any."
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 }, 108 },
110 "checked": { 109 "checked": {
111 "type": "boolean", 110 "type": "boolean",
112 "optional": true, 111 "optional": true,
113 "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." 112 "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."
114 }, 113 },
115 "contexts": { 114 "contexts": {
116 "type": "array", 115 "type": "array",
117 "items": { 116 "items": {
118 "type": "string", 117 "type": "string",
119 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"] 118 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"]
120 }, 119 },
121 "minItems": 1, 120 "minItems": 1,
122 "optional": true, 121 "optional": true,
123 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified." 122 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified."
124 }, 123 },
125 "onclick": { 124 "onclick": {
126 "type": "function", 125 "type": "function",
127 "optional": true, 126 "optional": true,
128 "description": "A function that will be called back when the men u item is clicked. Event pages cannot use this; instead, they should register a listener for chrome.contextMenus.onClicked.", 127 "description": "A function that will be called back when the men u item is clicked. Event pages cannot use this; instead, they should register a listener for chrome.contextMenus.onClicked.",
129 "parameters": [ 128 "parameters": [
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 "optional": true 202 "optional": true
204 }, 203 },
205 "checked": { 204 "checked": {
206 "type": "boolean", 205 "type": "boolean",
207 "optional": true 206 "optional": true
208 }, 207 },
209 "contexts": { 208 "contexts": {
210 "type": "array", 209 "type": "array",
211 "items": { 210 "items": {
212 "type": "string", 211 "type": "string",
213 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"] 212 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"]
214 }, 213 },
215 "minItems": 1, 214 "minItems": 1,
216 "optional": true 215 "optional": true
217 }, 216 },
218 "onclick": { 217 "onclick": {
219 "type": "function", 218 "type": "function",
220 "optional": true 219 "optional": true
221 }, 220 },
222 "parentId": { 221 "parentId": {
223 "choices": [ 222 "choices": [
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 "name": "tab", 303 "name": "tab",
305 "$ref": "tabs.Tab", 304 "$ref": "tabs.Tab",
306 "description": "The details of the tab where the click took place. I f the click did not take place in a tab, this parameter will be missing.", 305 "description": "The details of the tab where the click took place. I f the click did not take place in a tab, this parameter will be missing.",
307 "optional": true 306 "optional": true
308 } 307 }
309 ] 308 ]
310 } 309 }
311 ] 310 ]
312 } 311 }
313 ] 312 ]
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698