| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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": "contextMenusInternal", | 7 "namespace": "contextMenusInternal", |
| 8 "description": "Use the <code>chrome.contextMenus</code> API to add items to
Google Chrome's context menu. You can choose what types of objects your context
menu additions apply to, such as images, hyperlinks, and pages.", | 8 "description": "Use the <code>chrome.contextMenus</code> API to add items to
Google Chrome's context menu. You can choose what types of objects your context
menu additions apply to, such as images, hyperlinks, and pages.", |
| 9 "compiler_options": {"use_movable_types": true}, | |
| 10 "types": [ | 9 "types": [ |
| 11 { | 10 { |
| 12 "id": "OnClickData", | 11 "id": "OnClickData", |
| 13 "type": "object", | 12 "type": "object", |
| 14 "description": "Information sent when a context menu item is clicked.", | 13 "description": "Information sent when a context menu item is clicked.", |
| 15 "properties": { | 14 "properties": { |
| 16 "menuItemId": { | 15 "menuItemId": { |
| 17 "choices": [ | 16 "choices": [ |
| 18 { "type": "integer" }, | 17 { "type": "integer" }, |
| 19 { "type": "string" } | 18 { "type": "string" } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 "name": "tab", | 94 "name": "tab", |
| 96 "$ref": "tabs.Tab", | 95 "$ref": "tabs.Tab", |
| 97 "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.", | 96 "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.", |
| 98 "optional": true | 97 "optional": true |
| 99 } | 98 } |
| 100 ] | 99 ] |
| 101 } | 100 } |
| 102 ] | 101 ] |
| 103 } | 102 } |
| 104 ] | 103 ] |
| OLD | NEW |