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.", |
8 "types": [ | 9 "types": [ |
9 { | 10 { |
10 "id": "OnClickData", | 11 "id": "OnClickData", |
11 "type": "object", | 12 "type": "object", |
12 "description": "Information sent when a context menu item is clicked.", | 13 "description": "Information sent when a context menu item is clicked.", |
13 "properties": { | 14 "properties": { |
14 "menuItemId": { | 15 "menuItemId": { |
15 "choices": [ | 16 "choices": [ |
16 { "type": "integer" }, | 17 { "type": "integer" }, |
17 { "type": "string" } | 18 { "type": "string" } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ] |
OLD | NEW |