OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 </p> | 340 </p> |
341 | 341 |
342 <p> | 342 <p> |
343 You can create as many context menu items | 343 You can create as many context menu items |
344 as you need, but if more than one | 344 as you need, but if more than one |
345 from your extension is visible at once, | 345 from your extension is visible at once, |
346 Google Chrome automatically collapses them | 346 Google Chrome automatically collapses them |
347 into a single parent menu. | 347 into a single parent menu. |
348 </p> | 348 </p> |
349 | 349 |
| 350 <p> |
| 351 Context menu items can appear in any document |
| 352 (or frame within a document), |
| 353 even those with file:// or chrome:// URLs. |
| 354 To control which documents your items can appear in, |
| 355 specify the documentUrlPatterns field |
| 356 when you call the create() or update() method. |
| 357 </p> |
| 358 |
| 359 <p class="note"> |
| 360 <strong>Version note:</strong> |
| 361 Before Chrome 14, <!-- PENDING(asargent): fix version # --> |
| 362 your items could appear only in documents with http:// |
| 363 or https:// URLs. |
| 364 </p> |
| 365 |
350 <h2 id="manifest">Manifest</h2> | 366 <h2 id="manifest">Manifest</h2> |
351 <p>You must declare the "contextMenus" permission | 367 <p>You must declare the "contextMenus" permission |
352 in your extension's manifest to use the API. | 368 in your extension's manifest to use the API. |
353 Also, you should specify a 16x16-pixel icon | 369 Also, you should specify a 16x16-pixel icon |
354 for display next to your menu item. | 370 for display next to your menu item. |
355 For example: | 371 For example: |
356 </p> | 372 </p> |
357 | 373 |
358 <pre>{ | 374 <pre>{ |
359 "name": "My extension", | 375 "name": "My extension", |
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3354 _uff=0; | 3370 _uff=0; |
3355 urchinTracker(); | 3371 urchinTracker(); |
3356 } | 3372 } |
3357 catch(e) {/* urchinTracker not available. */} | 3373 catch(e) {/* urchinTracker not available. */} |
3358 </script> | 3374 </script> |
3359 <!-- end analytics --> | 3375 <!-- end analytics --> |
3360 </div> | 3376 </div> |
3361 </div> <!-- /gc-footer --> | 3377 </div> <!-- /gc-footer --> |
3362 </div> <!-- /gc-container --> | 3378 </div> <!-- /gc-container --> |
3363 </body></html> | 3379 </body></html> |
OLD | NEW |