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

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: Created 8 years, 3 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 // 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 }, 108 },
109 "checked": { 109 "checked": {
110 "type": "boolean", 110 "type": "boolean",
111 "optional": true, 111 "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." 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 }, 113 },
114 "contexts": { 114 "contexts": {
115 "type": "array", 115 "type": "array",
116 "items": { 116 "items": {
117 "type": "string", 117 "type": "string",
118 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"] 118 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"]
119 }, 119 },
120 "minItems": 1, 120 "minItems": 1,
121 "optional": true, 121 "optional": true,
122 "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."
123 }, 123 },
124 "onclick": { 124 "onclick": {
125 "type": "function", 125 "type": "function",
126 "optional": true, 126 "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.", 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 "parameters": [ 128 "parameters": [
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "optional": true 202 "optional": true
203 }, 203 },
204 "checked": { 204 "checked": {
205 "type": "boolean", 205 "type": "boolean",
206 "optional": true 206 "optional": true
207 }, 207 },
208 "contexts": { 208 "contexts": {
209 "type": "array", 209 "type": "array",
210 "items": { 210 "items": {
211 "type": "string", 211 "type": "string",
212 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio"] 212 "enum": ["all", "page", "frame", "selection", "link", "editabl e", "image", "video", "audio", "launcher"]
213 }, 213 },
214 "minItems": 1, 214 "minItems": 1,
215 "optional": true 215 "optional": true
216 }, 216 },
217 "onclick": { 217 "onclick": {
218 "type": "function", 218 "type": "function",
219 "optional": true 219 "optional": true
220 }, 220 },
221 "parentId": { 221 "parentId": {
222 "choices": [ 222 "choices": [
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "name": "tab", 303 "name": "tab",
304 "$ref": "tabs.Tab", 304 "$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.", 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 "optional": true 306 "optional": true
307 } 307 }
308 ] 308 ]
309 } 309 }
310 ] 310 ]
311 } 311 }
312 ] 312 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698