OLD | NEW |
---|---|
1 <link href="../css/ApiRefStyles.css" rel="stylesheet" type="text/css"> | 1 <link href="../css/ApiRefStyles_apps.css" rel="stylesheet" type="text/css"> |
Aaron Boodman
2012/07/02 21:21:57
Can you rename the stylesheet to just ApiRefStyles
| |
2 <link href="../css/prettify.css" rel="stylesheet" type="text/css"> | |
2 <link href="../css/shared.css" rel="stylesheet" type="text/css"> | 3 <link href="../css/shared.css" rel="stylesheet" type="text/css"> |
3 <div id="devModeWarning" class="displayModeWarning"> | 4 <div id="devModeWarning" class="displayModeWarning"> |
4 You are viewing extension docs in chrome via the 'file:' scheme: are you exp ecting to see local changes when you refresh? You'll need run chrome with --allo w-file-access-from-files. | 5 You are viewing extension docs in chrome via the 'file:' scheme: are you exp ecting to see local changes when you refresh? You'll need run chrome with --allo w-file-access-from-files. |
5 </div> | 6 </div> |
6 <div id="branchWarning" class="displayModeWarning"> | 7 <div id="branchWarning" class="displayModeWarning"> |
7 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. | 8 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. |
8 It may not work with the stable release of Chrome.</span> | 9 It may not work with the stable release of Chrome.</span> |
9 <select id='branchChooser'> | 10 <select id='branchChooser'> |
10 <option>Choose a different version... | 11 <option>Choose a different version... |
11 <option value="">Stable | 12 <option value="">Stable |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 | 181 |
181 <a id="top"></a> | 182 <a id="top"></a> |
182 <div id="skipto"> | 183 <div id="skipto"> |
183 <a href="#gc-pagecontent">Skip to page content</a> | 184 <a href="#gc-pagecontent">Skip to page content</a> |
184 <a href="#gc-toc">Skip to main navigation</a> | 185 <a href="#gc-toc">Skip to main navigation</a> |
185 </div> | 186 </div> |
186 <!-- API HEADER --> | 187 <!-- API HEADER --> |
187 <table id="header" width="100%" cellspacing="0" border="0"> | 188 <table id="header" width="100%" cellspacing="0" border="0"> |
188 <tr> | 189 <tr> |
189 <td valign="middle" | 190 <td valign="middle" |
190 ><a href="http://code.google.com/"><img src="../images/code_labs_logo. gif" height="43" width="161" alt="Google Code Labs" | 191 ><a href="http://code.google.com/"><img src="../images/chrome_logo.gif " alt="Google Chrome Extensions" |
Aaron Boodman
2012/07/02 21:21:57
Can you remove the old resources and stylesheets n
| |
191 style="border:0; margin:0;" | 192 style="border:0; margin:0;" |
192 ></a></td> | 193 ></a></td> |
193 <td valign="middle" width="100%" style="padding-left:0.6em;"> | 194 <td valign="middle" width="100%" style="padding-left:0.6em;"> |
194 <form action="http://www.google.com/cse" id="cse" style="margin-top:0. 5em"> | 195 <form action="http://www.google.com/cse" id="cse" style="margin-top:0. 5em"> |
195 <div id="gsc-search-box"> | 196 <div id="gsc-search-box"> |
196 <input type="hidden" name="cx" value="002967670403910741006:61_cvz fqtno" /> | 197 <input type="hidden" name="cx" value="002967670403910741006:61_cvz fqtno" /> |
197 <input type="hidden" name="ie" value="UTF-8" /> | 198 <input type="hidden" name="ie" value="UTF-8" /> |
198 <input type="text" name="q" value="" size="55" /> | 199 <input id="gsc-search-input" type="text" name="q" value="" size="5 5" /> |
199 <input class="gsc-search-button" type="submit" name="sa" value="Se arch" /> | 200 <button class="gsc-search-button" type="submit" name="sa"> |
201 <img class="gsc-search-button-lens" src="../images/search.png" a lt="Search"> | |
202 </button> | |
200 <br> | 203 <br> |
201 <span class="greytext">e.g. "page action" or "tabs"</span> | 204 <span class="greytext">e.g. "page action" or "tabs"</span> |
202 </div> | 205 </div> |
203 </form> | 206 </form> |
204 | 207 |
205 <script type="text/javascript" src="https://www.google.com/jsapi"></sc ript> | 208 <script type="text/javascript" src="https://www.google.com/jsapi"></sc ript> |
206 <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script> | 209 <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script> |
207 <script type="text/javascript" src="https://www.google.com/coop/cse/t1 3n?form=cse&t13n_langs=en"></script> | 210 <script type="text/javascript" src="https://www.google.com/coop/cse/t1 3n?form=cse&t13n_langs=en"></script> |
208 <script type="text/javascript" src="https://www.google.com/coop/cse/br and?form=cse&lang=en"></script> | 211 <script type="text/javascript" src="https://www.google.com/coop/cse/br and?form=cse&lang=en"></script> |
209 </td> | 212 </td> |
210 </tr> | 213 </tr> |
211 </table> | 214 </table> |
212 | 215 |
213 <div id="codesiteContent" jsvalues=".className: showSideNav() ? '' : 'hideSi deNav'"> | 216 <div id="codesiteContent" jsvalues=".className: showSideNav() ? '' : 'hideSi deNav'"> |
214 | 217 |
215 <a id="gc-topnav-anchor"></a> | 218 <a id="gc-topnav-anchor"></a> |
216 <div id="gc-topnav"> | 219 <div id="gc-topnav"> |
217 <h1>Google Chrome Extensions (<a href="http://code.google.com/labs/">Lab s</a>)</h1> | 220 <h1>Google Chrome Extensions</h1> |
218 <ul id="home" class="gc-topnav-tabs"> | 221 <ul id="home" class="gc-topnav-tabs"> |
219 <li id="home_link"> | 222 <li id="home_link"> |
220 <a href="index.html" title="Google Chrome Extensions home page">Home </a> | 223 <a href="index.html" title="Google Chrome Extensions home page"><spa n>Home</span></a> |
221 </li> | 224 </li> |
222 <li id="docs_link"> | 225 <li id="docs_link"> |
223 <a href="docs.html" title="Official Google Chrome Extensions documen tation">Docs</a> | 226 <a href="docs.html" title="Official Google Chrome Extensions documen tation"><span>Docs</span></a> |
224 </li> | 227 </li> |
225 <li id="faq_link"> | 228 <li id="faq_link"> |
226 <a href="faq.html" title="Answers to frequently asked questions abou t Google Chrome Extensions">FAQ</a> | 229 <a href="faq.html" title="Answers to frequently asked questions abou t Google Chrome Extensions"><span>FAQ</span></a> |
227 </li> | 230 </li> |
228 <li id="samples_link"> | 231 <li id="samples_link"> |
229 <a href="samples.html" title="Sample extensions (with source code)"> Samples</a> | 232 <a href="samples.html" title="Sample extensions (with source code)"> <span>Samples</span></a> |
230 </li> | 233 </li> |
231 <li id="group_link"> | 234 <li id="group_link"> |
232 <a href="http://groups.google.com/a/chromium.org/group/chromium-exte nsions" title="Google Chrome Extensions developer forum">Group</a> | 235 <a href="http://groups.google.com/a/chromium.org/group/chromium-exte nsions" title="Google Chrome Extensions developer forum"><span>Group</span></a> |
233 </li> | 236 </li> |
234 <li id="so_link"> | 237 <li id="so_link"> |
235 <a href="http://stackoverflow.com/questions/tagged/google-chrome-ext ension" title="[google-chrome-extension] tag on Stack Overflow">Questions?</a> | 238 <a href="http://stackoverflow.com/questions/tagged/google-chrome-ext ension" title="[google-chrome-extension] tag on Stack Overflow"><span>Questions? </span></a> |
236 </li> | 239 </li> |
237 </ul> | 240 </ul> |
238 </div> <!-- end gc-topnav --> | 241 </div> <!-- end gc-topnav --> |
239 | 242 |
240 <div class="g-section g-tpl-170"> | 243 <div class="g-section g-tpl-170"> |
241 <!-- SIDENAV --> | 244 <!-- SIDENAV --> |
242 <div class="g-unit g-first" id="gc-toc" jsdisplay="showSideNav()"> | 245 <div class="g-unit g-first" id="gc-toc" jsdisplay="showSideNav()"> |
243 <ul> | 246 <ul> |
244 <li><a href="getstarted.html">Getting Started</a></li> | 247 <li><a href="getstarted.html">Getting Started</a></li> |
245 <li><a href="overview.html">Overview</a></li> | 248 <li><a href="overview.html">Overview</a></li> |
246 <li><a href="whats_new.html">What's New?</a></li> | 249 <li><a href="whats_new.html">What's New?</a></li> |
247 <li><h2><a href="devguide.html">Developer's Guide</a></h2> | 250 <li><h2><a href="devguide.html">Developer's Guide</a></h2> |
248 <ul> | 251 <ul> |
249 <li>Browser UI | 252 <li><span>Browser UI</span> |
250 <ul> | 253 <ul> |
251 <li><a href="browserAction.html">Browser Actions</a></li> | 254 <li><a href="browserAction.html">Browser Actions</a></li> |
252 <li><a href="contextMenus.html">Context Menus</a></li> | 255 <li><a href="contextMenus.html">Context Menus</a></li> |
253 <li><a href="notifications.html">Desktop Notifications</a></li > | 256 <li><a href="notifications.html">Desktop Notifications</a></li > |
254 <li><a href="omnibox.html">Omnibox</a></li> | 257 <li><a href="omnibox.html">Omnibox</a></li> |
255 <li><a href="options.html">Options Pages</a></li> | 258 <li><a href="options.html">Options Pages</a></li> |
256 <li><a href="override.html">Override Pages</a></li> | 259 <li><a href="override.html">Override Pages</a></li> |
257 <li><a href="pageAction.html">Page Actions</a></li> | 260 <li><a href="pageAction.html">Page Actions</a></li> |
258 </ul> | 261 </ul> |
259 </li> | 262 </li> |
260 <li>Browser Interaction | 263 <li><span>Browser Interaction</span> |
261 <ul> | 264 <ul> |
262 <li><a href="bookmarks.html">Bookmarks</a></li> | 265 <li><a href="bookmarks.html">Bookmarks</a></li> |
263 <li><a href="cookies.html">Cookies</a></li> | 266 <li><a href="cookies.html">Cookies</a></li> |
264 <li><a href="devtools.html">Developer Tools</a></li> | 267 <li><a href="devtools.html">Developer Tools</a></li> |
265 <li><a href="events.html">Events</a></li> | 268 <li><a href="events.html">Events</a></li> |
266 <li><a href="history.html">History</a></li> | 269 <li><a href="history.html">History</a></li> |
267 <li><a href="management.html">Management</a></li> | 270 <li><a href="management.html">Management</a></li> |
268 <li><a href="tabs.html">Tabs</a></li> | 271 <li><a href="tabs.html">Tabs</a></li> |
269 <li><a href="windows.html">Windows</a></li> | 272 <li><a href="windows.html">Windows</a></li> |
270 </ul> | 273 </ul> |
271 </li> | 274 </li> |
272 <li>Implementation | 275 <li><span>Implementation</span> |
273 <ul> | 276 <ul> |
274 <li><a href="a11y.html">Accessibility</a></li> | 277 <li><a href="a11y.html">Accessibility</a></li> |
275 <li><a href="background_pages.html">Background Pages</a></li> | 278 <li><a href="background_pages.html">Background Pages</a></li> |
276 <li><a href="content_scripts.html">Content Scripts</a></li> | 279 <li><a href="content_scripts.html">Content Scripts</a></li> |
277 <li><a href="xhr.html">Cross-Origin XHR</a></li> | 280 <li><a href="xhr.html">Cross-Origin XHR</a></li> |
278 <li><a href="i18n.html">Internationalization</a></li> | 281 <li><a href="i18n.html">Internationalization</a></li> |
279 <li><a href="messaging.html">Message Passing</a></li> | 282 <li><a href="messaging.html">Message Passing</a></li> |
280 <li><a href="permissions.html">Optional Permissions</a></li> | 283 <li><a href="permissions.html">Optional Permissions</a></li> |
281 <li><a href="npapi.html">NPAPI Plugins</a></li> | 284 <li><a href="npapi.html">NPAPI Plugins</a></li> |
282 </ul> | 285 </ul> |
283 </li> | 286 </li> |
284 <li>Finishing | 287 <li><span>Finishing</span> |
285 <ul> | 288 <ul> |
286 <li><a href="hosting.html">Hosting</a></li> | 289 <li><a href="hosting.html">Hosting</a></li> |
287 <li><a href="external_extensions.html">Other Deployment Option s</a></li> | 290 <li><a href="external_extensions.html">Other Deployment Option s</a></li> |
288 </ul> | 291 </ul> |
289 </li> | 292 </li> |
290 </ul> | 293 </ul> |
291 </li> | 294 </li> |
292 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> | 295 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> |
293 <li><h2><a href="tutorials.html">Tutorials</a></h2> | 296 <li><h2><a href="tutorials.html">Tutorials</a></h2> |
294 <ul> | 297 <ul> |
295 <li><a href="tut_debugging.html">Debugging</a></li> | 298 <li><a href="tut_debugging.html">Debugging</a></li> |
296 <li><a href="tut_analytics.html">Google Analytics</a></li> | 299 <li><a href="tut_analytics.html">Google Analytics</a></li> |
297 <li><a href="tut_oauth.html">OAuth</a></li> | 300 <li><a href="tut_oauth.html">OAuth</a></li> |
298 </ul> | 301 </ul> |
299 </li> | 302 </li> |
300 <li><h2>Reference</h2> | 303 <li><h2>Reference</h2> |
301 <ul> | 304 <ul> |
302 <li>Formats | 305 <li><span>Formats</span> |
303 <ul> | 306 <ul> |
304 <li><a href="manifest.html">Manifest Files</a></li> | 307 <li><a href="manifest.html">Manifest Files</a></li> |
305 <li><a href="match_patterns.html">Match Patterns</a></li> | 308 <li><a href="match_patterns.html">Match Patterns</a></li> |
306 </ul> | 309 </ul> |
307 </li> | 310 </li> |
308 <li><a href="permission_warnings.html">Permission Warnings</a></li > | 311 <li><a href="permission_warnings.html">Permission Warnings</a></li > |
309 <li><a href="api_index.html">chrome.* APIs</a></li> | 312 <li><a href="api_index.html">chrome.* APIs</a></li> |
310 <li><a href="api_other.html">Other APIs</a></li> | 313 <li><a href="api_other.html">Other APIs</a></li> |
311 </ul> | 314 </ul> |
312 </li> | 315 </li> |
313 <li><h2><a href="samples.html">Samples</a></h2></li> | 316 <li><h2><a href="samples.html">Samples</a></h2></li> |
314 <div class="line"> </div> | |
315 <li><h2>More</h2> | 317 <li><h2>More</h2> |
316 <ul> | 318 <ul> |
317 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm l">Chrome Web Store</a></li> | 319 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm l">Chrome Web Store</a></li> |
318 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu ide.html">Hosted Apps</a></li> | 320 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu ide.html">Hosted Apps</a></li> |
319 <li><a href="themes.html">Themes</a></li> | 321 <li><a href="themes.html">Themes</a></li> |
320 </ul> | 322 </ul> |
321 </li> | 323 </li> |
322 </ul> | 324 </ul> |
323 </div> | 325 </div> |
324 <script> | 326 <script> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
599 <div class="text"> | 601 <div class="text"> |
600 <p> | 602 <p> |
601 Except as otherwise <a | 603 Except as otherwise <a |
602 href="http://code.google.com/policies.html#restrictions">noted</a>, | 604 href="http://code.google.com/policies.html#restrictions">noted</a>, |
603 the content of this page is licensed under the <a rel="license" | 605 the content of this page is licensed under the <a rel="license" |
604 href="http://creativecommons.org/licenses/by/3.0/">Creative Commons | 606 href="http://creativecommons.org/licenses/by/3.0/">Creative Commons |
605 Attribution 3.0 License</a>, and code samples are licensed under the | 607 Attribution 3.0 License</a>, and code samples are licensed under the |
606 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic ense</a>. | 608 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic ense</a>. |
607 </p> | 609 </p> |
608 <p> | 610 <p> |
609 ©2011 Google | 611 ©2012 Google |
610 </p> | 612 </p> |
611 | 613 |
612 <!-- begin analytics --> | 614 <!-- begin analytics --> |
613 <script src="https://www.google-analytics.com/urchin.js" type="text/javascript"> </script> | 615 <script src="https://www.google-analytics.com/urchin.js" type="text/javascript"> </script> |
614 <script src="https://www.google-analytics.com/ga.js" type="text/javascript"></sc ript> | 616 <script src="https://www.google-analytics.com/ga.js" type="text/javascript"></sc ript> |
615 | 617 <script src="../js/prettify.js" type="text/javascript"></script> |
618 <script> | |
619 // Auto syntax highlight all pre tags. | |
620 var pres = document.querySelectorAll('pre'); | |
621 for (var i = 0, pre; pre = pres[i]; ++i) { | |
622 pre.className += ' prettyprint'; | |
623 }; | |
624 prettyPrint(); | |
625 </script> | |
616 <script type="text/javascript"> | 626 <script type="text/javascript"> |
617 // chrome doc tracking | 627 // chrome doc tracking |
618 try { | 628 try { |
619 var engdocs = _gat._getTracker("YT-10763712-2"); | 629 var engdocs = _gat._getTracker("YT-10763712-2"); |
620 engdocs._trackPageview(); | 630 engdocs._trackPageview(); |
621 } catch(err) {} | 631 } catch(err) {} |
622 | 632 |
623 // code.google.com site-wide tracking | 633 // code.google.com site-wide tracking |
624 try { | 634 try { |
625 _uacct="UA-18071-1"; | 635 _uacct="UA-18071-1"; |
626 _uanchor=1; | 636 _uanchor=1; |
627 _uff=0; | 637 _uff=0; |
628 urchinTracker(); | 638 urchinTracker(); |
629 } | 639 } |
630 catch(e) {/* urchinTracker not available. */} | 640 catch(e) {/* urchinTracker not available. */} |
631 </script> | 641 </script> |
632 <!-- end analytics --> | 642 <!-- end analytics --> |
633 </div> | 643 </div> |
634 </div> <!-- /gc-footer --> | 644 </div> <!-- /gc-footer --> |
635 </div> <!-- /gc-container --> | 645 </div> <!-- /gc-container --> |
OLD | NEW |