| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 <p> | 371 <p> |
| 372 Register your page action in the | 372 Register your page action in the |
| 373 <a href="manifest.html">extension manifest</a> | 373 <a href="manifest.html">extension manifest</a> |
| 374 like this: | 374 like this: |
| 375 </p> | 375 </p> |
| 376 | 376 |
| 377 <pre>{ | 377 <pre>{ |
| 378 "name": "My extension", | 378 "name": "My extension", |
| 379 ... | 379 ... |
| 380 <b>"page_action": { | 380 <b>"page_action": { |
| 381 "default_icon": "icons/foo.png", <em>// <b>required</b></em> | 381 "default_icon": "icons/foo.png", <em>// optional</em> |
| 382 "default_title": "Do action", <em>// optional; shown in tooltip</em> | 382 "default_title": "Do action", <em>// optional; shown in tooltip</em> |
| 383 "default_popup": "popup.html" <em>// optional</em> | 383 "default_popup": "popup.html" <em>// optional</em> |
| 384 }</b>, | 384 }</b>, |
| 385 ... | 385 ... |
| 386 }</pre> | 386 }</pre> |
| 387 | 387 |
| 388 <h2 id="ui">Parts of the UI</h2> | 388 <h2 id="ui">Parts of the UI</h2> |
| 389 | 389 |
| 390 <p> | 390 <p> |
| 391 Like browser actions, | 391 Like browser actions, |
| 392 page actions have an icon and | 392 page actions can have an icon, |
| 393 can also have a tooltip and popup; | 393 a tooltip, and popup; |
| 394 they can't have badges, however. | 394 they can't have badges, however. |
| 395 In addition, page actions can appear and disappear. | 395 In addition, page actions can appear and disappear. |
| 396 You can find information about icons, tooltips, and popups | 396 You can find information about icons, tooltips, and popups |
| 397 by reading about the | 397 by reading about the |
| 398 <a href="browserAction.html#ui">browser action UI</a>. | 398 <a href="browserAction.html#ui">browser action UI</a>. |
| 399 </p> | 399 </p> |
| 400 | 400 |
| 401 <p> | 401 <p> |
| 402 You make a page action appear and disappear using the | 402 You make a page action appear and disappear using the |
| 403 <a href="#method-show">show()</a> and | 403 <a href="#method-show">show()</a> and |
| (...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1685 _uff=0; | 1685 _uff=0; |
| 1686 urchinTracker(); | 1686 urchinTracker(); |
| 1687 } | 1687 } |
| 1688 catch(e) {/* urchinTracker not available. */} | 1688 catch(e) {/* urchinTracker not available. */} |
| 1689 </script> | 1689 </script> |
| 1690 <!-- end analytics --> | 1690 <!-- end analytics --> |
| 1691 </div> | 1691 </div> |
| 1692 </div> <!-- /gc-footer --> | 1692 </div> <!-- /gc-footer --> |
| 1693 </div> <!-- /gc-container --> | 1693 </div> <!-- /gc-container --> |
| 1694 </body></html> | 1694 </body></html> |
| OLD | NEW |