| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 <p> | 378 <p> |
| 379 Register your browser action in the | 379 Register your browser action in the |
| 380 <a href="manifest.html">extension manifest</a> | 380 <a href="manifest.html">extension manifest</a> |
| 381 like this: | 381 like this: |
| 382 </p> | 382 </p> |
| 383 | 383 |
| 384 <pre>{ | 384 <pre>{ |
| 385 "name": "My extension", | 385 "name": "My extension", |
| 386 ... | 386 ... |
| 387 <b>"browser_action": { | 387 <b>"browser_action": { |
| 388 "default_icon": "images/icon19.png", <em>// <b>required</b></em> | 388 "default_icon": "images/icon19.png", <em>// optional</em> |
| 389 "default_title": "Google Mail", <em>// optional; shown in tooltip</em> | 389 "default_title": "Google Mail", <em>// optional; shown in tooltip</em> |
| 390 "default_popup": "popup.html" <em>// optional</em> | 390 "default_popup": "popup.html" <em>// optional</em> |
| 391 }</b>, | 391 }</b>, |
| 392 ... | 392 ... |
| 393 }</pre> | 393 }</pre> |
| 394 | 394 |
| 395 <h2 id="ui">Parts of the UI</h2> | 395 <h2 id="ui">Parts of the UI</h2> |
| 396 | 396 |
| 397 <p> | 397 <p> |
| 398 A browser action must have an <a href="#icon">icon</a>. | 398 A browser action can have an <a href="#icon">icon</a>, |
| 399 It can also have | |
| 400 a <a href="#tooltip">tooltip</a>, | 399 a <a href="#tooltip">tooltip</a>, |
| 401 a <a href="#badge">badge</a>, | 400 a <a href="#badge">badge</a>, |
| 402 and a <a href="#popups">popup</a>. | 401 and a <a href="#popups">popup</a>. |
| 403 </p> | 402 </p> |
| 404 | 403 |
| 405 <h3 id="icon">Icon</h3> | 404 <h3 id="icon">Icon</h3> |
| 406 | 405 |
| 407 <p>Browser action icons can be up to 19 pixels wide and high. | 406 <p>Browser action icons can be up to 19 pixels wide and high. |
| 408 Larger icons are resized to fit, but for best results, | 407 Larger icons are resized to fit, but for best results, |
| 409 use a 19-pixel square icon.</p> | 408 use a 19-pixel square icon.</p> |
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 _uff=0; | 1929 _uff=0; |
| 1931 urchinTracker(); | 1930 urchinTracker(); |
| 1932 } | 1931 } |
| 1933 catch(e) {/* urchinTracker not available. */} | 1932 catch(e) {/* urchinTracker not available. */} |
| 1934 </script> | 1933 </script> |
| 1935 <!-- end analytics --> | 1934 <!-- end analytics --> |
| 1936 </div> | 1935 </div> |
| 1937 </div> <!-- /gc-footer --> | 1936 </div> <!-- /gc-footer --> |
| 1938 </div> <!-- /gc-container --> | 1937 </div> <!-- /gc-container --> |
| 1939 </body></html> | 1938 </body></html> |
| OLD | NEW |