| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">Context Menus</div> | |
| 2 | |
| 3 <!-- BEGIN AUTHORED CONTENT --> | |
| 4 <p> | 1 <p> |
| 5 The context menus module allows you | 2 The context menus module allows you |
| 6 to add items to Google Chrome's context menu. | 3 to add items to Google Chrome's context menu. |
| 7 </p> | 4 </p> |
| 8 | 5 |
| 9 <p> | 6 <p> |
| 10 You can choose what types of objects | 7 You can choose what types of objects |
| 11 your context menu additions apply to, | 8 your context menu additions apply to, |
| 12 such as images, hyperlinks, and pages. | 9 such as images, hyperlinks, and pages. |
| 13 </P> | 10 </p> |
| 14 | 11 |
| 15 <p> | 12 <p> |
| 16 You can create as many context menu items | 13 You can create as many context menu items |
| 17 as you need, but if more than one | 14 as you need, but if more than one |
| 18 from your extension is visible at once, | 15 from your extension is visible at once, |
| 19 Google Chrome automatically collapses them | 16 Google Chrome automatically collapses them |
| 20 into a single parent menu. | 17 into a single parent menu. |
| 21 </p> | 18 </p> |
| 22 | 19 |
| 23 <p> | 20 <p> |
| 24 Context menu items can appear in any document | 21 Context menu items can appear in any document |
| 25 (or frame within a document), | 22 (or frame within a document), |
| 26 even those with file:// or chrome:// URLs. | 23 even those with file:// or chrome:// URLs. |
| 27 To control which documents your items can appear in, | 24 To control which documents your items can appear in, |
| 28 specify the documentUrlPatterns field | 25 specify the documentUrlPatterns field |
| 29 when you call the create() or update() method. | 26 when you call the create() or update() method. |
| 30 </p> | 27 </p> |
| 31 | 28 |
| 32 <p class="note"> | 29 <p class="note"> |
| 33 <strong>Version note:</strong> | 30 <strong>Version note:</strong> |
| 34 Before Chrome 14, <!-- PENDING(asargent): fix version # --> | 31 Before Chrome 14, |
| 35 your items could appear only in documents with http:// | 32 your items could appear only in documents with http:// |
| 36 or https:// URLs. | 33 or https:// URLs. |
| 37 </p> | 34 </p> |
| 38 | 35 |
| 39 <h2 id="manifest">Manifest</h2> | 36 <h2 id="manifest">Manifest</h2> |
| 40 <p>You must declare the "contextMenus" permission | 37 <p>You must declare the "contextMenus" permission |
| 41 in your extension's manifest to use the API. | 38 in your extension's manifest to use the API. |
| 42 Also, you should specify a 16x16-pixel icon | 39 Also, you should specify a 16x16-pixel icon |
| 43 for display next to your menu item. | 40 for display next to your menu item. |
| 44 For example: | 41 For example: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 "48": "icon-small.png", | 52 "48": "icon-small.png", |
| 56 "128": "icon-large.png" | 53 "128": "icon-large.png" |
| 57 }, | 54 }, |
| 58 ... | 55 ... |
| 59 }</pre> | 56 }</pre> |
| 60 | 57 |
| 61 <h2 id="examples">Examples</h2> | 58 <h2 id="examples">Examples</h2> |
| 62 | 59 |
| 63 <p> | 60 <p> |
| 64 You can find samples of this API on the | 61 You can find samples of this API on the |
| 65 <a href="samples.html#contextMenus">sample page</a>. | 62 <a href="samples.html#contextMenus">sample page</a>. |
| 66 | |
| 67 <!-- END AUTHORED CONTENT --> | |
| OLD | NEW |