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

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

Issue 10918103: Give platform apps control over launcher right-click context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts 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 "description": "The URL of the page where the menu item was clicked. " 47 "optional": true,
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."
48 }, 49 },
49 "frameUrl": { 50 "frameUrl": {
50 "type": "string", 51 "type": "string",
51 "optional": true, 52 "optional": true,
52 "description": " The URL of the frame of the element where the conte xt menu was clicked, if it was in a frame." 53 "description": " The URL of the frame of the element where the conte xt menu was clicked, if it was in a frame."
53 }, 54 },
54 "selectionText": { 55 "selectionText": {
55 "type": "string", 56 "type": "string",
56 "optional": true, 57 "optional": true,
57 "description": "The text for the context selection, if any." 58 "description": "The text for the context selection, if any."
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 }, 109 },
109 "checked": { 110 "checked": {
110 "type": "boolean", 111 "type": "boolean",
111 "optional": true, 112 "optional": true,
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." 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."
113 }, 114 },
114 "contexts": { 115 "contexts": {
115 "type": "array", 116 "type": "array",
116 "items": { 117 "items": {
117 "type": "string", 118 "type": "string",
118 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"] 119 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"]
119 }, 120 },
120 "minItems": 1, 121 "minItems": 1,
121 "optional": true, 122 "optional": true,
122 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified." 123 "description": "List of contexts this menu item will appear in. Defaults to ['page'] if not specified."
123 }, 124 },
124 "onclick": { 125 "onclick": {
125 "type": "function", 126 "type": "function",
126 "optional": true, 127 "optional": true,
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.", 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.",
128 "parameters": [ 129 "parameters": [
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "optional": true 203 "optional": true
203 }, 204 },
204 "checked": { 205 "checked": {
205 "type": "boolean", 206 "type": "boolean",
206 "optional": true 207 "optional": true
207 }, 208 },
208 "contexts": { 209 "contexts": {
209 "type": "array", 210 "type": "array",
210 "items": { 211 "items": {
211 "type": "string", 212 "type": "string",
212 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"] 213 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"]
213 }, 214 },
214 "minItems": 1, 215 "minItems": 1,
215 "optional": true 216 "optional": true
216 }, 217 },
217 "onclick": { 218 "onclick": {
218 "type": "function", 219 "type": "function",
219 "optional": true 220 "optional": true
220 }, 221 },
221 "parentId": { 222 "parentId": {
222 "choices": [ 223 "choices": [
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "name": "tab", 304 "name": "tab",
304 "$ref": "tabs.Tab", 305 "$ref": "tabs.Tab",
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.", 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.",
306 "optional": true 307 "optional": true
307 } 308 }
308 ] 309 ]
309 } 310 }
310 ] 311 ]
311 } 312 }
312 ] 313 ]
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