| OLD | NEW |
| 1 <table class="intro"> | |
| 2 <tr> | |
| 3 <th scope="col"></th> | |
| 4 <th scope="col"></th> | |
| 5 </tr> | |
| 6 <tr> | |
| 7 <td><strong>Description:</strong></td> | |
| 8 <td>Use the <code>chrome.contextMenus</code> module | |
| 9 to add items to Google Chrome's context menu. | |
| 10 You can choose what types of objects | |
| 11 your context menu additions apply to, | |
| 12 such as images, hyperlinks, and pages. | |
| 13 </td> | |
| 14 </tr> | |
| 15 <tr> | |
| 16 <td><strong>Availability:</strong></td> | |
| 17 <td>Google Chrome 6</td> | |
| 18 </tr> | |
| 19 <tr> | |
| 20 <td><strong>Permissions:</strong></td> | |
| 21 <td><code>"contextMenus"</code></td> | |
| 22 </tr> | |
| 23 </table> | |
| 24 | |
| 25 <h2 id="usage">Usage</h2> | 1 <h2 id="usage">Usage</h2> |
| 26 | 2 |
| 27 <p> | 3 <p> |
| 28 Context menu items can appear in any document | 4 Context menu items can appear in any document |
| 29 (or frame within a document), | 5 (or frame within a document), |
| 30 even those with file:// or chrome:// URLs. | 6 even those with file:// or chrome:// URLs. |
| 31 To control which documents your items can appear in, | 7 To control which documents your items can appear in, |
| 32 specify the documentUrlPatterns field | 8 specify the documentUrlPatterns field |
| 33 when you call the create() or update() method. | 9 when you call the create() or update() method. |
| 34 </p> | 10 </p> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 60 "48": "icon-small.png", | 36 "48": "icon-small.png", |
| 61 "128": "icon-large.png" | 37 "128": "icon-large.png" |
| 62 }, | 38 }, |
| 63 ... | 39 ... |
| 64 }</pre> | 40 }</pre> |
| 65 | 41 |
| 66 <h2 id="examples">Examples</h2> | 42 <h2 id="examples">Examples</h2> |
| 67 | 43 |
| 68 <p> | 44 <p> |
| 69 You can find samples of this API on the | 45 You can find samples of this API on the |
| 70 <a href="samples.html#contextMenus">sample page</a>. | 46 <a href="samples.html#contextMenus">sample page</a>. |
| OLD | NEW |