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>When we originally released the contextMenus API out of |
| 351 experimental, we limited items to only appear on documents (or frames within doc
uments) whose url had a scheme of http/https. We've recently removed that restri
ction, so your items can appear on any document such as file:// urls, etc. If yo
u'd like to control which pages your items appear on, see the targetUrlPatterns
parameter to the create and update methods.</p> |
| 352 |
350 <h2 id="manifest">Manifest</h2> | 353 <h2 id="manifest">Manifest</h2> |
351 <p>You must declare the "contextMenus" permission | 354 <p>You must declare the "contextMenus" permission |
352 in your extension's manifest to use the API. | 355 in your extension's manifest to use the API. |
353 Also, you should specify a 16x16-pixel icon | 356 Also, you should specify a 16x16-pixel icon |
354 for display next to your menu item. | 357 for display next to your menu item. |
355 For example: | 358 For example: |
356 </p> | 359 </p> |
357 | 360 |
358 <pre>{ | 361 <pre>{ |
359 "name": "My extension", | 362 "name": "My extension", |
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3354 _uff=0; | 3357 _uff=0; |
3355 urchinTracker(); | 3358 urchinTracker(); |
3356 } | 3359 } |
3357 catch(e) {/* urchinTracker not available. */} | 3360 catch(e) {/* urchinTracker not available. */} |
3358 </script> | 3361 </script> |
3359 <!-- end analytics --> | 3362 <!-- end analytics --> |
3360 </div> | 3363 </div> |
3361 </div> <!-- /gc-footer --> | 3364 </div> <!-- /gc-footer --> |
3362 </div> <!-- /gc-container --> | 3365 </div> <!-- /gc-container --> |
3363 </body></html> | 3366 </body></html> |
OLD | NEW |