OLD | NEW |
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 "description": "Use the <code>chrome.contextMenus</code> module to add items
to Google Chrome's context menu. You can choose what types of objects your cont
ext menu additions apply to, such as images, hyperlinks, and pages.", |
| 9 "availability": "6", |
8 "types": [ | 10 "types": [ |
9 { | 11 { |
10 "id": "OnClickData", | 12 "id": "OnClickData", |
11 "type": "object", | 13 "type": "object", |
12 "description": "Information sent when a context menu item is clicked.", | 14 "description": "Information sent when a context menu item is clicked.", |
13 "properties": { | 15 "properties": { |
14 "menuItemId": { | 16 "menuItemId": { |
15 "choices": [ | 17 "choices": [ |
16 { "type": "integer" }, | 18 { "type": "integer" }, |
17 { "type": "string" } | 19 { "type": "string" } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 "name": "tab", | 305 "name": "tab", |
304 "$ref": "tabs.Tab", | 306 "$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.", | 307 "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 | 308 "optional": true |
307 } | 309 } |
308 ] | 310 ] |
309 } | 311 } |
310 ] | 312 ] |
311 } | 313 } |
312 ] | 314 ] |
OLD | NEW |