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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 from XMLHttpRequest to JSON to localStorage. | 253 from XMLHttpRequest to JSON to localStorage. |
254 </p> | 254 </p> |
255 | 255 |
256 <p> | 256 <p> |
257 Extensions can add UI to Google Chrome, | 257 Extensions can add UI to Google Chrome, |
258 in the form of | 258 in the form of |
259 <a href="toolstrip.html">toolstrips</a> (toolbar additions) | 259 <a href="toolstrip.html">toolstrips</a> (toolbar additions) |
260 and <a href="pageActions.html">page actions</a> | 260 and <a href="pageActions.html">page actions</a> |
261 (clickable badges in the address bar). | 261 (clickable badges in the address bar). |
262 Extensions can also interact programmatically | 262 Extensions can also interact programmatically |
263 with browser features such as | 263 with browser features such as |
264 <a href="bookmarks.html">bookmarks</a> | 264 <a href="bookmarks.html">bookmarks</a> |
265 and <a href="tabs.html">tabs</a>. | 265 and <a href="tabs.html">tabs</a>. |
266 </p> | 266 </p> |
267 | 267 |
268 <p> | 268 <p> |
269 To find a complete list of extension features, | 269 To find a complete list of extension features, |
270 with implementation details | 270 with implementation details |
271 for each one, | 271 for each one, |
272 see the <a href="devguide.html">Developer's Guide</a>. | 272 see the <a href="devguide.html">Developer's Guide</a>. |
273 </p> | 273 </p> |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 Once you have references to an extension's pages, | 557 Once you have references to an extension's pages, |
558 you can manipulate the DOM for each page. | 558 you can manipulate the DOM for each page. |
559 </li> | 559 </li> |
560 <li> | 560 <li> |
561 You can also make direct function calls to the pages, | 561 You can also make direct function calls to the pages, |
562 as shown in the following example. | 562 as shown in the following example. |
563 </li> | 563 </li> |
564 </ul> | 564 </ul> |
565 | 565 |
566 <p> | 566 <p> |
567 Here's an example of | 567 Here's an example of |
568 communication between toolstrips and the background page. | 568 communication between toolstrips and the background page. |
569 </p> | 569 </p> |
570 | 570 |
571 <pre>//In background_page.html: | 571 <pre>//In background_page.html: |
572 function updateUI(checked) { | 572 function updateUI(checked) { |
573 var toolstrips = chrome.extension.getToolstrips(); | 573 var toolstrips = chrome.extension.getToolstrips(); |
574 for (var i in toolstrips) { | 574 for (var i in toolstrips) { |
575 if (toolstrips[i].enableCheckbox) | 575 if (toolstrips[i].enableCheckbox) |
576 toolstrips[i].enableCheckbox(checked); | 576 toolstrips[i].enableCheckbox(checked); |
577 } | 577 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 <div id="pageFooter" --=""> | 749 <div id="pageFooter" --=""> |
750 <p> | 750 <p> |
751 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, | 751 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, |
752 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons | 752 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons |
753 Attribution 3.0 License</a>, and code samples are licensed under the | 753 Attribution 3.0 License</a>, and code samples are licensed under the |
754 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. | 754 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. |
755 </p> | 755 </p> |
756 <p> | 756 <p> |
757 ©2009 Google | 757 ©2009 Google |
758 </p> | 758 </p> |
| 759 |
| 760 <!-- begin analytics --> |
| 761 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"><
/script> |
| 762 <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></scr
ipt> |
| 763 |
| 764 <script type="text/javascript"> |
| 765 // chrome doc tracking |
| 766 try { |
| 767 var engdocs = _gat._getTracker("YT-10763712-2"); |
| 768 engdocs._trackPageview(); |
| 769 } catch(err) {} |
| 770 |
| 771 // code.google.com site-wide tracking |
| 772 try { |
| 773 _uacct="UA-18071-1"; |
| 774 _uanchor=1; |
| 775 _uff=0; |
| 776 urchinTracker(); |
| 777 } |
| 778 catch(e) {/* urchinTracker not available. */} |
| 779 </script> |
| 780 <!-- end analytics --> |
| 781 |
759 </div> <!-- /pageFooter --> | 782 </div> <!-- /pageFooter --> |
760 </div> <!-- /container --> | 783 </div> <!-- /container --> |
761 </body></html> | 784 </body></html> |
762 | 785 |
OLD | NEW |