| 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 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 "pageUrl": { | 45 "pageUrl": { |
| 46 "type": "string", | 46 "type": "string", |
| 47 "optional": true, | 47 "optional": true, |
| 48 "description": "The URL of the page where the menu item was clicked.
This property is not set if the click occured in a context where there is no cu
rrent page, such as in a launcher context menu." | 48 "description": "The URL of the page where the menu item was clicked.
This property is not set if the click occured in a context where there is no cu
rrent page, such as in a launcher context menu." |
| 49 }, | 49 }, |
| 50 "frameUrl": { | 50 "frameUrl": { |
| 51 "type": "string", | 51 "type": "string", |
| 52 "optional": true, | 52 "optional": true, |
| 53 "description": " The URL of the frame of the element where the conte
xt menu was clicked, if it was in a frame." | 53 "description": " The URL of the frame of the element where the conte
xt menu was clicked, if it was in a frame." |
| 54 }, | 54 }, |
| 55 "frameId": { |
| 56 "type": "integer", |
| 57 "optional": true, |
| 58 "description": " The <a href='webNavigation#frame_ids'>ID of the fra
me</a> of the element where the context menu was clicked, if it was in a frame." |
| 59 }, |
| 55 "selectionText": { | 60 "selectionText": { |
| 56 "type": "string", | 61 "type": "string", |
| 57 "optional": true, | 62 "optional": true, |
| 58 "description": "The text for the context selection, if any." | 63 "description": "The text for the context selection, if any." |
| 59 }, | 64 }, |
| 60 "editable": { | 65 "editable": { |
| 61 "type": "boolean", | 66 "type": "boolean", |
| 62 "description": "A flag indicating whether the element is editable (t
ext input, textarea, etc.)." | 67 "description": "A flag indicating whether the element is editable (t
ext input, textarea, etc.)." |
| 63 }, | 68 }, |
| 64 "wasChecked": { | 69 "wasChecked": { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 89 "name": "tab", | 94 "name": "tab", |
| 90 "$ref": "tabs.Tab", | 95 "$ref": "tabs.Tab", |
| 91 "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.", |
| 92 "optional": true | 97 "optional": true |
| 93 } | 98 } |
| 94 ] | 99 ] |
| 95 } | 100 } |
| 96 ] | 101 ] |
| 97 } | 102 } |
| 98 ] | 103 ] |
| OLD | NEW |