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": "Google Chrome 6", |
8 "dependencies": [ "tabs" ], | 10 "dependencies": [ "tabs" ], |
9 "types": [ | 11 "types": [ |
10 { | 12 { |
11 "id": "OnClickData", | 13 "id": "OnClickData", |
12 "type": "object", | 14 "type": "object", |
13 "description": "Information sent when a context menu item is clicked.", | 15 "description": "Information sent when a context menu item is clicked.", |
14 "properties": { | 16 "properties": { |
15 "menuItemId": { | 17 "menuItemId": { |
16 "choices": [ | 18 "choices": [ |
17 { "type": "integer" }, | 19 { "type": "integer" }, |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 "name": "tab", | 306 "name": "tab", |
305 "$ref": "tabs.Tab", | 307 "$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.", | 308 "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 | 309 "optional": true |
308 } | 310 } |
309 ] | 311 ] |
310 } | 312 } |
311 ] | 313 ] |
312 } | 314 } |
313 ] | 315 ] |
OLD | NEW |