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 3 across api docs and should be edited only with knowledge of the 4 templating mechanism. 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 7 authored overview content. 8 4) The <body>.innerHTML is also generated by an offline step so that this 9 page may easily be indexed by search engines. 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> 13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> 14 <script type="text/javascript" src="../../../third_party/jstemplate/jstemplate_compiled.js"> 15 </script> 16 <script type="text/javascript" src="js/api_page_generator.js"></script> 17 <script type="text/javascript" src="js/bootstrap.js"></script> 18 <script type="text/javascript" src="js/sidebar.js"></script> 19 <title>Samples - Google Chrome Extensions - Google Code</title></head> 20 <body> <div id="gc-container" class="labs"> 21 <div id="devModeWarning"> 22 You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files. 23 </div> 24 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> 25 <!-- In particular, sub-templates that recurse, must be used by allowing 26 jstemplate to make a copy of the template in this section which 27 are not operated on by way of the jsskip="true" --> 28 <div style="display:none"> 29 30 <!-- VALUE --> 31 <div id="valueTemplate"> 32 <dt> 33 <var>paramName</var> 34 <em> 35 36 <!-- TYPE --> 37 <div style="display:inline"> 38 ( 39 <span class="optional">optional</span> 40 <span class="enum">enumerated</span> 41 <span id="typeTemplate"> 42 <span> 43 <a> Type</a> 44 </span> 45 <span> 46 <span> 47 array of <span><span></span></span> 48 </span> 49 <span>paramType</span> 50 <span></span> 51 </span> 52 </span> 53 ) 54 </div> 55 56 </em> 57 </dt> 58 <dd class="todo"> 59 Undocumented. 60 </dd> 61 <dd> 62 Description of this parameter from the json schema. 63 </dd> 64 <dd> 65 This parameter was added in version 66 <b><span></span></b>. 67 You must omit this parameter in earlier versions, 68 and you may omit it in any version. If you require this 69 parameter, the manifest key 70 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 71 can ensure that your extension won't be run in an earlier browser version. 72 </dd> 73 74 <!-- OBJECT PROPERTIES --> 75 <dd> 76 <dl> 77 <div> 78 <div> 79 </div> 80 </div> 81 </dl> 82 </dd> 83 84 <!-- OBJECT METHODS --> 85 <dd> 86 <div></div> 87 </dd> 88 89 <!-- OBJECT EVENT FIELDS --> 90 <dd> 91 <div></div> 92 </dd> 93 94 <!-- FUNCTION PARAMETERS --> 95 <dd> 96 <div></div> 97 </dd> 98 99 </div> <!-- /VALUE --> 100 101 <div id="functionParametersTemplate"> 102 <h5>Parameters</h5> 103 <dl> 104 <div> 105 <div> 106 </div> 107 </div> 108 </dl> 109 </div> 110 </div> <!-- /SUBTEMPLATES --> 111 112 <a id="top"></a> 113 <div id="skipto"> 114 <a href="#gc-pagecontent">Skip to page content</a> 115 <a href="#gc-toc">Skip to main navigation</a> 116 </div> 117 <!-- API HEADER --> 118 <table id="header" width="100%" cellspacing="0" border="0"> 119 <tbody><tr> 120 <td valign="middle"><a href="http://code.google.com/"><img src="images/code_labs_logo.gif" height="43" width="161" alt="Google Code Labs" style="border:0; margin:0;"></a></td> 121 <td valign="middle" width="100%" style="padding-left:0.6em;"> 122 <form action="http://www.google.com/cse" id="cse" style="margin-top:0.5em"> 123 <div id="gsc-search-box"> 124 <input type="hidden" name="cx" value="002967670403910741006:61_cvzfqtno"> 125 <input type="hidden" name="ie" value="UTF-8"> 126 <input type="text" name="q" value="" size="55"> 127 <input class="gsc-search-button" type="submit" name="sa" value="Search"> 128 <br> 129 <span class="greytext">e.g. "page action" or "tabs"</span> 130 </div> 131 </form> 132 133 <script type="text/javascript" src="http://www.google.com/jsapi"></script> 134 <script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script> 135 <script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse&t13n_langs=en"></script> 136 <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse&lang=en"></script> 137 </td> 138 </tr> 139 </tbody></table> 140 141 <div id="codesiteContent" class=""> 142 143 <a id="gc-topnav-anchor"></a> 144 <div id="gc-topnav"> 145 <h1>Google Chrome Extensions (<a href="http://code.google.com/labs/">Labs</a>)</h1> 146 <ul id="home" class="gc-topnav-tabs"> 147 <li id="home_link"> 148 <a href="index.html" title="Google Chrome Extensions home page">Home</a> 149 </li> 150 <li id="docs_link"> 151 <a href="docs.html" title="Official Google Chrome Extensions documentation">Docs</a> 152 </li> 153 <li id="faq_link"> 154 <a href="faq.html" title="Answers to frequently asked questions about Google Chrome Extensions">FAQ</a> 155 </li> 156 <li id="samples_link"> 157 <a href="samples.html" title="Sample extensions (with source code)">Samples</a> 158 </li> 159 <li id="group_link"> 160 <a href="http://groups.google.com/a/chromium.org/group/chromium-extensions" title="Google Chrome Extensions developer forum">Group</a> 161 </li> 162 </ul> 163 </div> <!-- end gc-topnav --> 164 165 <div class="g-section g-tpl-170"> 166 <!-- SIDENAV --> 167 <div class="g-unit g-first" id="gc-toc"> 168 <ul> 169 <li><a href="getstarted.html">Getting Started</a></li> 170 <li><a href="overview.html">Overview</a></li> 171 <li><a href="whats_new.html">What's New?</a></li> 172 <li><h2><a href="devguide.html">Developer's Guide</a></h2> 173 <ul> 174 <li>Browser UI 175 <ul> 176 <li><a href="browserAction.html">Browser Actions</a></li> 177 <li><a href="contextMenus.html">Context Menus</a></li> 178 <li><a href="notifications.html">Desktop Notifications</a></li> 179 <li><a href="omnibox.html">Omnibox</a></li> 180 <li><a href="options.html">Options Pages</a></li> 181 <li><a href="override.html">Override Pages</a></li> 182 <li><a href="pageAction.html">Page Actions</a></li> 183 </ul> 184 </li> 185 <li>Browser Interaction 186 <ul> 187 <li><a href="bookmarks.html">Bookmarks</a></li> 188 <li><a href="cookies.html">Cookies</a></li> 189 <li><a href="events.html">Events</a></li> 190 <li><a href="history.html">History</a></li> 191 <li><a href="management.html">Management</a></li> 192 <li><a href="tabs.html">Tabs</a></li> 193 <li><a href="windows.html">Windows</a></li> 194 </ul> 195 </li> 196 <li>Implementation 197 <ul> 198 <li><a href="a11y.html">Accessibility</a></li> 199 <li><a href="background_pages.html">Background Pages</a></li> 200 <li><a href="content_scripts.html">Content Scripts</a></li> 201 <li><a href="xhr.html">Cross-Origin XHR</a></li> 202 <li><a href="idle.html">Idle</a></li> 203 <li><a href="i18n.html">Internationalization</a></li> 204 <li><a href="messaging.html">Message Passing</a></li> 205 <li><a href="npapi.html">NPAPI Plugins</a></li> 206 </ul> 207 </li> 208 <li>Finishing 209 <ul> 210 <li><a href="hosting.html">Hosting</a></li> 211 <li><a href="external_extensions.html">Other Deployment Options</a></li> 212 </ul> 213 </li> 214 </ul> 215 </li> 216 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> 217 <li><h2><a href="tutorials.html">Tutorials</a></h2> 218 <ul> 219 <li><a href="tut_debugging.html">Debugging</a></li> 220 <li><a href="tut_analytics.html">Google Analytics</a></li> 221 <li><a href="tut_oauth.html">OAuth</a></li> 222 </ul> 223 </li> 224 <li><h2>Reference</h2> 225 <ul> 226 <li>Formats 227 <ul> 228 <li><a href="manifest.html">Manifest Files</a></li> 229 <li><a href="match_patterns.html">Match Patterns</a></li> 230 </ul> 231 </li> 232 <li><a href="permission_warnings.html">Permission Warnings</a></li> 233 <li><a href="api_index.html">chrome.* APIs</a></li> 234 <li><a href="api_other.html">Other APIs</a></li> 235 </ul> 236 </li> 237 <li><h2><a href="samples.html">Samples</a></h2></li> 238 <div class="line"> </div> 239 <li><h2>More</h2> 240 <ul> 241 <li><a href="http://code.google.com/chrome/webstore/docs/index.html">Chrome Web Store</a></li> 242 <li><a href="http://code.google.com/chrome/apps/docs/developers_guide.html">Hosted Apps</a></li> 243 <li><a href="themes.html">Themes</a></li> 244 </ul> 245 </li> 246 </ul> 247 </div> 248 <script> 249 initToggles(); 250 </script> 251 252 <div class="g-unit" id="gc-pagecontent"> 253 <div id="pageTitle"> 254 <h1 class="page_title">Samples</h1> 255 </div> 256 <!-- TABLE OF CONTENTS --> 257 <div id="toc" style="display: none; "> 258 <h2>Contents</h2> 259 <ol> 260 <li> 261 <a>h2Name</a> 262 <ol> 263 <li> 264 <a>h3Name</a> 265 </li> 266 </ol> 267 </li> 268 <li> 269 <a href="#apiReference">API reference</a> 270 <ol> 271 <li> 272 <a href="#properties">Properties</a> 273 <ol> 274 <li> 275 <a href="#property-anchor">propertyName</a> 276 </li> 277 </ol> 278 </li> 279 <li> 280 <a>Methods</a> 281 <ol> 282 <li> 283 <a href="#method-anchor">methodName</a> 284 </li> 285 </ol> 286 </li> 287 <li> 288 <a>Events</a> 289 <ol> 290 <li> 291 <a href="#event-anchor">eventName</a> 292 </li> 293 </ol> 294 </li> 295 <li> 296 <a href="#types">Types</a> 297 <ol> 298 <li> 299 <a href="#id-anchor">id</a> 300 </li> 301 </ol> 302 </li> 303 </ol> 304 </li> 305 </ol> 306 </div> 307 <!-- /TABLE OF CONTENTS --> 308 309 <!-- Standard content lead-in for experimental API pages --> 310 <p id="classSummary" style="display: none; "> 311 For information on how to use experimental APIs, see the <a href="experimental.html">chrome.experimental.* APIs</a> page. 312 </p> 313 314 <!-- STATIC CONTENT PLACEHOLDER --> 315 <div id="static"><link rel="stylesheet" href="css/samples.css"> 316 <script>var search_data = {"0262260daf0c8f7b28feff2ef23b05e7abf9d1e0":"A BROWSER ACTION WHICH CHANGES ITS ICON WHEN CLICKED. BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETICON","ea2894c41cb8e80a4433a3e6c5772dadce9be90d":"A BROWSER ACTION WITH A POPUP THAT CHANGES THE PAGE COLOR. BROWSER_ACTION POPUP TABS CHROME.TABS.EXECUTESCRIPT","ede3c47b7757245be42ec33fd5ca63df4b490066":"A BROWSER ACTION WITH NO ICON THAT MAKES THE PAGE RED BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.TABS.EXECUTESCRIPT","fbf0aa1a09a15ff8cc4fc7de4fd176d6c663d07a":"ACCEPTLANGUAGE RETURNS ACCEPT LANGUAGES OF THE BROWSER BROWSER_ACTION POPUP CHROME.I18N.GETACCEPTLANGUAGES CHROME.I18N.GETMESSAGE","9a6e4ec46997fb92b324974afa08a3d007e2537f":"ANIMATED PAGE ACTION THIS EXTENSION ADDS AN ANIMATED BROWSER ACTION TO THE TOOLBAR. BACKGROUND_PAGE PAGE_ACTION TABS CHROME.PAGEACTION.HIDE CHROME.PAGEACTION.ONCLICKED CHROME.PAGEACTION.SETICON CHROME.PAGEACTION.SETTITLE CHROME.PAGEACTION.SHOW CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONSELECTIONCHANGED","a1f7cf79dd555b04fa8d603247a040e644996293":"APP LAUNCHER BROWSER_ACTION MANAGEMENT CHROME.EXTENSION.GETURL CHROME.MANAGEMENT.GET CHROME.MANAGEMENT.GETALL CHROME.MANAGEMENT.LAUNCHAPP CHROME.TABS.CREATE","9747e3d6a3eab39bc7c17f11a80573c62d44c7e5":"BLANK NEW TAB PAGE CHROME_URL_OVERRIDES","903e7277139e1e6caec123d3319cab295d8d1b3a":"CHROME SOUNDS ENJOY A MORE MAGICAL AND IMMERSIVE EXPERIENCE WHEN BROWSING THE WEB USING THE POWER OF SOUND. BACKGROUND_PAGE BOOKMARKS OPTIONS_PAGE TABS CHROME.BOOKMARKS.ONCREATED CHROME.BOOKMARKS.ONMOVED CHROME.BOOKMARKS.ONREMOVED CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.TABS.GET CHROME.TABS.ONATTACHED CHROME.TABS.ONCREATED CHROME.TABS.ONDETACHED CHROME.TABS.ONMOVED CHROME.TABS.ONREMOVED CHROME.TABS.ONSELECTIONCHANGED CHROME.TABS.ONUPDATED CHROME.WINDOWS.ONCREATED CHROME.WINDOWS.ONFOCUSCHANGED CHROME.WINDOWS.ONREMOVED","0e790e035a4a00b6f1def5ef9a7d7be1bce95ab5":"CHROMIUM BUILDBOT MONITOR DISPLAYS THE STATUS OF THE CHROMIUM BUILDBOT IN THE TOOLBAR. CLICK TO SEE MORE DETAILED STATUS IN A POPUP. BACKGROUND_PAGE BROWSER_ACTION NOTIFICATIONS OPTIONS_PAGE POPUP CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.BROWSERACTION.SETTITLE CHROME.EXTENSION.GETURL","ac31228200b41a87982e386cc90d3a6eee4ad885":"CHROMIUM SEARCH ADD SUPPORT TO THE OMNIBOX TO SEARCH THE CHROMIUM SOURCE CODE. BACKGROUND_PAGE TABS CHROME.OMNIBOX.ONINPUTCANCELLED CHROME.OMNIBOX.ONINPUTCHANGED CHROME.OMNIBOX.ONINPUTENTERED CHROME.OMNIBOX.ONINPUTSTARTED CHROME.OMNIBOX.SETDEFAULTSUGGESTION CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.UPDATE","7d5d6cf195bc25480256618e360aa38c6e6fba82":"CLD DISPLAYS THE LANGUAGE OF A TAB BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.SETBADGETEXT CHROME.TABS.DETECTLANGUAGE CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONSELECTIONCHANGED CHROME.TABS.ONUPDATED","5d81304a17cf7ac2887484f730fbd2b01e51e166":"CONTEXT MENUS SAMPLE SHOWS SOME OF THE FEATURES OF THE CONTEXT MENUS API BACKGROUND_PAGE CONTEXTMENUS CHROME.CONTEXTMENUS.CREATE","4daa6becd0899a54776d9cf7f09613ed1a9f4d77":"COOKIE API TEST EXTENSION TESTING COOKIE API BACKGROUND_PAGE BROWSER_ACTION COOKIES TABS CHROME.BROWSERACTION.ONCLICKED CHROME.COOKIES.GET CHROME.COOKIES.GETALL CHROME.COOKIES.ONCHANGED CHROME.COOKIES.REMOVE CHROME.EXTENSION.GETURL CHROME.TABS.CREATE CHROME.TABS.UPDATE CHROME.WINDOWS.GET CHROME.WINDOWS.GETALL","6871d09f4a96bf9d4b6cc724d00e909cee0f3902":"CROSS-DOMAIN XMLHTTPREQUEST FROM A CONTENT SCRIPT DEMONSTRATES A METHOD TO MAKE A CROSS-DOMAIN XMLHTTPREQUEST FETCH FROM A CONTENT SCRIPT. THIS EXTENSION FETCHES THE CURRENT TRENDING TOPICS FROM TWITTER AND INSERTS THEM IN AN OVERLAY AT THE TOP OF GOOGLE NEWS. VISIT HTTP://NEWS.GOOGLE.COM TO TEST THIS EXTENSION. BACKGROUND_PAGE CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST","028eb5364924344029bcbe1d527f132fc72b34e5":"EMAIL THIS PAGE (BY GOOGLE) THIS EXTENSION ADDS AN EMAIL BUTTON TO THE TOOLBAR WHICH ALLOWS YOU TO EMAIL THE PAGE LINK USING YOUR DEFAULT MAIL CLIENT OR GMAIL. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE TABS CHROME.BROWSERACTION.ONCLICKED CHROME.EXTENSION.CONNECT CHROME.EXTENSION.ONCONNECT CHROME.TABS.CREATE CHROME.TABS.EXECUTESCRIPT CHROME.TABS.UPDATE","0bf0930a32829dfb77170535ecb27adc2de3998a":"ENABLE/DISABLE REFERRERS API EXAMPLE EXTENSION SAMPLE EXTENSION WHICH DEMONSTRATES HOW TO ACCESS A PREFERENCE. BROWSER_ACTION CONTENTSETTINGS EXPERIMENTAL POPUP CHROME.EXTENSION.ISALLOWEDINCOGNITOACCESS","763a08e9b06595d785568a8d392b95a2f3700258":"EVENT TRACKING WITH GOOGLE ANALYTICS A SAMPLE EXTENSION WHICH USES GOOGLE ANALYTICS TO TRACK USAGE. BACKGROUND_PAGE BROWSER_ACTION POPUP","e3df888a89e35bdeb9c8bc8d03be5e1851b97c68":"EXTENSION DOCS SEARCH SEARCH THE CHROME EXTENSIONS DOCUMENTATION. TO USE, TYPE CRDOC PLUS A SEARCH TERM INTO THE OMNIBOX. BACKGROUND_PAGE TABS CHROME.OMNIBOX.ONINPUTCHANGED CHROME.OMNIBOX.ONINPUTENTERED CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.ONREMOVED CHROME.TABS.UPDATE","8b0dd31216235941bdd8eb33fda915ef5cf79a82":"GOOGLE CALENDAR CHECKER (BY GOOGLE) QUICKLY SEE THE TIME UNTIL YOUR NEXT MEETING FROM ANY OF YOUR CALENDARS. CLICK ON THE BUTTON TO BE TAKEN TO YOUR CALENDAR. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.BROWSERACTION.SETICON CHROME.BROWSERACTION.SETTITLE CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.I18N.GETMESSAGE CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETALLINWINDOW CHROME.TABS.ONUPDATED CHROME.TABS.UPDATE","4e35caa9742fb82dbd628892d23a781614f6eff6":"GOOGLE DOCUMENT LIST VIEWER DEMONSTRATES HOW TO USE OAUTH TO CONNECT THE GOOGLE DOCUMENTS LIST DATA API. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE POPUP TABS CHROME.BROWSERACTION.SETBADGETEXT CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.GETURL CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONUPDATED CHROME.TABS.REMOVE","bb57f7a0132cbeb36ad7e7bb0ab75c21704234ca":"GOOGLE MAIL CHECKER DISPLAYS THE NUMBER OF UNREAD MESSAGES IN YOUR GOOGLE MAIL INBOX. YOU CAN ALSO CLICK THE BUTTON TO OPEN YOUR INBOX. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.BROWSERACTION.SETICON CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.I18N.GETMESSAGE CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETALLINWINDOW CHROME.TABS.ONUPDATED CHROME.TABS.UPDATE","1682e05ea9a1bde985123b04f6f8ac50a8a64033":"GOOGLE WAVE NOTIFIER FIND OUT WHEN YOU HAVE NEW WAVES AND PREVIEW THEM FAST. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE POPUP TABS CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.GETURL CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONUPDATED CHROME.TABS.REMOVE","14b9651fda4e57b2a5914ba73a779812201b750a":"HELLO WORLD THE FIRST EXTENSION THAT I MADE. BROWSER_ACTION POPUP","2020d72f2577f53caf8e94e3dbac0fb849ceaa4d":"IDLE - SIMPLE EXAMPLE DEMONSTRATES THE IDLE API BACKGROUND_PAGE BROWSER_ACTION IDLE CHROME.BROWSERACTION.ONCLICKED CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.IDLE.ONSTATECHANGED CHROME.IDLE.QUERYSTATE","0ea1588bd07b20338fc21f725de1542a5fdf9726":"IGOOGLE NEW TAB PAGE CHROME_URL_OVERRIDES","646325c25f572a1d15edc73d057f821d847a4fbe":"IMAGEINFO GET IMAGE INFO FOR IMAGES, INCLUDING EXIF DATA BACKGROUND_PAGE CONTEXTMENUS TABS CHROME.CONTEXTMENUS.CREATE CHROME.TABS.GET CHROME.TABS.GETCURRENT CHROME.WINDOWS.CREATE CHROME.WINDOWS.UPDATE","65b2fe595b7ac38dddd89cca50f5efd0017b0bd4":"KEYBOARD PIN CREATES A KEYBOARD SHORTCUT (C + SHIFT + P) TO TOGGLE THE PINNED STATE OF THE CURRENTLY SELECTED TAB BACKGROUND_PAGE TABS CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.UPDATE","ec97ec20ca2f095d081e39f1565fc12af09ef067":"MAPPY FINDS ADDRESSES IN THE WEB PAGE YOURE ON AND POPS UP A MAP WINDOW. BACKGROUND_PAGE PAGE_ACTION POPUP TABS CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.ONREQUEST CHROME.PAGEACTION.HIDE CHROME.PAGEACTION.SETTITLE CHROME.PAGEACTION.SHOW CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONSELECTIONCHANGED CHROME.TABS.ONUPDATED CHROME.TABS.SENDREQUEST","b2f5f8a790e16f091a7e4e0a39b2d0a6d32e3a6d":"MERGE WINDOWS MERGES ALL OF THE BROWSERS WINDOWS INTO THE CURRENT WINDOW BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.TABS.GET CHROME.TABS.GETALLINWINDOW CHROME.TABS.MOVE CHROME.WINDOWS.GET CHROME.WINDOWS.GETALL CHROME.WINDOWS.GETCURRENT","51a83d2ba3a32e3ff1bdb624d4e18ccec4c4038e":"MESSAGE TIMER TIMES HOW LONG IT TAKES TO SEND A MESSAGE TO A CONTENT SCRIPT AND BACK. BROWSER_ACTION POPUP TABS CHROME.EXTENSION.ONCONNECT CHROME.EXTENSION.ONREQUEST CHROME.TABS.CONNECT CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.SENDREQUEST","4f6785ec4f937add6728615682dd37c9a42d9548":"MY BOOKMARKS A BROWSER ACTION WITH A POPUP DUMP OF ALL BOOKMARKS, INCLUDING SEARCH, ADD, EDIT AND DELETE. BOOKMARKS BROWSER_ACTION POPUP TABS CHROME.BOOKMARKS.CREATE CHROME.BOOKMARKS.GET CHROME.BOOKMARKS.GETTREE CHROME.BOOKMARKS.REMOVE CHROME.BOOKMARKS.UPDATE CHROME.TABS.CREATE","597015d3bcce3da693b02314afd607bec4f55291":"NEWS READER DISPLAYS THE FIRST 5 ITEMS FROM THE GOOGLE NEWS - TOP NEWS RSS FEED IN A POPUP. BROWSER_ACTION POPUP TABS CHROME.TABS.CREATE","6444e5c8ae112a6a433909c5e770669cd16e2e5f":"NEWS READER DISPLAYS THE FIRST 5 ITEMS FROM THE GOOGLE NEWS - TOP NEWS RSS FEED IN A POPUP. BROWSER_ACTION POPUP TABS CHROME.I18N.GETMESSAGE CHROME.TABS.CREATE","3aea027164cb9b732ba4a8c51cb93708891726ef":"NEWS READER (BY GOOGLE) DISPLAYS THE LATEST STORIES FROM GOOGLE NEWS IN A POPUP. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE POPUP TABS CHROME.EXTENSION.GETURL CHROME.I18N.GETMESSAGE CHROME.TABS.CREATE","f799e26ceef2367cf836f24bcb47df4398b0df58":"NOTIFICATION DEMO SHOWS OFF DESKTOP NOTIFICATIONS, WHICH ARE TOAST WINDOWS THAT POP UP ON THE DESKTOP. BACKGROUND_PAGE NOTIFICATIONS OPTIONS_PAGE TABS CHROME.TABS.CREATE","e787b322bddbc6289bb31b7d7550b1bf6456a80b":"OMNIBOX EXAMPLE TO USE, TYPE OMNIX PLUS A SEARCH TERM INTO THE OMNIBOX. BACKGROUND_PAGE CHROME.OMNIBOX.ONINPUTCHANGED CHROME.OMNIBOX.ONINPUTENTERED","8d0a50b57c26bb498be592e871001ffed91541b4":"PAGE ACTION BY CONTENT SHOWS A PAGE ACTION FOR HTML PAGES CONTAINING THE WORD SANDWICH BACKGROUND_PAGE PAGE_ACTION CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.PAGEACTION.SHOW","80b86ccc6e8520660fa591caa565826f0ed1b12c":"PAGE ACTION BY URL SHOWS A PAGE ACTION FOR URLS WHICH HAVE THE LETTER G IN THEM. BACKGROUND_PAGE PAGE_ACTION TABS CHROME.PAGEACTION.SHOW CHROME.TABS.ONUPDATED","d74c3c18a1c1dd18b035149105a306f837c8823e":"PAGE BENCHMARKER CHROMIUM PAGE BENCHMARKER. BACKGROUND_PAGE BROWSER_ACTION OPTIONS_PAGE TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.BROWSERACTION.SETTITLE CHROME.EXTENSION.CONNECT CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.GETEXTENSIONTABS CHROME.EXTENSION.GETURL CHROME.EXTENSION.ONCONNECT CHROME.TABS.CREATE CHROME.TABS.EXECUTESCRIPT CHROME.TABS.GET CHROME.TABS.GETALLINWINDOW CHROME.TABS.GETSELECTED CHROME.TABS.REMOVE CHROME.TABS.UPDATE CHROME.WINDOWS.GET CHROME.WINDOWS.GETCURRENT","e6ae17ab4ccfd7e059c8c01f25760ca5d894c7fd":"PRINT THIS PAGE ADDS A PRINT BUTTON TO THE BROWSER. BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.TABS.UPDATE","beff6ecd9677dea0a7c648c5042165b48bb66f09":"PROCESS MONITOR ADDS A BROWSER ACTION THAT MONITORS RESOURCE USAGE OF ALL BROWSER PROCESSES. BROWSER_ACTION EXPERIMENTAL POPUP TABS CHROME.EXPERIMENTAL.PROCESSES.ONUPDATED","3e8e226d87e431296bb110b4f6eb7eec2ca7a826":"PROXY SETTINGS SET CHROME-SPECIFIC PROXIES; A DEMONSTRATION OF CHROMES PROXY API BACKGROUND_PAGE BROWSER_ACTION EXPERIMENTAL POPUP PROXY CHROME.BROWSERACTION.SETBADGEBACKGROUNDCOLOR CHROME.BROWSERACTION.SETBADGETEXT CHROME.BROWSERACTION.SETTITLE CHROME.EXPERIMENTAL.PROXY.ONPROXYERROR CHROME.EXTENSION.ISALLOWEDINCOGNITOACCESS CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.I18N.GETMESSAGE","56a8d2ac24ca7bba78fd88ad57f43fc13c784497":"SAMPLE - OAUTH CONTACTS USES OAUTH TO CONNECT TO GOOGLES CONTACTS SERVICE AND DISPLAY A LIST OF YOUR CONTACTS. BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.BROWSERACTION.SETICON CHROME.EXTENSION.GETBACKGROUNDPAGE CHROME.EXTENSION.GETURL CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.ONUPDATED CHROME.TABS.REMOVE","38f6e1e17756ede38b1364c7114a738ca717dcbb":"SANDWICHBAR SHOWS AN INFOBAR ON PAGES WHICH CONTAIN THE WORD SANDWICH BACKGROUND_PAGE EXPERIMENTAL CHROME.EXPERIMENTAL.INFOBARS.SHOW CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST","fc89b35755483af30b66cd72cefa34a43a3e8312":"SHOW TABS IN PROCESS ADDS A BROWSER ACTION SHOWING WHICH TABS SHARE THE CURRENT TABS PROCESS. BROWSER_ACTION EXPERIMENTAL POPUP TABS CHROME.EXPERIMENTAL.PROCESSES.GETPROCESSIDFORTAB CHROME.TABS.GET CHROME.TABS.GETSELECTED CHROME.TABS.UPDATE CHROME.WINDOWS.GET CHROME.WINDOWS.GETALL CHROME.WINDOWS.GETCURRENT CHROME.WINDOWS.UPDATE","230463f2d5c3d4d0ca13c230e1f00f2aae0a8a64":"TAB INSPECTOR UTILITY FOR WORKING WITH THE EXTENSION TABS API BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.EXTENSION.GETURL CHROME.TABS.CREATE CHROME.TABS.GET CHROME.TABS.GETALLINWINDOW CHROME.TABS.GETSELECTED CHROME.TABS.MOVE CHROME.TABS.ONATTACHED CHROME.TABS.ONCREATED CHROME.TABS.ONDETACHED CHROME.TABS.ONMOVED CHROME.TABS.ONREMOVED CHROME.TABS.ONSELECTIONCHANGED CHROME.TABS.ONUPDATED CHROME.TABS.REMOVE CHROME.TABS.UPDATE CHROME.WINDOWS.CREATE CHROME.WINDOWS.GET CHROME.WINDOWS.GETALL CHROME.WINDOWS.GETCURRENT CHROME.WINDOWS.GETLASTFOCUSED CHROME.WINDOWS.ONCREATED CHROME.WINDOWS.ONFOCUSCHANGED CHROME.WINDOWS.ONREMOVED CHROME.WINDOWS.REMOVE CHROME.WINDOWS.UPDATE","e1697cacebad05218798bf3e8a0f724517f0e8c3":"TEST SCREENSHOT EXTENSION DEMONSTRATE SCREENSHOT FUNCTIONALITY IN THE CHROME.TABS API. BACKGROUND_PAGE BROWSER_ACTION TABS CHROME.BROWSERACTION.ONCLICKED CHROME.EXTENSION.GETURL CHROME.EXTENSION.GETVIEWS CHROME.TABS.CAPTUREVISIBLETAB CHROME.TABS.CREATE CHROME.TABS.ONUPDATED","b3de91ab04b7d7a2670ca7ee9d740eb42cead0b6":"TYPED URL HISTORY READS YOUR HISTORY, AND SHOWS THE TOP TEN PAGES YOU GO TO BY TYPING THE URL. BROWSER_ACTION HISTORY TABS CHROME.HISTORY.GETVISITS CHROME.HISTORY.SEARCH CHROME.TABS.CREATE","a3c674f7eb93621c590562ad3fa04de4f03f53a0":"WEBNAVIGATION TECH DEMO DEMONSTRATION OF THE WEBNAVIGATION EXTENSION API. BACKGROUND_PAGE BROWSER_ACTION EXPERIMENTAL EXTENSION POPUP WEBNAVIGATION CHROME.EXPERIMENTAL.WEBNAVIGATION.ONBEFORENAVIGATE CHROME.EXPERIMENTAL.WEBNAVIGATION.ONBEFORERETARGET CHROME.EXPERIMENTAL.WEBNAVIGATION.ONCOMMITTED CHROME.EXPERIMENTAL.WEBNAVIGATION.ONCOMPLETED CHROME.EXPERIMENTAL.WEBNAVIGATION.ONERROROCCURRED CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST CHROME.I18N.GETMESSAGE","0fa4abe6545f0316fea7cfa07c53aa48c4f3d018":"`EXTENSION.ISALLOWED???ACCESS` EXAMPLE DEMONSTRATES THE `EXTENSION.ISALLOWED???ACCESS` APIS BROWSER_ACTION CHROME.EXTENSION.ISALLOWEDFILESCHEMEACCESS CHROME.EXTENSION.ISALLOWEDINCOGNITOACCESS"}</script> 317 <script src="js/sample_search.js"></script> 318 319 320 321 <div id="controls"> 322 <div id="searchbox" class="controlbox"> 323 <strong>Filter by keyword:</strong> 324 <input autofocus="" type="search" id="searchinput" placeholder="Type to search" onkeyup="filterSamples();"> 325 <a id="clearlink" href="javascript:void(0);" onclick="clearFilter();" style="display: none;">clear</a> 326 </div> 327 328 <div id="filterbox" class="controlbox"> 329 <strong>Filter by API:</strong> 330 <span> 331 <span> 332 <a href="javascript:void(0);" onclick="setFilter('chrome.bookmarks', this)">chrome.bookmarks</a><span>, </span> 333 </span><span> 334 <a href="javascript:void(0);" onclick="setFilter('chrome.browserAction', this)">chrome.browserAction</a><span>, </span> 335 </span><span> 336 <a href="javascript:void(0);" onclick="setFilter('chrome.contextMenus', this)">chrome.contextMenus</a><span>, </span> 337 </span><span> 338 <a href="javascript:void(0);" onclick="setFilter('chrome.cookies', this)">chrome.cookies</a><span>, </span> 339 </span><span> 340 <a href="javascript:void(0);" onclick="setFilter('chrome.experimental', this)">chrome.experimental</a><span>, </span> 341 </span><span> 342 <a href="javascript:void(0);" onclick="setFilter('chrome.extension', this)">chrome.extension</a><span>, </span> 343 </span><span> 344 <a href="javascript:void(0);" onclick="setFilter('chrome.history', this)">chrome.history</a><span>, </span> 345 </span><span> 346 <a href="javascript:void(0);" onclick="setFilter('chrome.i18n', this)">chrome.i18n</a><span>, </span> 347 </span><span> 348 <a href="javascript:void(0);" onclick="setFilter('chrome.idle', this)">chrome.idle</a><span>, </span> 349 </span><span> 350 <a href="javascript:void(0);" onclick="setFilter('chrome.management', this)">chrome.management</a><span>, </span> 351 </span><span> 352 <a href="javascript:void(0);" onclick="setFilter('chrome.omnibox', this)">chrome.omnibox</a><span>, </span> 353 </span><span> 354 <a href="javascript:void(0);" onclick="setFilter('chrome.pageAction', this)">chrome.pageAction</a><span>, </span> 355 </span><span> 356 <a href="javascript:void(0);" onclick="setFilter('chrome.tabs', this)">chrome.tabs</a><span>, </span> 357 </span><span> 358 <a href="javascript:void(0);" onclick="setFilter('chrome.windows', this)">chrome.windows</a><span style="display: none; ">, </span> 359 </span> 360 </span> 361 </div> 362 </div> 363 364 <div class="sample" id="0262260daf0c8f7b28feff2ef23b05e7abf9d1e0"> 365 <img class="icon" style="display: none; "> 366 <img class="icon" src="images/sample-default-icon.png"> 367 <h2 class="name"> 368 <a href="#0262260daf0c8f7b28feff2ef23b05e7abf9d1e0">A browser action which changes its icon when clicked.</a> 369 </h2> 370 <p class="metadata features">Uses 371 <span> 372 <strong>background_page</strong><span>, </span> 373 <span style="display: none; "> and</span> 374 </span><span> 375 <strong>browser_action</strong><span style="display: none; ">, </span> 376 <span> and</span> 377 </span><span> 378 <strong>tabs</strong><span style="display: none; ">, </span> 379 <span style="display: none; "> and</span> 380 </span> 381 </p> 382 <p></p> 383 <div class="apicalls"><strong>Calls:</strong> 384 <ul> 385 <li> 386 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 387 </li><li> 388 <code><a href="browserAction.html#method-setIcon">chrome.browserAction.setIcon</a></code> 389 </li> 390 </ul> 391 </div> 392 <div class="sourcefiles"><strong>Source files:</strong> 393 <ul> 394 <li> 395 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_icon_path/background.html?content-type=text/plain">background.html</a></code> 396 </li><li> 397 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_icon_path/manifest.json?content-type=text/plain">manifest.json</a></code> 398 </li> 399 </ul> 400 </div> 401 <div> 402 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_icon_path/">Browse source</a> 403 - <a href="examples/api/browserAction/set_icon_path.zip">Download source</a> 404 </div> 405 </div><div class="sample" id="ea2894c41cb8e80a4433a3e6c5772dadce9be90d"> 406 <img class="icon" style="display: none; "> 407 <img class="icon" src="images/sample-default-icon.png"> 408 <h2 class="name"> 409 <a href="#ea2894c41cb8e80a4433a3e6c5772dadce9be90d">A browser action with a popup that changes the page color.</a> 410 </h2> 411 <p class="metadata features">Uses 412 <span> 413 <strong>browser_action</strong><span>, </span> 414 <span style="display: none; "> and</span> 415 </span><span> 416 <strong>popup</strong><span style="display: none; ">, </span> 417 <span> and</span> 418 </span><span> 419 <strong>tabs</strong><span style="display: none; ">, </span> 420 <span style="display: none; "> and</span> 421 </span> 422 </p> 423 <p></p> 424 <div class="apicalls"><strong>Calls:</strong> 425 <ul> 426 <li> 427 <code><a href="tabs.html#method-executeScript">chrome.tabs.executeScript</a></code> 428 </li> 429 </ul> 430 </div> 431 <div class="sourcefiles"><strong>Source files:</strong> 432 <ul> 433 <li> 434 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_page_color/manifest.json?content-type=text/plain">manifest.json</a></code> 435 </li><li> 436 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_page_color/popup.html?content-type=text/plain">popup.html</a></code> 437 </li> 438 </ul> 439 </div> 440 <div> 441 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_page_color/">Browse source</a> 442 - <a href="examples/api/browserAction/set_page_color.zip">Download source</a> 443 </div> 444 </div><div class="sample" id="ede3c47b7757245be42ec33fd5ca63df4b490066"> 445 <img class="icon" style="display: none; "> 446 <img class="icon" src="images/sample-default-icon.png"> 447 <h2 class="name"> 448 <a href="#ede3c47b7757245be42ec33fd5ca63df4b490066">A browser action with no icon that makes the page red</a> 449 </h2> 450 <p class="metadata features">Uses 451 <span> 452 <strong>background_page</strong><span>, </span> 453 <span style="display: none; "> and</span> 454 </span><span> 455 <strong>browser_action</strong><span style="display: none; ">, </span> 456 <span> and</span> 457 </span><span> 458 <strong>tabs</strong><span style="display: none; ">, </span> 459 <span style="display: none; "> and</span> 460 </span> 461 </p> 462 <p></p> 463 <div class="apicalls"><strong>Calls:</strong> 464 <ul> 465 <li> 466 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 467 </li><li> 468 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 469 </li><li> 470 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 471 </li><li> 472 <code><a href="tabs.html#method-executeScript">chrome.tabs.executeScript</a></code> 473 </li> 474 </ul> 475 </div> 476 <div class="sourcefiles"><strong>Source files:</strong> 477 <ul> 478 <li> 479 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/make_page_red/background.html?content-type=text/plain">background.html</a></code> 480 </li><li> 481 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/make_page_red/manifest.json?content-type=text/plain">manifest.json</a></code> 482 </li> 483 </ul> 484 </div> 485 <div> 486 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/make_page_red/">Browse source</a> 487 - <a href="examples/api/browserAction/make_page_red.zip">Download source</a> 488 </div> 489 </div><div class="sample" id="fbf0aa1a09a15ff8cc4fc7de4fd176d6c663d07a"> 490 <img class="icon" style="display: none; "> 491 <img class="icon" src="images/sample-default-icon.png"> 492 <h2 class="name"> 493 <a href="#fbf0aa1a09a15ff8cc4fc7de4fd176d6c663d07a">AcceptLanguage</a> 494 </h2> 495 <p class="metadata features">Uses 496 <span> 497 <strong>browser_action</strong><span style="display: none; ">, </span> 498 <span> and</span> 499 </span><span> 500 <strong>popup</strong><span style="display: none; ">, </span> 501 <span style="display: none; "> and</span> 502 </span> 503 </p> 504 <p>Returns accept languages of the browser</p> 505 <div class="apicalls"><strong>Calls:</strong> 506 <ul> 507 <li> 508 <code><a href="i18n.html#method-getAcceptLanguages">chrome.i18n.getAcceptLanguages</a></code> 509 </li><li> 510 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 511 </li> 512 </ul> 513 </div> 514 <div class="sourcefiles"><strong>Source files:</strong> 515 <ul> 516 <li> 517 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/_locales/en_US/messages.json?content-type=text/plain">_locales/en_US/messages.json</a></code> 518 </li><li> 519 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/_locales/es/messages.json?content-type=text/plain">_locales/es/messages.json</a></code> 520 </li><li> 521 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/_locales/sr/messages.json?content-type=text/plain">_locales/sr/messages.json</a></code> 522 </li><li> 523 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/manifest.json?content-type=text/plain">manifest.json</a></code> 524 </li><li> 525 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.html?content-type=text/plain">popup.html</a></code> 526 </li> 527 </ul> 528 </div> 529 <div> 530 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/">Browse source</a> 531 - <a href="examples/api/i18n/getMessage.zip">Download source</a> 532 </div> 533 </div><div class="sample" id="9a6e4ec46997fb92b324974afa08a3d007e2537f"> 534 <img class="icon" style="display: none; "> 535 <img class="icon" src="images/sample-default-icon.png"> 536 <h2 class="name"> 537 <a href="#9a6e4ec46997fb92b324974afa08a3d007e2537f">Animated Page Action</a> 538 </h2> 539 <p class="metadata features">Uses 540 <span> 541 <strong>background_page</strong><span>, </span> 542 <span style="display: none; "> and</span> 543 </span><span> 544 <strong>page_action</strong><span style="display: none; ">, </span> 545 <span> and</span> 546 </span><span> 547 <strong>tabs</strong><span style="display: none; ">, </span> 548 <span style="display: none; "> and</span> 549 </span> 550 </p> 551 <p>This extension adds an animated browser action to the toolbar.</p> 552 <div class="apicalls"><strong>Calls:</strong> 553 <ul> 554 <li> 555 <code><a href="pageAction.html#method-hide">chrome.pageAction.hide</a></code> 556 </li><li> 557 <code><a href="pageAction.html#event-onClicked">chrome.pageAction.onClicked</a></code> 558 </li><li> 559 <code><a href="pageAction.html#method-setIcon">chrome.pageAction.setIcon</a></code> 560 </li><li> 561 <code><a href="pageAction.html#method-setTitle">chrome.pageAction.setTitle</a></code> 562 </li><li> 563 <code><a href="pageAction.html#method-show">chrome.pageAction.show</a></code> 564 </li><li> 565 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 566 </li><li> 567 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 568 </li><li> 569 <code><a href="tabs.html#event-onSelectionChanged">chrome.tabs.onSelectionChanged</a></code> 570 </li> 571 </ul> 572 </div> 573 <div class="sourcefiles"><strong>Source files:</strong> 574 <ul> 575 <li> 576 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/set_icon/background.html?content-type=text/plain">background.html</a></code> 577 </li><li> 578 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/set_icon/manifest.json?content-type=text/plain">manifest.json</a></code> 579 </li> 580 </ul> 581 </div> 582 <div> 583 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/set_icon/">Browse source</a> 584 - <a href="examples/api/pageAction/set_icon.zip">Download source</a> 585 </div> 586 </div><div class="sample" id="a1f7cf79dd555b04fa8d603247a040e644996293"> 587 <img class="icon" style="display: none; "> 588 <img class="icon" src="images/sample-default-icon.png"> 589 <h2 class="name"> 590 <a href="#a1f7cf79dd555b04fa8d603247a040e644996293">App Launcher</a> 591 </h2> 592 <p class="metadata features">Uses 593 <span> 594 <strong>browser_action</strong><span style="display: none; ">, </span> 595 <span> and</span> 596 </span><span> 597 <strong>management</strong><span style="display: none; ">, </span> 598 <span style="display: none; "> and</span> 599 </span> 600 </p> 601 <p></p> 602 <div class="apicalls"><strong>Calls:</strong> 603 <ul> 604 <li> 605 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 606 </li><li> 607 <code><a href="management.html#method-get">chrome.management.get</a></code> 608 </li><li> 609 <code><a href="management.html#method-getAll">chrome.management.getAll</a></code> 610 </li><li> 611 <code><a href="management.html#method-launchApp">chrome.management.launchApp</a></code> 612 </li><li> 613 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 614 </li> 615 </ul> 616 </div> 617 <div class="sourcefiles"><strong>Source files:</strong> 618 <ul> 619 <li> 620 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/manifest.json?content-type=text/plain">manifest.json</a></code> 621 </li><li> 622 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/popup.css?content-type=text/plain">popup.css</a></code> 623 </li><li> 624 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/popup.html?content-type=text/plain">popup.html</a></code> 625 </li><li> 626 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/popup.js?content-type=text/plain">popup.js</a></code> 627 </li> 628 </ul> 629 </div> 630 <div> 631 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/">Browse source</a> 632 - <a href="examples/extensions/app_launcher.zip">Download source</a> 633 </div> 634 </div><div class="sample" id="9747e3d6a3eab39bc7c17f11a80573c62d44c7e5"> 635 <img class="icon" style="display: none; "> 636 <img class="icon" src="images/sample-default-icon.png"> 637 <h2 class="name"> 638 <a href="#9747e3d6a3eab39bc7c17f11a80573c62d44c7e5">Blank new tab page</a> 639 </h2> 640 <p class="metadata features">Uses 641 <span> 642 <strong>chrome_url_overrides</strong><span style="display: none; ">, </span> 643 <span style="display: none; "> and</span> 644 </span> 645 </p> 646 <p></p> 647 <div class="apicalls" style="display: none; "><strong>Calls:</strong> 648 <ul> 649 <li> 650 <code><a></a></code> 651 </li> 652 </ul> 653 </div> 654 <div class="sourcefiles"><strong>Source files:</strong> 655 <ul> 656 <li> 657 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/blank_ntp/blank.html?content-type=text/plain">blank.html</a></code> 658 </li><li> 659 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/blank_ntp/manifest.json?content-type=text/plain">manifest.json</a></code> 660 </li> 661 </ul> 662 </div> 663 <div> 664 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/blank_ntp/">Browse source</a> 665 - <a href="examples/api/override/blank_ntp.zip">Download source</a> 666 </div> 667 </div><div class="sample" id="903e7277139e1e6caec123d3319cab295d8d1b3a"> 668 <img class="icon" src="examples/extensions/fx/icon.png"> 669 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 670 <h2 class="name"> 671 <a href="#903e7277139e1e6caec123d3319cab295d8d1b3a">Chrome Sounds</a> 672 </h2> 673 <p class="metadata features">Uses 674 <span> 675 <strong>background_page</strong><span>, </span> 676 <span style="display: none; "> and</span> 677 </span><span> 678 <strong>bookmarks</strong><span>, </span> 679 <span style="display: none; "> and</span> 680 </span><span> 681 <strong>options_page</strong><span style="display: none; ">, </span> 682 <span> and</span> 683 </span><span> 684 <strong>tabs</strong><span style="display: none; ">, </span> 685 <span style="display: none; "> and</span> 686 </span> 687 </p> 688 <p>Enjoy a more magical and immersive experience when browsing the web using the power of sound.</p> 689 <div class="apicalls"><strong>Calls:</strong> 690 <ul> 691 <li> 692 <code><a href="bookmarks.html#event-onCreated">chrome.bookmarks.onCreated</a></code> 693 </li><li> 694 <code><a href="bookmarks.html#event-onMoved">chrome.bookmarks.onMoved</a></code> 695 </li><li> 696 <code><a href="bookmarks.html#event-onRemoved">chrome.bookmarks.onRemoved</a></code> 697 </li><li> 698 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 699 </li><li> 700 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 701 </li><li> 702 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 703 </li><li> 704 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 705 </li><li> 706 <code><a href="tabs.html#event-onAttached">chrome.tabs.onAttached</a></code> 707 </li><li> 708 <code><a href="tabs.html#event-onCreated">chrome.tabs.onCreated</a></code> 709 </li><li> 710 <code><a href="tabs.html#event-onDetached">chrome.tabs.onDetached</a></code> 711 </li><li> 712 <code><a href="tabs.html#event-onMoved">chrome.tabs.onMoved</a></code> 713 </li><li> 714 <code><a href="tabs.html#event-onRemoved">chrome.tabs.onRemoved</a></code> 715 </li><li> 716 <code><a href="tabs.html#event-onSelectionChanged">chrome.tabs.onSelectionChanged</a></code> 717 </li><li> 718 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 719 </li><li> 720 <code><a href="windows.html#event-onCreated">chrome.windows.onCreated</a></code> 721 </li><li> 722 <code><a href="windows.html#event-onFocusChanged">chrome.windows.onFocusChanged</a></code> 723 </li><li> 724 <code><a href="windows.html#event-onRemoved">chrome.windows.onRemoved</a></code> 725 </li> 726 </ul> 727 </div> 728 <div class="sourcefiles"><strong>Source files:</strong> 729 <ul> 730 <li> 731 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/bg.html?content-type=text/plain">bg.html</a></code> 732 </li><li> 733 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/bg.js?content-type=text/plain">bg.js</a></code> 734 </li><li> 735 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/content.js?content-type=text/plain">content.js</a></code> 736 </li><li> 737 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/manifest.json?content-type=text/plain">manifest.json</a></code> 738 </li><li> 739 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/options.html?content-type=text/plain">options.html</a></code> 740 </li> 741 </ul> 742 </div> 743 <div> 744 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/">Browse source</a> 745 - <a href="examples/extensions/fx.zip">Download source</a> 746 </div> 747 </div><div class="sample" id="0e790e035a4a00b6f1def5ef9a7d7be1bce95ab5"> 748 <img class="icon" src="examples/extensions/buildbot/icon.png"> 749 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 750 <h2 class="name"> 751 <a href="#0e790e035a4a00b6f1def5ef9a7d7be1bce95ab5">Chromium Buildbot Monitor</a> 752 </h2> 753 <p class="metadata features">Uses 754 <span> 755 <strong>background_page</strong><span>, </span> 756 <span style="display: none; "> and</span> 757 </span><span> 758 <strong>browser_action</strong><span>, </span> 759 <span style="display: none; "> and</span> 760 </span><span> 761 <strong>notifications</strong><span>, </span> 762 <span style="display: none; "> and</span> 763 </span><span> 764 <strong>options_page</strong><span style="display: none; ">, </span> 765 <span> and</span> 766 </span><span> 767 <strong>popup</strong><span style="display: none; ">, </span> 768 <span style="display: none; "> and</span> 769 </span> 770 </p> 771 <p>Displays the status of the Chromium buildbot in the toolbar. Click to see more detailed status in a popup.</p> 772 <div class="apicalls"><strong>Calls:</strong> 773 <ul> 774 <li> 775 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 776 </li><li> 777 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 778 </li><li> 779 <code><a href="browserAction.html#method-setTitle">chrome.browserAction.setTitle</a></code> 780 </li><li> 781 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 782 </li> 783 </ul> 784 </div> 785 <div class="sourcefiles"><strong>Source files:</strong> 786 <ul> 787 <li> 788 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/bg.html?content-type=text/plain">bg.html</a></code> 789 </li><li> 790 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/manifest.json?content-type=text/plain">manifest.json</a></code> 791 </li><li> 792 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/options.html?content-type=text/plain">options.html</a></code> 793 </li><li> 794 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/popup.html?content-type=text/plain">popup.html</a></code> 795 </li> 796 </ul> 797 </div> 798 <div> 799 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/">Browse source</a> 800 - <a href="examples/extensions/buildbot.zip">Download source</a> 801 </div> 802 </div><div class="sample" id="ac31228200b41a87982e386cc90d3a6eee4ad885"> 803 <img class="icon" style="display: none; "> 804 <img class="icon" src="images/sample-default-icon.png"> 805 <h2 class="name"> 806 <a href="#ac31228200b41a87982e386cc90d3a6eee4ad885">Chromium Search</a> 807 </h2> 808 <p class="metadata features">Uses 809 <span> 810 <strong>background_page</strong><span style="display: none; ">, </span> 811 <span> and</span> 812 </span><span> 813 <strong>tabs</strong><span style="display: none; ">, </span> 814 <span style="display: none; "> and</span> 815 </span> 816 </p> 817 <p>Add support to the omnibox to search the Chromium source code.</p> 818 <div class="apicalls"><strong>Calls:</strong> 819 <ul> 820 <li> 821 <code><a href="omnibox.html#event-onInputCancelled">chrome.omnibox.onInputCancelled</a></code> 822 </li><li> 823 <code><a href="omnibox.html#event-onInputChanged">chrome.omnibox.onInputChanged</a></code> 824 </li><li> 825 <code><a href="omnibox.html#event-onInputEntered">chrome.omnibox.onInputEntered</a></code> 826 </li><li> 827 <code><a href="omnibox.html#event-onInputStarted">chrome.omnibox.onInputStarted</a></code> 828 </li><li> 829 <code><a href="omnibox.html#method-setDefaultSuggestion">chrome.omnibox.setDefaultSuggestion</a></code> 830 </li><li> 831 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 832 </li><li> 833 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 834 </li><li> 835 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 836 </li> 837 </ul> 838 </div> 839 <div class="sourcefiles"><strong>Source files:</strong> 840 <ul> 841 <li> 842 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/chrome_search/background.html?content-type=text/plain">background.html</a></code> 843 </li><li> 844 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/chrome_search/manifest.json?content-type=text/plain">manifest.json</a></code> 845 </li> 846 </ul> 847 </div> 848 <div> 849 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/chrome_search/">Browse source</a> 850 - <a href="examples/extensions/chrome_search.zip">Download source</a> 851 </div> 852 </div><div class="sample" id="7d5d6cf195bc25480256618e360aa38c6e6fba82"> 853 <img class="icon" style="display: none; "> 854 <img class="icon" src="images/sample-default-icon.png"> 855 <h2 class="name"> 856 <a href="#7d5d6cf195bc25480256618e360aa38c6e6fba82">CLD</a> 857 </h2> 858 <p class="metadata features">Uses 859 <span> 860 <strong>background_page</strong><span>, </span> 861 <span style="display: none; "> and</span> 862 </span><span> 863 <strong>browser_action</strong><span style="display: none; ">, </span> 864 <span> and</span> 865 </span><span> 866 <strong>tabs</strong><span style="display: none; ">, </span> 867 <span style="display: none; "> and</span> 868 </span> 869 </p> 870 <p>Displays the language of a tab</p> 871 <div class="apicalls"><strong>Calls:</strong> 872 <ul> 873 <li> 874 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 875 </li><li> 876 <code><a href="tabs.html#method-detectLanguage">chrome.tabs.detectLanguage</a></code> 877 </li><li> 878 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 879 </li><li> 880 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 881 </li><li> 882 <code><a href="tabs.html#event-onSelectionChanged">chrome.tabs.onSelectionChanged</a></code> 883 </li><li> 884 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 885 </li> 886 </ul> 887 </div> 888 <div class="sourcefiles"><strong>Source files:</strong> 889 <ul> 890 <li> 891 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/cld/background.html?content-type=text/plain">background.html</a></code> 892 </li><li> 893 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/cld/manifest.json?content-type=text/plain">manifest.json</a></code> 894 </li> 895 </ul> 896 </div> 897 <div> 898 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/cld/">Browse source</a> 899 - <a href="examples/api/i18n/cld.zip">Download source</a> 900 </div> 901 </div><div class="sample" id="5d81304a17cf7ac2887484f730fbd2b01e51e166"> 902 <img class="icon" style="display: none; "> 903 <img class="icon" src="images/sample-default-icon.png"> 904 <h2 class="name"> 905 <a href="#5d81304a17cf7ac2887484f730fbd2b01e51e166">Context Menus Sample</a> 906 </h2> 907 <p class="metadata features">Uses 908 <span> 909 <strong>background_page</strong><span style="display: none; ">, </span> 910 <span> and</span> 911 </span><span> 912 <strong>contextMenus</strong><span style="display: none; ">, </span> 913 <span style="display: none; "> and</span> 914 </span> 915 </p> 916 <p>Shows some of the features of the Context Menus API</p> 917 <div class="apicalls"><strong>Calls:</strong> 918 <ul> 919 <li> 920 <code><a href="contextMenus.html#method-create">chrome.contextMenus.create</a></code> 921 </li> 922 </ul> 923 </div> 924 <div class="sourcefiles"><strong>Source files:</strong> 925 <ul> 926 <li> 927 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/background.html?content-type=text/plain">background.html</a></code> 928 </li><li> 929 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/manifest.json?content-type=text/plain">manifest.json</a></code> 930 </li><li> 931 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js?content-type=text/plain">sample.js</a></code> 932 </li> 933 </ul> 934 </div> 935 <div> 936 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/">Browse source</a> 937 - <a href="examples/api/contextMenus/basic.zip">Download source</a> 938 </div> 939 </div><div class="sample" id="4daa6becd0899a54776d9cf7f09613ed1a9f4d77"> 940 <img class="icon" src="examples/api/cookies/cookie.png"> 941 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 942 <h2 class="name"> 943 <a href="#4daa6becd0899a54776d9cf7f09613ed1a9f4d77">Cookie API Test Extension</a> 944 </h2> 945 <p class="metadata features">Uses 946 <span> 947 <strong>background_page</strong><span>, </span> 948 <span style="display: none; "> and</span> 949 </span><span> 950 <strong>browser_action</strong><span>, </span> 951 <span style="display: none; "> and</span> 952 </span><span> 953 <strong>cookies</strong><span style="display: none; ">, </span> 954 <span> and</span> 955 </span><span> 956 <strong>tabs</strong><span style="display: none; ">, </span> 957 <span style="display: none; "> and</span> 958 </span> 959 </p> 960 <p>Testing Cookie API</p> 961 <div class="apicalls"><strong>Calls:</strong> 962 <ul> 963 <li> 964 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 965 </li><li> 966 <code><a href="cookies.html#method-get">chrome.cookies.get</a></code> 967 </li><li> 968 <code><a href="cookies.html#method-getAll">chrome.cookies.getAll</a></code> 969 </li><li> 970 <code><a href="cookies.html#event-onChanged">chrome.cookies.onChanged</a></code> 971 </li><li> 972 <code><a href="cookies.html#method-remove">chrome.cookies.remove</a></code> 973 </li><li> 974 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 975 </li><li> 976 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 977 </li><li> 978 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 979 </li><li> 980 <code><a href="windows.html#method-get">chrome.windows.get</a></code> 981 </li><li> 982 <code><a href="windows.html#method-getAll">chrome.windows.getAll</a></code> 983 </li> 984 </ul> 985 </div> 986 <div class="sourcefiles"><strong>Source files:</strong> 987 <ul> 988 <li> 989 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/background.html?content-type=text/plain">background.html</a></code> 990 </li><li> 991 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/manager.html?content-type=text/plain">manager.html</a></code> 992 </li><li> 993 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/manifest.json?content-type=text/plain">manifest.json</a></code> 994 </li> 995 </ul> 996 </div> 997 <div> 998 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">Browse source</a> 999 - <a href="examples/api/cookies.zip">Download source</a> 1000 </div> 1001 </div><div class="sample" id="6871d09f4a96bf9d4b6cc724d00e909cee0f3902"> 1002 <img class="icon" src="examples/howto/contentscript_xhr/sample-128.png"> 1003 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1004 <h2 class="name"> 1005 <a href="#6871d09f4a96bf9d4b6cc724d00e909cee0f3902">Cross-domain XMLHttpRequest from a content script</a> 1006 </h2> 1007 <p class="metadata features">Uses 1008 <span> 1009 <strong>background_page</strong><span style="display: none; ">, </span> 1010 <span style="display: none; "> and</span> 1011 </span> 1012 </p> 1013 <p>Demonstrates a method to make a cross-domain XMLHttpRequest fetch from a content script. This extension fetches the current trending topics from Twitter and inserts them in an overlay at the top of Google News. Visit http://news.google.com to test this extension.</p> 1014 <div class="apicalls"><strong>Calls:</strong> 1015 <ul> 1016 <li> 1017 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 1018 </li><li> 1019 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 1020 </li> 1021 </ul> 1022 </div> 1023 <div class="sourcefiles"><strong>Source files:</strong> 1024 <ul> 1025 <li> 1026 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html?content-type=text/plain">background.html</a></code> 1027 </li><li> 1028 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/contentscript.js?content-type=text/plain">contentscript.js</a></code> 1029 </li><li> 1030 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json?content-type=text/plain">manifest.json</a></code> 1031 </li> 1032 </ul> 1033 </div> 1034 <div> 1035 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/">Browse source</a> 1036 - <a href="examples/howto/contentscript_xhr.zip">Download source</a> 1037 </div> 1038 </div><div class="sample" id="028eb5364924344029bcbe1d527f132fc72b34e5"> 1039 <img class="icon" src="examples/extensions/email_this_page/mail_128x128.png"> 1040 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1041 <h2 class="name"> 1042 <a href="#028eb5364924344029bcbe1d527f132fc72b34e5">Email this page (by Google)</a> 1043 </h2> 1044 <p class="metadata features">Uses 1045 <span> 1046 <strong>background_page</strong><span>, </span> 1047 <span style="display: none; "> and</span> 1048 </span><span> 1049 <strong>browser_action</strong><span>, </span> 1050 <span style="display: none; "> and</span> 1051 </span><span> 1052 <strong>options_page</strong><span style="display: none; ">, </span> 1053 <span> and</span> 1054 </span><span> 1055 <strong>tabs</strong><span style="display: none; ">, </span> 1056 <span style="display: none; "> and</span> 1057 </span> 1058 </p> 1059 <p>This extension adds an email button to the toolbar which allows you to email the page link using your default mail client or Gmail.</p> 1060 <div class="apicalls"><strong>Calls:</strong> 1061 <ul> 1062 <li> 1063 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 1064 </li><li> 1065 <code><a href="extension.html#method-connect">chrome.extension.connect</a></code> 1066 </li><li> 1067 <code><a href="extension.html#event-onConnect">chrome.extension.onConnect</a></code> 1068 </li><li> 1069 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1070 </li><li> 1071 <code><a href="tabs.html#method-executeScript">chrome.tabs.executeScript</a></code> 1072 </li><li> 1073 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 1074 </li> 1075 </ul> 1076 </div> 1077 <div class="sourcefiles"><strong>Source files:</strong> 1078 <ul> 1079 <li> 1080 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/background.html?content-type=text/plain">background.html</a></code> 1081 </li><li> 1082 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/content_script.js?content-type=text/plain">content_script.js</a></code> 1083 </li><li> 1084 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/manifest.json?content-type=text/plain">manifest.json</a></code> 1085 </li><li> 1086 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/options.html?content-type=text/plain">options.html</a></code> 1087 </li> 1088 </ul> 1089 </div> 1090 <div> 1091 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/">Browse source</a> 1092 - <a href="examples/extensions/email_this_page.zip">Download source</a> 1093 </div> 1094 </div><div class="sample" id="0bf0930a32829dfb77170535ecb27adc2de3998a"> 1095 <img class="icon" style="display: none; "> 1096 <img class="icon" src="images/sample-default-icon.png"> 1097 <h2 class="name"> 1098 <a href="#0bf0930a32829dfb77170535ecb27adc2de3998a">Enable/disable referrers API example extension</a> 1099 </h2> 1100 <p class="metadata features">Uses 1101 <span> 1102 <strong>browser_action</strong><span>, </span> 1103 <span style="display: none; "> and</span> 1104 </span><span> 1105 <strong>contentSettings</strong><span>, </span> 1106 <span style="display: none; "> and</span> 1107 </span><span> 1108 <strong>experimental</strong><span style="display: none; ">, </span> 1109 <span> and</span> 1110 </span><span> 1111 <strong>popup</strong><span style="display: none; ">, </span> 1112 <span style="display: none; "> and</span> 1113 </span> 1114 </p> 1115 <p>Sample extension which demonstrates how to access a preference.</p> 1116 <div class="apicalls"><strong>Calls:</strong> 1117 <ul> 1118 <li> 1119 <code><a href="extension.html#method-isAllowedIncognitoAccess">chrome.extension.isAllowedIncognitoAccess</a></code> 1120 </li> 1121 </ul> 1122 </div> 1123 <div class="sourcefiles"><strong>Source files:</strong> 1124 <ul> 1125 <li> 1126 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/manifest.json?content-type=text/plain">manifest.json</a></code> 1127 </li><li> 1128 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/popup.html?content-type=text/plain">popup.html</a></code> 1129 </li> 1130 </ul> 1131 </div> 1132 <div> 1133 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/">Browse source</a> 1134 - <a href="examples/api/preferences/enableReferrer.zip">Download source</a> 1135 </div> 1136 </div><div class="sample" id="763a08e9b06595d785568a8d392b95a2f3700258"> 1137 <img class="icon" src="examples/tutorials/analytics/analytics-extension-icon-128.png"> 1138 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1139 <h2 class="name"> 1140 <a href="#763a08e9b06595d785568a8d392b95a2f3700258">Event Tracking with Google Analytics</a> 1141 </h2> 1142 <p class="metadata features">Uses 1143 <span> 1144 <strong>background_page</strong><span>, </span> 1145 <span style="display: none; "> and</span> 1146 </span><span> 1147 <strong>browser_action</strong><span style="display: none; ">, </span> 1148 <span> and</span> 1149 </span><span> 1150 <strong>popup</strong><span style="display: none; ">, </span> 1151 <span style="display: none; "> and</span> 1152 </span> 1153 </p> 1154 <p>A sample extension which uses Google Analytics to track usage.</p> 1155 <div class="apicalls" style="display: none; "><strong>Calls:</strong> 1156 <ul> 1157 <li> 1158 <code><a></a></code> 1159 </li> 1160 </ul> 1161 </div> 1162 <div class="sourcefiles"><strong>Source files:</strong> 1163 <ul> 1164 <li> 1165 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js?content-type=text/plain">analytics.js</a></code> 1166 </li><li> 1167 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/background.html?content-type=text/plain">background.html</a></code> 1168 </li><li> 1169 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/manifest.json?content-type=text/plain">manifest.json</a></code> 1170 </li><li> 1171 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/popup.html?content-type=text/plain">popup.html</a></code> 1172 </li> 1173 </ul> 1174 </div> 1175 <div> 1176 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/">Browse source</a> 1177 - <a href="examples/tutorials/analytics.zip">Download source</a> 1178 </div> 1179 </div><div class="sample" id="e3df888a89e35bdeb9c8bc8d03be5e1851b97c68"> 1180 <img class="icon" src="examples/api/omnibox/extension-docs/icon-128.png"> 1181 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1182 <h2 class="name"> 1183 <a href="#e3df888a89e35bdeb9c8bc8d03be5e1851b97c68">Extension Docs Search</a> 1184 </h2> 1185 <p class="metadata features">Uses 1186 <span> 1187 <strong>background_page</strong><span style="display: none; ">, </span> 1188 <span> and</span> 1189 </span><span> 1190 <strong>tabs</strong><span style="display: none; ">, </span> 1191 <span style="display: none; "> and</span> 1192 </span> 1193 </p> 1194 <p>Search the Chrome Extensions documentation. To use, type 'crdoc' plus a search term into the Omnibox.</p> 1195 <div class="apicalls"><strong>Calls:</strong> 1196 <ul> 1197 <li> 1198 <code><a href="omnibox.html#event-onInputChanged">chrome.omnibox.onInputChanged</a></code> 1199 </li><li> 1200 <code><a href="omnibox.html#event-onInputEntered">chrome.omnibox.onInputEntered</a></code> 1201 </li><li> 1202 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1203 </li><li> 1204 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1205 </li><li> 1206 <code><a href="tabs.html#event-onRemoved">chrome.tabs.onRemoved</a></code> 1207 </li><li> 1208 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 1209 </li> 1210 </ul> 1211 </div> 1212 <div class="sourcefiles"><strong>Source files:</strong> 1213 <ul> 1214 <li> 1215 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/extension-docs/background.html?content-type=text/plain">background.html</a></code> 1216 </li><li> 1217 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/extension-docs/manifest.json?content-type=text/plain">manifest.json</a></code> 1218 </li> 1219 </ul> 1220 </div> 1221 <div> 1222 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/extension-docs/">Browse source</a> 1223 - <a href="examples/api/omnibox/extension-docs.zip">Download source</a> 1224 </div> 1225 </div><div class="sample" id="8b0dd31216235941bdd8eb33fda915ef5cf79a82"> 1226 <img class="icon" src="examples/extensions/calendar/images/icon-128.gif"> 1227 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1228 <h2 class="name"> 1229 <a href="#8b0dd31216235941bdd8eb33fda915ef5cf79a82">Google Calendar Checker (by Google)</a> 1230 </h2> 1231 <p class="metadata features">Uses 1232 <span> 1233 <strong>background_page</strong><span>, </span> 1234 <span style="display: none; "> and</span> 1235 </span><span> 1236 <strong>browser_action</strong><span>, </span> 1237 <span style="display: none; "> and</span> 1238 </span><span> 1239 <strong>options_page</strong><span style="display: none; ">, </span> 1240 <span> and</span> 1241 </span><span> 1242 <strong>tabs</strong><span style="display: none; ">, </span> 1243 <span style="display: none; "> and</span> 1244 </span> 1245 </p> 1246 <p>Quickly see the time until your next meeting from any of your calendars. Click on the button to be taken to your calendar.</p> 1247 <div class="apicalls"><strong>Calls:</strong> 1248 <ul> 1249 <li> 1250 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 1251 </li><li> 1252 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 1253 </li><li> 1254 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 1255 </li><li> 1256 <code><a href="browserAction.html#method-setIcon">chrome.browserAction.setIcon</a></code> 1257 </li><li> 1258 <code><a href="browserAction.html#method-setTitle">chrome.browserAction.setTitle</a></code> 1259 </li><li> 1260 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1261 </li><li> 1262 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 1263 </li><li> 1264 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 1265 </li><li> 1266 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 1267 </li><li> 1268 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1269 </li><li> 1270 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1271 </li><li> 1272 <code><a href="tabs.html#method-getAllInWindow">chrome.tabs.getAllInWindow</a></code> 1273 </li><li> 1274 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 1275 </li><li> 1276 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 1277 </li> 1278 </ul> 1279 </div> 1280 <div class="sourcefiles"><strong>Source files:</strong> 1281 <ul> 1282 <li> 1283 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 1284 </li><li> 1285 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/javascript/background.js?content-type=text/plain">javascript/background.js</a></code> 1286 </li><li> 1287 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/javascript/options.js?content-type=text/plain">javascript/options.js</a></code> 1288 </li><li> 1289 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/javascript/util.js?content-type=text/plain">javascript/util.js</a></code> 1290 </li><li> 1291 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/manifest.json?content-type=text/plain">manifest.json</a></code> 1292 </li><li> 1293 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/views/background.html?content-type=text/plain">views/background.html</a></code> 1294 </li><li> 1295 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/views/options.html?content-type=text/plain">views/options.html</a></code> 1296 </li> 1297 </ul> 1298 </div> 1299 <div> 1300 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/">Browse source</a> 1301 - <a href="examples/extensions/calendar.zip">Download source</a> 1302 </div> 1303 </div><div class="sample" id="4e35caa9742fb82dbd628892d23a781614f6eff6"> 1304 <img class="icon" src="examples/extensions/gdocs/img/docs_spreadsheets-128.gif"> 1305 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1306 <h2 class="name"> 1307 <a href="#4e35caa9742fb82dbd628892d23a781614f6eff6">Google Document List Viewer</a> 1308 </h2> 1309 <p class="metadata features">Uses 1310 <span> 1311 <strong>background_page</strong><span>, </span> 1312 <span style="display: none; "> and</span> 1313 </span><span> 1314 <strong>browser_action</strong><span>, </span> 1315 <span style="display: none; "> and</span> 1316 </span><span> 1317 <strong>options_page</strong><span>, </span> 1318 <span style="display: none; "> and</span> 1319 </span><span> 1320 <strong>popup</strong><span style="display: none; ">, </span> 1321 <span> and</span> 1322 </span><span> 1323 <strong>tabs</strong><span style="display: none; ">, </span> 1324 <span style="display: none; "> and</span> 1325 </span> 1326 </p> 1327 <p>Demonstrates how to use OAuth to connect the Google Documents List Data API.</p> 1328 <div class="apicalls"><strong>Calls:</strong> 1329 <ul> 1330 <li> 1331 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 1332 </li><li> 1333 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1334 </li><li> 1335 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 1336 </li><li> 1337 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1338 </li><li> 1339 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1340 </li><li> 1341 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 1342 </li><li> 1343 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 1344 </li><li> 1345 <code><a href="tabs.html#method-remove">chrome.tabs.remove</a></code> 1346 </li> 1347 </ul> 1348 </div> 1349 <div class="sourcefiles"><strong>Source files:</strong> 1350 <ul> 1351 <li> 1352 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/background.html?content-type=text/plain">background.html</a></code> 1353 </li><li> 1354 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/chrome_ex_oauth.html?content-type=text/plain">chrome_ex_oauth.html</a></code> 1355 </li><li> 1356 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/chrome_ex_oauth.js?content-type=text/plain">chrome_ex_oauth.js</a></code> 1357 </li><li> 1358 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/chrome_ex_oauthsimple.js?content-type=text/plain">chrome_ex_oauthsimple.js</a></code> 1359 </li><li> 1360 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/js/jquery-1.4.1.min.js?content-type=text/plain">js/jquery-1.4.1.min.js</a></code> 1361 </li><li> 1362 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/manifest.json?content-type=text/plain">manifest.json</a></code> 1363 </li><li> 1364 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/options.html?content-type=text/plain">options.html</a></code> 1365 </li><li> 1366 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/popup.html?content-type=text/plain">popup.html</a></code> 1367 </li> 1368 </ul> 1369 </div> 1370 <div> 1371 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/">Browse source</a> 1372 - <a href="examples/extensions/gdocs.zip">Download source</a> 1373 </div> 1374 </div><div class="sample" id="bb57f7a0132cbeb36ad7e7bb0ab75c21704234ca"> 1375 <img class="icon" src="examples/extensions/gmail/icon_128.png"> 1376 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1377 <h2 class="name"> 1378 <a href="#bb57f7a0132cbeb36ad7e7bb0ab75c21704234ca">Google Mail Checker</a> 1379 </h2> 1380 <p class="metadata features">Uses 1381 <span> 1382 <strong>background_page</strong><span>, </span> 1383 <span style="display: none; "> and</span> 1384 </span><span> 1385 <strong>browser_action</strong><span>, </span> 1386 <span style="display: none; "> and</span> 1387 </span><span> 1388 <strong>options_page</strong><span style="display: none; ">, </span> 1389 <span> and</span> 1390 </span><span> 1391 <strong>tabs</strong><span style="display: none; ">, </span> 1392 <span style="display: none; "> and</span> 1393 </span> 1394 </p> 1395 <p>Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox.</p> 1396 <div class="apicalls"><strong>Calls:</strong> 1397 <ul> 1398 <li> 1399 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 1400 </li><li> 1401 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 1402 </li><li> 1403 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 1404 </li><li> 1405 <code><a href="browserAction.html#method-setIcon">chrome.browserAction.setIcon</a></code> 1406 </li><li> 1407 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1408 </li><li> 1409 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 1410 </li><li> 1411 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1412 </li><li> 1413 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1414 </li><li> 1415 <code><a href="tabs.html#method-getAllInWindow">chrome.tabs.getAllInWindow</a></code> 1416 </li><li> 1417 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 1418 </li><li> 1419 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 1420 </li> 1421 </ul> 1422 </div> 1423 <div class="sourcefiles"><strong>Source files:</strong> 1424 <ul> 1425 <li> 1426 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ar/messages.json?content-type=text/plain">_locales/ar/messages.json</a></code> 1427 </li><li> 1428 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/bg/messages.json?content-type=text/plain">_locales/bg/messages.json</a></code> 1429 </li><li> 1430 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ca/messages.json?content-type=text/plain">_locales/ca/messages.json</a></code> 1431 </li><li> 1432 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/cs/messages.json?content-type=text/plain">_locales/cs/messages.json</a></code> 1433 </li><li> 1434 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/da/messages.json?content-type=text/plain">_locales/da/messages.json</a></code> 1435 </li><li> 1436 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/de/messages.json?content-type=text/plain">_locales/de/messages.json</a></code> 1437 </li><li> 1438 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/el/messages.json?content-type=text/plain">_locales/el/messages.json</a></code> 1439 </li><li> 1440 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 1441 </li><li> 1442 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/en_GB/messages.json?content-type=text/plain">_locales/en_GB/messages.json</a></code> 1443 </li><li> 1444 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/es/messages.json?content-type=text/plain">_locales/es/messages.json</a></code> 1445 </li><li> 1446 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/es_419/messages.json?content-type=text/plain">_locales/es_419/messages.json</a></code> 1447 </li><li> 1448 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/et/messages.json?content-type=text/plain">_locales/et/messages.json</a></code> 1449 </li><li> 1450 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/fi/messages.json?content-type=text/plain">_locales/fi/messages.json</a></code> 1451 </li><li> 1452 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/fil/messages.json?content-type=text/plain">_locales/fil/messages.json</a></code> 1453 </li><li> 1454 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/fr/messages.json?content-type=text/plain">_locales/fr/messages.json</a></code> 1455 </li><li> 1456 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/he/messages.json?content-type=text/plain">_locales/he/messages.json</a></code> 1457 </li><li> 1458 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/hi/messages.json?content-type=text/plain">_locales/hi/messages.json</a></code> 1459 </li><li> 1460 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/hr/messages.json?content-type=text/plain">_locales/hr/messages.json</a></code> 1461 </li><li> 1462 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/hu/messages.json?content-type=text/plain">_locales/hu/messages.json</a></code> 1463 </li><li> 1464 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/id/messages.json?content-type=text/plain">_locales/id/messages.json</a></code> 1465 </li><li> 1466 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/it/messages.json?content-type=text/plain">_locales/it/messages.json</a></code> 1467 </li><li> 1468 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ja/messages.json?content-type=text/plain">_locales/ja/messages.json</a></code> 1469 </li><li> 1470 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ko/messages.json?content-type=text/plain">_locales/ko/messages.json</a></code> 1471 </li><li> 1472 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/lt/messages.json?content-type=text/plain">_locales/lt/messages.json</a></code> 1473 </li><li> 1474 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/lv/messages.json?content-type=text/plain">_locales/lv/messages.json</a></code> 1475 </li><li> 1476 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/nb/messages.json?content-type=text/plain">_locales/nb/messages.json</a></code> 1477 </li><li> 1478 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/nl/messages.json?content-type=text/plain">_locales/nl/messages.json</a></code> 1479 </li><li> 1480 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/pl/messages.json?content-type=text/plain">_locales/pl/messages.json</a></code> 1481 </li><li> 1482 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/pt_BR/messages.json?content-type=text/plain">_locales/pt_BR/messages.json</a></code> 1483 </li><li> 1484 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/pt_PT/messages.json?content-type=text/plain">_locales/pt_PT/messages.json</a></code> 1485 </li><li> 1486 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ro/messages.json?content-type=text/plain">_locales/ro/messages.json</a></code> 1487 </li><li> 1488 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/ru/messages.json?content-type=text/plain">_locales/ru/messages.json</a></code> 1489 </li><li> 1490 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/sk/messages.json?content-type=text/plain">_locales/sk/messages.json</a></code> 1491 </li><li> 1492 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/sl/messages.json?content-type=text/plain">_locales/sl/messages.json</a></code> 1493 </li><li> 1494 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/sr/messages.json?content-type=text/plain">_locales/sr/messages.json</a></code> 1495 </li><li> 1496 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/sv/messages.json?content-type=text/plain">_locales/sv/messages.json</a></code> 1497 </li><li> 1498 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/th/messages.json?content-type=text/plain">_locales/th/messages.json</a></code> 1499 </li><li> 1500 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/tr/messages.json?content-type=text/plain">_locales/tr/messages.json</a></code> 1501 </li><li> 1502 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/uk/messages.json?content-type=text/plain">_locales/uk/messages.json</a></code> 1503 </li><li> 1504 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/vi/messages.json?content-type=text/plain">_locales/vi/messages.json</a></code> 1505 </li><li> 1506 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/zh_CN/messages.json?content-type=text/plain">_locales/zh_CN/messages.json</a></code> 1507 </li><li> 1508 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/_locales/zh_TW/messages.json?content-type=text/plain">_locales/zh_TW/messages.json</a></code> 1509 </li><li> 1510 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/background.html?content-type=text/plain">background.html</a></code> 1511 </li><li> 1512 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/manifest.json?content-type=text/plain">manifest.json</a></code> 1513 </li><li> 1514 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/options.html?content-type=text/plain">options.html</a></code> 1515 </li> 1516 </ul> 1517 </div> 1518 <div> 1519 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/">Browse source</a> 1520 - <a href="examples/extensions/gmail.zip">Download source</a> 1521 </div> 1522 </div><div class="sample" id="1682e05ea9a1bde985123b04f6f8ac50a8a64033"> 1523 <img class="icon" src="examples/extensions/wave/128.png"> 1524 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1525 <h2 class="name"> 1526 <a href="#1682e05ea9a1bde985123b04f6f8ac50a8a64033">Google Wave Notifier</a> 1527 </h2> 1528 <p class="metadata features">Uses 1529 <span> 1530 <strong>background_page</strong><span>, </span> 1531 <span style="display: none; "> and</span> 1532 </span><span> 1533 <strong>browser_action</strong><span>, </span> 1534 <span style="display: none; "> and</span> 1535 </span><span> 1536 <strong>options_page</strong><span>, </span> 1537 <span style="display: none; "> and</span> 1538 </span><span> 1539 <strong>popup</strong><span style="display: none; ">, </span> 1540 <span> and</span> 1541 </span><span> 1542 <strong>tabs</strong><span style="display: none; ">, </span> 1543 <span style="display: none; "> and</span> 1544 </span> 1545 </p> 1546 <p>Find out when you have new waves and preview them fast.</p> 1547 <div class="apicalls"><strong>Calls:</strong> 1548 <ul> 1549 <li> 1550 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1551 </li><li> 1552 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 1553 </li><li> 1554 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 1555 </li><li> 1556 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1557 </li><li> 1558 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 1559 </li><li> 1560 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 1561 </li><li> 1562 <code><a href="tabs.html#method-remove">chrome.tabs.remove</a></code> 1563 </li> 1564 </ul> 1565 </div> 1566 <div class="sourcefiles"><strong>Source files:</strong> 1567 <ul> 1568 <li> 1569 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/background.html?content-type=text/plain">background.html</a></code> 1570 </li><li> 1571 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/chrome_ex_oauth.html?content-type=text/plain">chrome_ex_oauth.html</a></code> 1572 </li><li> 1573 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/chrome_ex_oauth.js?content-type=text/plain">chrome_ex_oauth.js</a></code> 1574 </li><li> 1575 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/chrome_ex_oauthsimple.js?content-type=text/plain">chrome_ex_oauthsimple.js</a></code> 1576 </li><li> 1577 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/manifest.json?content-type=text/plain">manifest.json</a></code> 1578 </li><li> 1579 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/options.html?content-type=text/plain">options.html</a></code> 1580 </li><li> 1581 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/popup.html?content-type=text/plain">popup.html</a></code> 1582 </li><li> 1583 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/prettyload.js?content-type=text/plain">prettyload.js</a></code> 1584 </li> 1585 </ul> 1586 </div> 1587 <div> 1588 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/">Browse source</a> 1589 - <a href="examples/extensions/wave.zip">Download source</a> 1590 </div> 1591 </div><div class="sample" id="14b9651fda4e57b2a5914ba73a779812201b750a"> 1592 <img class="icon" style="display: none; "> 1593 <img class="icon" src="images/sample-default-icon.png"> 1594 <h2 class="name"> 1595 <a href="#14b9651fda4e57b2a5914ba73a779812201b750a">Hello World</a> 1596 </h2> 1597 <p class="metadata features">Uses 1598 <span> 1599 <strong>browser_action</strong><span style="display: none; ">, </span> 1600 <span> and</span> 1601 </span><span> 1602 <strong>popup</strong><span style="display: none; ">, </span> 1603 <span style="display: none; "> and</span> 1604 </span> 1605 </p> 1606 <p>The first extension that I made.</p> 1607 <div class="apicalls" style="display: none; "><strong>Calls:</strong> 1608 <ul> 1609 <li> 1610 <code><a></a></code> 1611 </li> 1612 </ul> 1613 </div> 1614 <div class="sourcefiles"><strong>Source files:</strong> 1615 <ul> 1616 <li> 1617 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/getstarted/manifest.json?content-type=text/plain">manifest.json</a></code> 1618 </li><li> 1619 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/getstarted/popup.html?content-type=text/plain">popup.html</a></code> 1620 </li> 1621 </ul> 1622 </div> 1623 <div> 1624 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/getstarted/">Browse source</a> 1625 - <a href="examples/tutorials/getstarted.zip">Download source</a> 1626 </div> 1627 </div><div class="sample" id="2020d72f2577f53caf8e94e3dbac0fb849ceaa4d"> 1628 <img class="icon" src="examples/api/idle/idle_simple/sample-128.png"> 1629 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1630 <h2 class="name"> 1631 <a href="#2020d72f2577f53caf8e94e3dbac0fb849ceaa4d">Idle - Simple Example</a> 1632 </h2> 1633 <p class="metadata features">Uses 1634 <span> 1635 <strong>background_page</strong><span>, </span> 1636 <span style="display: none; "> and</span> 1637 </span><span> 1638 <strong>browser_action</strong><span style="display: none; ">, </span> 1639 <span> and</span> 1640 </span><span> 1641 <strong>idle</strong><span style="display: none; ">, </span> 1642 <span style="display: none; "> and</span> 1643 </span> 1644 </p> 1645 <p>Demonstrates the Idle API</p> 1646 <div class="apicalls"><strong>Calls:</strong> 1647 <ul> 1648 <li> 1649 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 1650 </li><li> 1651 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1652 </li><li> 1653 <code><a href="idle.html#event-onStateChanged">chrome.idle.onStateChanged</a></code> 1654 </li><li> 1655 <code><a href="idle.html#method-queryState">chrome.idle.queryState</a></code> 1656 </li> 1657 </ul> 1658 </div> 1659 <div class="sourcefiles"><strong>Source files:</strong> 1660 <ul> 1661 <li> 1662 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/background.html?content-type=text/plain">background.html</a></code> 1663 </li><li> 1664 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/history.html?content-type=text/plain">history.html</a></code> 1665 </li><li> 1666 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/manifest.json?content-type=text/plain">manifest.json</a></code> 1667 </li> 1668 </ul> 1669 </div> 1670 <div> 1671 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/">Browse source</a> 1672 - <a href="examples/api/idle/idle_simple.zip">Download source</a> 1673 </div> 1674 </div><div class="sample" id="0ea1588bd07b20338fc21f725de1542a5fdf9726"> 1675 <img class="icon" style="display: none; "> 1676 <img class="icon" src="images/sample-default-icon.png"> 1677 <h2 class="name"> 1678 <a href="#0ea1588bd07b20338fc21f725de1542a5fdf9726">iGoogle new tab page</a> 1679 </h2> 1680 <p class="metadata features">Uses 1681 <span> 1682 <strong>chrome_url_overrides</strong><span style="display: none; ">, </span> 1683 <span style="display: none; "> and</span> 1684 </span> 1685 </p> 1686 <p></p> 1687 <div class="apicalls" style="display: none; "><strong>Calls:</strong> 1688 <ul> 1689 <li> 1690 <code><a></a></code> 1691 </li> 1692 </ul> 1693 </div> 1694 <div class="sourcefiles"><strong>Source files:</strong> 1695 <ul> 1696 <li> 1697 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/override_igoogle/manifest.json?content-type=text/plain">manifest.json</a></code> 1698 </li><li> 1699 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/override_igoogle/redirect.html?content-type=text/plain">redirect.html</a></code> 1700 </li> 1701 </ul> 1702 </div> 1703 <div> 1704 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/override_igoogle/">Browse source</a> 1705 - <a href="examples/api/override/override_igoogle.zip">Download source</a> 1706 </div> 1707 </div><div class="sample" id="646325c25f572a1d15edc73d057f821d847a4fbe"> 1708 <img class="icon" src="examples/extensions/imageinfo/imageinfo-128.png"> 1709 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1710 <h2 class="name"> 1711 <a href="#646325c25f572a1d15edc73d057f821d847a4fbe">Imageinfo</a> 1712 </h2> 1713 <p class="metadata features">Uses 1714 <span> 1715 <strong>background_page</strong><span>, </span> 1716 <span style="display: none; "> and</span> 1717 </span><span> 1718 <strong>contextMenus</strong><span style="display: none; ">, </span> 1719 <span> and</span> 1720 </span><span> 1721 <strong>tabs</strong><span style="display: none; ">, </span> 1722 <span style="display: none; "> and</span> 1723 </span> 1724 </p> 1725 <p>Get image info for images, including EXIF data</p> 1726 <div class="apicalls"><strong>Calls:</strong> 1727 <ul> 1728 <li> 1729 <code><a href="contextMenus.html#method-create">chrome.contextMenus.create</a></code> 1730 </li><li> 1731 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1732 </li><li> 1733 <code><a href="tabs.html#method-getCurrent">chrome.tabs.getCurrent</a></code> 1734 </li><li> 1735 <code><a href="windows.html#method-create">chrome.windows.create</a></code> 1736 </li><li> 1737 <code><a href="windows.html#method-update">chrome.windows.update</a></code> 1738 </li> 1739 </ul> 1740 </div> 1741 <div class="sourcefiles"><strong>Source files:</strong> 1742 <ul> 1743 <li> 1744 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/background.html?content-type=text/plain">background.html</a></code> 1745 </li><li> 1746 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/binaryajax.js?content-type=text/plain">imageinfo/binaryajax.js</a></code> 1747 </li><li> 1748 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/exif.js?content-type=text/plain">imageinfo/exif.js</a></code> 1749 </li><li> 1750 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/imageinfo.js?content-type=text/plain">imageinfo/imageinfo.js</a></code> 1751 </li><li> 1752 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/info.html?content-type=text/plain">info.html</a></code> 1753 </li><li> 1754 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/manifest.json?content-type=text/plain">manifest.json</a></code> 1755 </li> 1756 </ul> 1757 </div> 1758 <div> 1759 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/">Browse source</a> 1760 - <a href="examples/extensions/imageinfo.zip">Download source</a> 1761 </div> 1762 </div><div class="sample" id="65b2fe595b7ac38dddd89cca50f5efd0017b0bd4"> 1763 <img class="icon" style="display: none; "> 1764 <img class="icon" src="images/sample-default-icon.png"> 1765 <h2 class="name"> 1766 <a href="#65b2fe595b7ac38dddd89cca50f5efd0017b0bd4">Keyboard Pin</a> 1767 </h2> 1768 <p class="metadata features">Uses 1769 <span> 1770 <strong>background_page</strong><span style="display: none; ">, </span> 1771 <span> and</span> 1772 </span><span> 1773 <strong>tabs</strong><span style="display: none; ">, </span> 1774 <span style="display: none; "> and</span> 1775 </span> 1776 </p> 1777 <p>Creates a keyboard shortcut (C + Shift + P) to toggle the pinned state of the currently selected tab</p> 1778 <div class="apicalls"><strong>Calls:</strong> 1779 <ul> 1780 <li> 1781 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 1782 </li><li> 1783 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 1784 </li><li> 1785 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1786 </li><li> 1787 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 1788 </li><li> 1789 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 1790 </li> 1791 </ul> 1792 </div> 1793 <div class="sourcefiles"><strong>Source files:</strong> 1794 <ul> 1795 <li> 1796 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/pin/background.html?content-type=text/plain">background.html</a></code> 1797 </li><li> 1798 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/pin/inject.js?content-type=text/plain">inject.js</a></code> 1799 </li><li> 1800 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/pin/manifest.json?content-type=text/plain">manifest.json</a></code> 1801 </li> 1802 </ul> 1803 </div> 1804 <div> 1805 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/pin/">Browse source</a> 1806 - <a href="examples/api/tabs/pin.zip">Download source</a> 1807 </div> 1808 </div><div class="sample" id="ec97ec20ca2f095d081e39f1565fc12af09ef067"> 1809 <img class="icon" src="examples/extensions/mappy/icon.png"> 1810 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1811 <h2 class="name"> 1812 <a href="#ec97ec20ca2f095d081e39f1565fc12af09ef067">Mappy</a> 1813 </h2> 1814 <p class="metadata features">Uses 1815 <span> 1816 <strong>background_page</strong><span>, </span> 1817 <span style="display: none; "> and</span> 1818 </span><span> 1819 <strong>page_action</strong><span>, </span> 1820 <span style="display: none; "> and</span> 1821 </span><span> 1822 <strong>popup</strong><span style="display: none; ">, </span> 1823 <span> and</span> 1824 </span><span> 1825 <strong>tabs</strong><span style="display: none; ">, </span> 1826 <span style="display: none; "> and</span> 1827 </span> 1828 </p> 1829 <p>Finds addresses in the web page you're on and pops up a map window.</p> 1830 <div class="apicalls"><strong>Calls:</strong> 1831 <ul> 1832 <li> 1833 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 1834 </li><li> 1835 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 1836 </li><li> 1837 <code><a href="pageAction.html#method-hide">chrome.pageAction.hide</a></code> 1838 </li><li> 1839 <code><a href="pageAction.html#method-setTitle">chrome.pageAction.setTitle</a></code> 1840 </li><li> 1841 <code><a href="pageAction.html#method-show">chrome.pageAction.show</a></code> 1842 </li><li> 1843 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1844 </li><li> 1845 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 1846 </li><li> 1847 <code><a href="tabs.html#event-onSelectionChanged">chrome.tabs.onSelectionChanged</a></code> 1848 </li><li> 1849 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 1850 </li><li> 1851 <code><a href="tabs.html#method-sendRequest">chrome.tabs.sendRequest</a></code> 1852 </li> 1853 </ul> 1854 </div> 1855 <div class="sourcefiles"><strong>Source files:</strong> 1856 <ul> 1857 <li> 1858 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/background.html?content-type=text/plain">background.html</a></code> 1859 </li><li> 1860 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/manifest.json?content-type=text/plain">manifest.json</a></code> 1861 </li><li> 1862 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/mappy_content_script.js?content-type=text/plain">mappy_content_script.js</a></code> 1863 </li><li> 1864 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/popup.html?content-type=text/plain">popup.html</a></code> 1865 </li> 1866 </ul> 1867 </div> 1868 <div> 1869 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/">Browse source</a> 1870 - <a href="examples/extensions/mappy.zip">Download source</a> 1871 </div> 1872 </div><div class="sample" id="b2f5f8a790e16f091a7e4e0a39b2d0a6d32e3a6d"> 1873 <img class="icon" src="examples/api/windows/merge_windows/merge_windows_128.png"> 1874 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 1875 <h2 class="name"> 1876 <a href="#b2f5f8a790e16f091a7e4e0a39b2d0a6d32e3a6d">Merge Windows</a> 1877 </h2> 1878 <p class="metadata features">Uses 1879 <span> 1880 <strong>background_page</strong><span>, </span> 1881 <span style="display: none; "> and</span> 1882 </span><span> 1883 <strong>browser_action</strong><span style="display: none; ">, </span> 1884 <span> and</span> 1885 </span><span> 1886 <strong>tabs</strong><span style="display: none; ">, </span> 1887 <span style="display: none; "> and</span> 1888 </span> 1889 </p> 1890 <p>Merges all of the browser's windows into the current window</p> 1891 <div class="apicalls"><strong>Calls:</strong> 1892 <ul> 1893 <li> 1894 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 1895 </li><li> 1896 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1897 </li><li> 1898 <code><a href="tabs.html#method-getAllInWindow">chrome.tabs.getAllInWindow</a></code> 1899 </li><li> 1900 <code><a href="tabs.html#method-move">chrome.tabs.move</a></code> 1901 </li><li> 1902 <code><a href="windows.html#method-get">chrome.windows.get</a></code> 1903 </li><li> 1904 <code><a href="windows.html#method-getAll">chrome.windows.getAll</a></code> 1905 </li><li> 1906 <code><a href="windows.html#method-getCurrent">chrome.windows.getCurrent</a></code> 1907 </li> 1908 </ul> 1909 </div> 1910 <div class="sourcefiles"><strong>Source files:</strong> 1911 <ul> 1912 <li> 1913 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/merge_windows/background.html?content-type=text/plain">background.html</a></code> 1914 </li><li> 1915 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/merge_windows/manifest.json?content-type=text/plain">manifest.json</a></code> 1916 </li> 1917 </ul> 1918 </div> 1919 <div> 1920 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/merge_windows/">Browse source</a> 1921 - <a href="examples/api/windows/merge_windows.zip">Download source</a> 1922 </div> 1923 </div><div class="sample" id="51a83d2ba3a32e3ff1bdb624d4e18ccec4c4038e"> 1924 <img class="icon" style="display: none; "> 1925 <img class="icon" src="images/sample-default-icon.png"> 1926 <h2 class="name"> 1927 <a href="#51a83d2ba3a32e3ff1bdb624d4e18ccec4c4038e">Message Timer</a> 1928 </h2> 1929 <p class="metadata features">Uses 1930 <span> 1931 <strong>browser_action</strong><span>, </span> 1932 <span style="display: none; "> and</span> 1933 </span><span> 1934 <strong>popup</strong><span style="display: none; ">, </span> 1935 <span> and</span> 1936 </span><span> 1937 <strong>tabs</strong><span style="display: none; ">, </span> 1938 <span style="display: none; "> and</span> 1939 </span> 1940 </p> 1941 <p>Times how long it takes to send a message to a content script and back.</p> 1942 <div class="apicalls"><strong>Calls:</strong> 1943 <ul> 1944 <li> 1945 <code><a href="extension.html#event-onConnect">chrome.extension.onConnect</a></code> 1946 </li><li> 1947 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 1948 </li><li> 1949 <code><a href="tabs.html#method-connect">chrome.tabs.connect</a></code> 1950 </li><li> 1951 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 1952 </li><li> 1953 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 1954 </li><li> 1955 <code><a href="tabs.html#method-sendRequest">chrome.tabs.sendRequest</a></code> 1956 </li> 1957 </ul> 1958 </div> 1959 <div class="sourcefiles"><strong>Source files:</strong> 1960 <ul> 1961 <li> 1962 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/manifest.json?content-type=text/plain">manifest.json</a></code> 1963 </li><li> 1964 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/page.js?content-type=text/plain">page.js</a></code> 1965 </li><li> 1966 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/popup.html?content-type=text/plain">popup.html</a></code> 1967 </li> 1968 </ul> 1969 </div> 1970 <div> 1971 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/">Browse source</a> 1972 - <a href="examples/api/messaging/timer.zip">Download source</a> 1973 </div> 1974 </div><div class="sample" id="4f6785ec4f937add6728615682dd37c9a42d9548"> 1975 <img class="icon" style="display: none; "> 1976 <img class="icon" src="images/sample-default-icon.png"> 1977 <h2 class="name"> 1978 <a href="#4f6785ec4f937add6728615682dd37c9a42d9548">My Bookmarks</a> 1979 </h2> 1980 <p class="metadata features">Uses 1981 <span> 1982 <strong>bookmarks</strong><span>, </span> 1983 <span style="display: none; "> and</span> 1984 </span><span> 1985 <strong>browser_action</strong><span>, </span> 1986 <span style="display: none; "> and</span> 1987 </span><span> 1988 <strong>popup</strong><span style="display: none; ">, </span> 1989 <span> and</span> 1990 </span><span> 1991 <strong>tabs</strong><span style="display: none; ">, </span> 1992 <span style="display: none; "> and</span> 1993 </span> 1994 </p> 1995 <p>A browser action with a popup dump of all bookmarks, including search, add, edit and delete.</p> 1996 <div class="apicalls"><strong>Calls:</strong> 1997 <ul> 1998 <li> 1999 <code><a href="bookmarks.html#method-create">chrome.bookmarks.create</a></code> 2000 </li><li> 2001 <code><a href="bookmarks.html#method-get">chrome.bookmarks.get</a></code> 2002 </li><li> 2003 <code><a href="bookmarks.html#method-getTree">chrome.bookmarks.getTree</a></code> 2004 </li><li> 2005 <code><a href="bookmarks.html#method-remove">chrome.bookmarks.remove</a></code> 2006 </li><li> 2007 <code><a href="bookmarks.html#method-update">chrome.bookmarks.update</a></code> 2008 </li><li> 2009 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2010 </li> 2011 </ul> 2012 </div> 2013 <div class="sourcefiles"><strong>Source files:</strong> 2014 <ul> 2015 <li> 2016 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/manifest.json?content-type=text/plain">manifest.json</a></code> 2017 </li><li> 2018 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/popup.html?content-type=text/plain">popup.html</a></code> 2019 </li> 2020 </ul> 2021 </div> 2022 <div> 2023 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/">Browse source</a> 2024 - <a href="examples/api/bookmarks/basic.zip">Download source</a> 2025 </div> 2026 </div><div class="sample" id="597015d3bcce3da693b02314afd607bec4f55291"> 2027 <img class="icon" src="examples/extensions/news_a11y/news_icon.png"> 2028 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2029 <h2 class="name"> 2030 <a href="#597015d3bcce3da693b02314afd607bec4f55291">News Reader</a> 2031 </h2> 2032 <p class="metadata features">Uses 2033 <span> 2034 <strong>browser_action</strong><span>, </span> 2035 <span style="display: none; "> and</span> 2036 </span><span> 2037 <strong>popup</strong><span style="display: none; ">, </span> 2038 <span> and</span> 2039 </span><span> 2040 <strong>tabs</strong><span style="display: none; ">, </span> 2041 <span style="display: none; "> and</span> 2042 </span> 2043 </p> 2044 <p>Displays the first 5 items from the 'Google News - top news' RSS feed in a popup.</p> 2045 <div class="apicalls"><strong>Calls:</strong> 2046 <ul> 2047 <li> 2048 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2049 </li> 2050 </ul> 2051 </div> 2052 <div class="sourcefiles"><strong>Source files:</strong> 2053 <ul> 2054 <li> 2055 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/feed.html?content-type=text/plain">feed.html</a></code> 2056 </li><li> 2057 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/manifest.json?content-type=text/plain">manifest.json</a></code> 2058 </li> 2059 </ul> 2060 </div> 2061 <div> 2062 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/">Browse source</a> 2063 - <a href="examples/extensions/news_a11y.zip">Download source</a> 2064 </div> 2065 </div><div class="sample" id="6444e5c8ae112a6a433909c5e770669cd16e2e5f"> 2066 <img class="icon" src="examples/extensions/news_i18n/news_icon.png"> 2067 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2068 <h2 class="name"> 2069 <a href="#6444e5c8ae112a6a433909c5e770669cd16e2e5f">News Reader</a> 2070 </h2> 2071 <p class="metadata features">Uses 2072 <span> 2073 <strong>browser_action</strong><span>, </span> 2074 <span style="display: none; "> and</span> 2075 </span><span> 2076 <strong>popup</strong><span style="display: none; ">, </span> 2077 <span> and</span> 2078 </span><span> 2079 <strong>tabs</strong><span style="display: none; ">, </span> 2080 <span style="display: none; "> and</span> 2081 </span> 2082 </p> 2083 <p>Displays the first 5 items from the 'Google News - top news' RSS feed in a popup.</p> 2084 <div class="apicalls"><strong>Calls:</strong> 2085 <ul> 2086 <li> 2087 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 2088 </li><li> 2089 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2090 </li> 2091 </ul> 2092 </div> 2093 <div class="sourcefiles"><strong>Source files:</strong> 2094 <ul> 2095 <li> 2096 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 2097 </li><li> 2098 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/es/messages.json?content-type=text/plain">_locales/es/messages.json</a></code> 2099 </li><li> 2100 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/_locales/sr/messages.json?content-type=text/plain">_locales/sr/messages.json</a></code> 2101 </li><li> 2102 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/feed.html?content-type=text/plain">feed.html</a></code> 2103 </li><li> 2104 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/manifest.json?content-type=text/plain">manifest.json</a></code> 2105 </li> 2106 </ul> 2107 </div> 2108 <div> 2109 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/">Browse source</a> 2110 - <a href="examples/extensions/news_i18n.zip">Download source</a> 2111 </div> 2112 </div><div class="sample" id="3aea027164cb9b732ba4a8c51cb93708891726ef"> 2113 <img class="icon" src="examples/extensions/news/images/news_icon.png"> 2114 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2115 <h2 class="name"> 2116 <a href="#3aea027164cb9b732ba4a8c51cb93708891726ef">News Reader (by Google)</a> 2117 </h2> 2118 <p class="metadata features">Uses 2119 <span> 2120 <strong>background_page</strong><span>, </span> 2121 <span style="display: none; "> and</span> 2122 </span><span> 2123 <strong>browser_action</strong><span>, </span> 2124 <span style="display: none; "> and</span> 2125 </span><span> 2126 <strong>options_page</strong><span>, </span> 2127 <span style="display: none; "> and</span> 2128 </span><span> 2129 <strong>popup</strong><span style="display: none; ">, </span> 2130 <span> and</span> 2131 </span><span> 2132 <strong>tabs</strong><span style="display: none; ">, </span> 2133 <span style="display: none; "> and</span> 2134 </span> 2135 </p> 2136 <p>Displays the latest stories from Google News in a popup.</p> 2137 <div class="apicalls"><strong>Calls:</strong> 2138 <ul> 2139 <li> 2140 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 2141 </li><li> 2142 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 2143 </li><li> 2144 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2145 </li> 2146 </ul> 2147 </div> 2148 <div class="sourcefiles"><strong>Source files:</strong> 2149 <ul> 2150 <li> 2151 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 2152 </li><li> 2153 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/css/feed.css?content-type=text/plain">css/feed.css</a></code> 2154 </li><li> 2155 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/css/options.css?content-type=text/plain">css/options.css</a></code> 2156 </li><li> 2157 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/javascript/feed.js?content-type=text/plain">javascript/feed.js</a></code> 2158 </li><li> 2159 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/javascript/options.js?content-type=text/plain">javascript/options.js</a></code> 2160 </li><li> 2161 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/javascript/util.js?content-type=text/plain">javascript/util.js</a></code> 2162 </li><li> 2163 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/manifest.json?content-type=text/plain">manifest.json</a></code> 2164 </li><li> 2165 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/views/background.html?content-type=text/plain">views/background.html</a></code> 2166 </li><li> 2167 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/views/feed.html?content-type=text/plain">views/feed.html</a></code> 2168 </li><li> 2169 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/views/options.html?content-type=text/plain">views/options.html</a></code> 2170 </li> 2171 </ul> 2172 </div> 2173 <div> 2174 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/">Browse source</a> 2175 - <a href="examples/extensions/news.zip">Download source</a> 2176 </div> 2177 </div><div class="sample" id="f799e26ceef2367cf836f24bcb47df4398b0df58"> 2178 <img class="icon" src="examples/api/notifications/128.png"> 2179 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2180 <h2 class="name"> 2181 <a href="#f799e26ceef2367cf836f24bcb47df4398b0df58">Notification Demo</a> 2182 </h2> 2183 <p class="metadata features">Uses 2184 <span> 2185 <strong>background_page</strong><span>, </span> 2186 <span style="display: none; "> and</span> 2187 </span><span> 2188 <strong>notifications</strong><span>, </span> 2189 <span style="display: none; "> and</span> 2190 </span><span> 2191 <strong>options_page</strong><span style="display: none; ">, </span> 2192 <span> and</span> 2193 </span><span> 2194 <strong>tabs</strong><span style="display: none; ">, </span> 2195 <span style="display: none; "> and</span> 2196 </span> 2197 </p> 2198 <p>Shows off desktop notifications, which are "toast" windows that pop up on the desktop.</p> 2199 <div class="apicalls"><strong>Calls:</strong> 2200 <ul> 2201 <li> 2202 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2203 </li> 2204 </ul> 2205 </div> 2206 <div class="sourcefiles"><strong>Source files:</strong> 2207 <ul> 2208 <li> 2209 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/background.html?content-type=text/plain">background.html</a></code> 2210 </li><li> 2211 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/error.html?content-type=text/plain">error.html</a></code> 2212 </li><li> 2213 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/manifest.json?content-type=text/plain">manifest.json</a></code> 2214 </li><li> 2215 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/options.html?content-type=text/plain">options.html</a></code> 2216 </li> 2217 </ul> 2218 </div> 2219 <div> 2220 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/">Browse source</a> 2221 - <a href="examples/api/notifications.zip">Download source</a> 2222 </div> 2223 </div><div class="sample" id="e787b322bddbc6289bb31b7d7550b1bf6456a80b"> 2224 <img class="icon" style="display: none; "> 2225 <img class="icon" src="images/sample-default-icon.png"> 2226 <h2 class="name"> 2227 <a href="#e787b322bddbc6289bb31b7d7550b1bf6456a80b">Omnibox Example</a> 2228 </h2> 2229 <p class="metadata features">Uses 2230 <span> 2231 <strong>background_page</strong><span style="display: none; ">, </span> 2232 <span style="display: none; "> and</span> 2233 </span> 2234 </p> 2235 <p>To use, type 'omnix' plus a search term into the Omnibox.</p> 2236 <div class="apicalls"><strong>Calls:</strong> 2237 <ul> 2238 <li> 2239 <code><a href="omnibox.html#event-onInputChanged">chrome.omnibox.onInputChanged</a></code> 2240 </li><li> 2241 <code><a href="omnibox.html#event-onInputEntered">chrome.omnibox.onInputEntered</a></code> 2242 </li> 2243 </ul> 2244 </div> 2245 <div class="sourcefiles"><strong>Source files:</strong> 2246 <ul> 2247 <li> 2248 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/simple-example/background.html?content-type=text/plain">background.html</a></code> 2249 </li><li> 2250 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/simple-example/manifest.json?content-type=text/plain">manifest.json</a></code> 2251 </li> 2252 </ul> 2253 </div> 2254 <div> 2255 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/simple-example/">Browse source</a> 2256 - <a href="examples/api/omnibox/simple-example.zip">Download source</a> 2257 </div> 2258 </div><div class="sample" id="8d0a50b57c26bb498be592e871001ffed91541b4"> 2259 <img class="icon" src="examples/api/pageAction/pageaction_by_content/sandwich-128.png"> 2260 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2261 <h2 class="name"> 2262 <a href="#8d0a50b57c26bb498be592e871001ffed91541b4">Page action by content</a> 2263 </h2> 2264 <p class="metadata features">Uses 2265 <span> 2266 <strong>background_page</strong><span style="display: none; ">, </span> 2267 <span> and</span> 2268 </span><span> 2269 <strong>page_action</strong><span style="display: none; ">, </span> 2270 <span style="display: none; "> and</span> 2271 </span> 2272 </p> 2273 <p>Shows a page action for HTML pages containing the word 'sandwich'</p> 2274 <div class="apicalls"><strong>Calls:</strong> 2275 <ul> 2276 <li> 2277 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 2278 </li><li> 2279 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 2280 </li><li> 2281 <code><a href="pageAction.html#method-show">chrome.pageAction.show</a></code> 2282 </li> 2283 </ul> 2284 </div> 2285 <div class="sourcefiles"><strong>Source files:</strong> 2286 <ul> 2287 <li> 2288 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/background.html?content-type=text/plain">background.html</a></code> 2289 </li><li> 2290 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js?content-type=text/plain">contentscript.js</a></code> 2291 </li><li> 2292 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/manifest.json?content-type=text/plain">manifest.json</a></code> 2293 </li> 2294 </ul> 2295 </div> 2296 <div> 2297 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/">Browse source</a> 2298 - <a href="examples/api/pageAction/pageaction_by_content.zip">Download source</a> 2299 </div> 2300 </div><div class="sample" id="80b86ccc6e8520660fa591caa565826f0ed1b12c"> 2301 <img class="icon" src="examples/api/pageAction/pageaction_by_url/icon-128.png"> 2302 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2303 <h2 class="name"> 2304 <a href="#80b86ccc6e8520660fa591caa565826f0ed1b12c">Page action by URL</a> 2305 </h2> 2306 <p class="metadata features">Uses 2307 <span> 2308 <strong>background_page</strong><span>, </span> 2309 <span style="display: none; "> and</span> 2310 </span><span> 2311 <strong>page_action</strong><span style="display: none; ">, </span> 2312 <span> and</span> 2313 </span><span> 2314 <strong>tabs</strong><span style="display: none; ">, </span> 2315 <span style="display: none; "> and</span> 2316 </span> 2317 </p> 2318 <p>Shows a page action for urls which have the letter 'g' in them.</p> 2319 <div class="apicalls"><strong>Calls:</strong> 2320 <ul> 2321 <li> 2322 <code><a href="pageAction.html#method-show">chrome.pageAction.show</a></code> 2323 </li><li> 2324 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 2325 </li> 2326 </ul> 2327 </div> 2328 <div class="sourcefiles"><strong>Source files:</strong> 2329 <ul> 2330 <li> 2331 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/background.html?content-type=text/plain">background.html</a></code> 2332 </li><li> 2333 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/manifest.json?content-type=text/plain">manifest.json</a></code> 2334 </li> 2335 </ul> 2336 </div> 2337 <div> 2338 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/">Browse source</a> 2339 - <a href="examples/api/pageAction/pageaction_by_url.zip">Download source</a> 2340 </div> 2341 </div><div class="sample" id="d74c3c18a1c1dd18b035149105a306f837c8823e"> 2342 <img class="icon" style="display: none; "> 2343 <img class="icon" src="images/sample-default-icon.png"> 2344 <h2 class="name"> 2345 <a href="#d74c3c18a1c1dd18b035149105a306f837c8823e">Page Benchmarker</a> 2346 </h2> 2347 <p class="metadata features">Uses 2348 <span> 2349 <strong>background_page</strong><span>, </span> 2350 <span style="display: none; "> and</span> 2351 </span><span> 2352 <strong>browser_action</strong><span>, </span> 2353 <span style="display: none; "> and</span> 2354 </span><span> 2355 <strong>options_page</strong><span style="display: none; ">, </span> 2356 <span> and</span> 2357 </span><span> 2358 <strong>tabs</strong><span style="display: none; ">, </span> 2359 <span style="display: none; "> and</span> 2360 </span> 2361 </p> 2362 <p>Chromium Page Benchmarker.</p> 2363 <div class="apicalls"><strong>Calls:</strong> 2364 <ul> 2365 <li> 2366 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 2367 </li><li> 2368 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 2369 </li><li> 2370 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 2371 </li><li> 2372 <code><a href="browserAction.html#method-setTitle">chrome.browserAction.setTitle</a></code> 2373 </li><li> 2374 <code><a href="extension.html#method-connect">chrome.extension.connect</a></code> 2375 </li><li> 2376 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 2377 </li><li> 2378 <code><a href="extension.html#method-getExtensionTabs">chrome.extension.getExtensionTabs</a></code> 2379 </li><li> 2380 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 2381 </li><li> 2382 <code><a href="extension.html#event-onConnect">chrome.extension.onConnect</a></code> 2383 </li><li> 2384 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2385 </li><li> 2386 <code><a href="tabs.html#method-executeScript">chrome.tabs.executeScript</a></code> 2387 </li><li> 2388 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 2389 </li><li> 2390 <code><a href="tabs.html#method-getAllInWindow">chrome.tabs.getAllInWindow</a></code> 2391 </li><li> 2392 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 2393 </li><li> 2394 <code><a href="tabs.html#method-remove">chrome.tabs.remove</a></code> 2395 </li><li> 2396 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 2397 </li><li> 2398 <code><a href="windows.html#method-get">chrome.windows.get</a></code> 2399 </li><li> 2400 <code><a href="windows.html#method-getCurrent">chrome.windows.getCurrent</a></code> 2401 </li> 2402 </ul> 2403 </div> 2404 <div class="sourcefiles"><strong>Source files:</strong> 2405 <ul> 2406 <li> 2407 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/background.html?content-type=text/plain">background.html</a></code> 2408 </li><li> 2409 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery-1.4.2.min.js?content-type=text/plain">jquery/jquery-1.4.2.min.js</a></code> 2410 </li><li> 2411 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery-ui-1.8.4.custom.min.js?content-type=text/plain">jquery/jquery-ui-1.8.4.custom.min.js</a></code> 2412 </li><li> 2413 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.client.js?content-type=text/plain">jquery/jquery.client.js</a></code> 2414 </li><li> 2415 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.flot.dashes.js?content-type=text/plain">jquery/jquery.flot.dashes.js</a></code> 2416 </li><li> 2417 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.flot.js?content-type=text/plain">jquery/jquery.flot.js</a></code> 2418 </li><li> 2419 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.flot.min.js?content-type=text/plain">jquery/jquery.flot.min.js</a></code> 2420 </li><li> 2421 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.flot.navigate.js?content-type=text/plain">jquery/jquery.flot.navigate.js</a></code> 2422 </li><li> 2423 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jquery/jquery.flot.valuelabels.js?content-type=text/plain">jquery/jquery.flot.valuelabels.js</a></code> 2424 </li><li> 2425 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jst/jsevalcontext.js?content-type=text/plain">jst/jsevalcontext.js</a></code> 2426 </li><li> 2427 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jst/jstemplate.js?content-type=text/plain">jst/jstemplate.js</a></code> 2428 </li><li> 2429 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jst/jstemplate_test.js?content-type=text/plain">jst/jstemplate_test.js</a></code> 2430 </li><li> 2431 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/jst/util.js?content-type=text/plain">jst/util.js</a></code> 2432 </li><li> 2433 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/manifest.json?content-type=text/plain">manifest.json</a></code> 2434 </li><li> 2435 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/options.html?content-type=text/plain">options.html</a></code> 2436 </li><li> 2437 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/script.js?content-type=text/plain">script.js</a></code> 2438 </li><li> 2439 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/util/sorttable.js?content-type=text/plain">util/sorttable.js</a></code> 2440 </li><li> 2441 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/util/table2CSV.js?content-type=text/plain">util/table2CSV.js</a></code> 2442 </li> 2443 </ul> 2444 </div> 2445 <div> 2446 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/">Browse source</a> 2447 - <a href="examples/extensions/benchmark.zip">Download source</a> 2448 </div> 2449 </div><div class="sample" id="e6ae17ab4ccfd7e059c8c01f25760ca5d894c7fd"> 2450 <img class="icon" style="display: none; "> 2451 <img class="icon" src="images/sample-default-icon.png"> 2452 <h2 class="name"> 2453 <a href="#e6ae17ab4ccfd7e059c8c01f25760ca5d894c7fd">Print this page</a> 2454 </h2> 2455 <p class="metadata features">Uses 2456 <span> 2457 <strong>background_page</strong><span>, </span> 2458 <span style="display: none; "> and</span> 2459 </span><span> 2460 <strong>browser_action</strong><span style="display: none; ">, </span> 2461 <span> and</span> 2462 </span><span> 2463 <strong>tabs</strong><span style="display: none; ">, </span> 2464 <span style="display: none; "> and</span> 2465 </span> 2466 </p> 2467 <p>Adds a print button to the browser.</p> 2468 <div class="apicalls"><strong>Calls:</strong> 2469 <ul> 2470 <li> 2471 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 2472 </li><li> 2473 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 2474 </li> 2475 </ul> 2476 </div> 2477 <div class="sourcefiles"><strong>Source files:</strong> 2478 <ul> 2479 <li> 2480 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/print/background.html?content-type=text/plain">background.html</a></code> 2481 </li><li> 2482 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/print/manifest.json?content-type=text/plain">manifest.json</a></code> 2483 </li> 2484 </ul> 2485 </div> 2486 <div> 2487 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/print/">Browse source</a> 2488 - <a href="examples/api/browserAction/print.zip">Download source</a> 2489 </div> 2490 </div><div class="sample" id="beff6ecd9677dea0a7c648c5042165b48bb66f09"> 2491 <img class="icon" style="display: none; "> 2492 <img class="icon" src="images/sample-default-icon.png"> 2493 <h2 class="name"> 2494 <a href="#beff6ecd9677dea0a7c648c5042165b48bb66f09">Process Monitor</a> 2495 </h2> 2496 <p class="metadata features">Uses 2497 <span> 2498 <strong>browser_action</strong><span>, </span> 2499 <span style="display: none; "> and</span> 2500 </span><span> 2501 <strong>experimental</strong><span>, </span> 2502 <span style="display: none; "> and</span> 2503 </span><span> 2504 <strong>popup</strong><span style="display: none; ">, </span> 2505 <span> and</span> 2506 </span><span> 2507 <strong>tabs</strong><span style="display: none; ">, </span> 2508 <span style="display: none; "> and</span> 2509 </span> 2510 </p> 2511 <p>Adds a browser action that monitors resource usage of all browser processes.</p> 2512 <div class="apicalls"><strong>Calls:</strong> 2513 <ul> 2514 <li> 2515 <code><a href="experimental.processes.html#event-onUpdated">chrome.experimental.processes.onUpdated</a></code> 2516 </li> 2517 </ul> 2518 </div> 2519 <div class="sourcefiles"><strong>Source files:</strong> 2520 <ul> 2521 <li> 2522 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/process_monitor/manifest.json?content-type=text/plain">manifest.json</a></code> 2523 </li><li> 2524 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.html?content-type=text/plain">popup.html</a></code> 2525 </li> 2526 </ul> 2527 </div> 2528 <div> 2529 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/process_monitor/">Browse source</a> 2530 - <a href="examples/api/processes/process_monitor.zip">Download source</a> 2531 </div> 2532 </div><div class="sample" id="3e8e226d87e431296bb110b4f6eb7eec2ca7a826"> 2533 <img class="icon" src="examples/extensions/proxy_configuration/icon128.png"> 2534 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2535 <h2 class="name"> 2536 <a href="#3e8e226d87e431296bb110b4f6eb7eec2ca7a826">Proxy Settings</a> 2537 </h2> 2538 <p class="metadata features">Uses 2539 <span> 2540 <strong>background_page</strong><span>, </span> 2541 <span style="display: none; "> and</span> 2542 </span><span> 2543 <strong>browser_action</strong><span>, </span> 2544 <span style="display: none; "> and</span> 2545 </span><span> 2546 <strong>experimental</strong><span>, </span> 2547 <span style="display: none; "> and</span> 2548 </span><span> 2549 <strong>popup</strong><span style="display: none; ">, </span> 2550 <span> and</span> 2551 </span><span> 2552 <strong>proxy</strong><span style="display: none; ">, </span> 2553 <span style="display: none; "> and</span> 2554 </span> 2555 </p> 2556 <p>Set Chrome-specific proxies; a demonstration of Chrome's Proxy API</p> 2557 <div class="apicalls"><strong>Calls:</strong> 2558 <ul> 2559 <li> 2560 <code><a href="browserAction.html#method-setBadgeBackgroundColor">chrome.browserAction.setBadgeBackgroundColor</a></code> 2561 </li><li> 2562 <code><a href="browserAction.html#method-setBadgeText">chrome.browserAction.setBadgeText</a></code> 2563 </li><li> 2564 <code><a href="browserAction.html#method-setTitle">chrome.browserAction.setTitle</a></code> 2565 </li><li> 2566 <code><a href="experimental.proxy.html#event-onProxyError">chrome.experimental.proxy.onProxyError</a></code> 2567 </li><li> 2568 <code><a href="extension.html#method-isAllowedIncognitoAccess">chrome.extension.isAllowedIncognitoAccess</a></code> 2569 </li><li> 2570 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 2571 </li><li> 2572 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 2573 </li><li> 2574 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 2575 </li> 2576 </ul> 2577 </div> 2578 <div class="sourcefiles"><strong>Source files:</strong> 2579 <ul> 2580 <li> 2581 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 2582 </li><li> 2583 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/background.html?content-type=text/plain">background.html</a></code> 2584 </li><li> 2585 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/manifest.json?content-type=text/plain">manifest.json</a></code> 2586 </li><li> 2587 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/popup.html?content-type=text/plain">popup.html</a></code> 2588 </li><li> 2589 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/proxy_error_handler.js?content-type=text/plain">proxy_error_handler.js</a></code> 2590 </li><li> 2591 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/proxy_form_controller.js?content-type=text/plain">proxy_form_controller.js</a></code> 2592 </li><li> 2593 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/jsunittest.js?content-type=text/plain">test/jsunittest.js</a></code> 2594 </li><li> 2595 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/proxy_form_controller_test.html?content-type=text/plain">test/proxy_form_controller_test.html</a></code> 2596 </li><li> 2597 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/proxy_form_controller_test.js?content-type=text/plain">test/proxy_form_controller_test.js</a></code> 2598 </li><li> 2599 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/unittest.css?content-type=text/plain">test/unittest.css</a></code> 2600 </li> 2601 </ul> 2602 </div> 2603 <div> 2604 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/proxy_configuration/">Browse source</a> 2605 - <a href="examples/extensions/proxy_configuration.zip">Download source</a> 2606 </div> 2607 </div><div class="sample" id="56a8d2ac24ca7bba78fd88ad57f43fc13c784497"> 2608 <img class="icon" src="examples/extensions/oauth_contacts/img/icon-128.png"> 2609 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2610 <h2 class="name"> 2611 <a href="#56a8d2ac24ca7bba78fd88ad57f43fc13c784497">Sample - OAuth Contacts</a> 2612 </h2> 2613 <p class="metadata features">Uses 2614 <span> 2615 <strong>background_page</strong><span>, </span> 2616 <span style="display: none; "> and</span> 2617 </span><span> 2618 <strong>browser_action</strong><span style="display: none; ">, </span> 2619 <span> and</span> 2620 </span><span> 2621 <strong>tabs</strong><span style="display: none; ">, </span> 2622 <span style="display: none; "> and</span> 2623 </span> 2624 </p> 2625 <p>Uses OAuth to connect to Google's contacts service and display a list of your contacts.</p> 2626 <div class="apicalls"><strong>Calls:</strong> 2627 <ul> 2628 <li> 2629 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 2630 </li><li> 2631 <code><a href="browserAction.html#method-setIcon">chrome.browserAction.setIcon</a></code> 2632 </li><li> 2633 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBackgroundPage</a></code> 2634 </li><li> 2635 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 2636 </li><li> 2637 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2638 </li><li> 2639 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 2640 </li><li> 2641 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 2642 </li><li> 2643 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 2644 </li><li> 2645 <code><a href="tabs.html#method-remove">chrome.tabs.remove</a></code> 2646 </li> 2647 </ul> 2648 </div> 2649 <div class="sourcefiles"><strong>Source files:</strong> 2650 <ul> 2651 <li> 2652 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/background.html?content-type=text/plain">background.html</a></code> 2653 </li><li> 2654 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/chrome_ex_oauth.html?content-type=text/plain">chrome_ex_oauth.html</a></code> 2655 </li><li> 2656 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/chrome_ex_oauth.js?content-type=text/plain">chrome_ex_oauth.js</a></code> 2657 </li><li> 2658 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/chrome_ex_oauthsimple.js?content-type=text/plain">chrome_ex_oauthsimple.js</a></code> 2659 </li><li> 2660 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/contacts.html?content-type=text/plain">contacts.html</a></code> 2661 </li><li> 2662 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/manifest.json?content-type=text/plain">manifest.json</a></code> 2663 </li> 2664 </ul> 2665 </div> 2666 <div> 2667 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/">Browse source</a> 2668 - <a href="examples/extensions/oauth_contacts.zip">Download source</a> 2669 </div> 2670 </div><div class="sample" id="38f6e1e17756ede38b1364c7114a738ca717dcbb"> 2671 <img class="icon" src="examples/api/infobars/sandwichbar/sandwich-128.png"> 2672 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 2673 <h2 class="name"> 2674 <a href="#38f6e1e17756ede38b1364c7114a738ca717dcbb">SandwichBar</a> 2675 </h2> 2676 <p class="metadata features">Uses 2677 <span> 2678 <strong>background_page</strong><span style="display: none; ">, </span> 2679 <span> and</span> 2680 </span><span> 2681 <strong>experimental</strong><span style="display: none; ">, </span> 2682 <span style="display: none; "> and</span> 2683 </span> 2684 </p> 2685 <p>Shows an infobar on pages which contain the word 'sandwich'</p> 2686 <div class="apicalls"><strong>Calls:</strong> 2687 <ul> 2688 <li> 2689 <code><a href="experimental.infobars.html#method-show">chrome.experimental.infobars.show</a></code> 2690 </li><li> 2691 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 2692 </li><li> 2693 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 2694 </li> 2695 </ul> 2696 </div> 2697 <div class="sourcefiles"><strong>Source files:</strong> 2698 <ul> 2699 <li> 2700 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/background.html?content-type=text/plain">background.html</a></code> 2701 </li><li> 2702 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/contentscript.js?content-type=text/plain">contentscript.js</a></code> 2703 </li><li> 2704 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/infobar.html?content-type=text/plain">infobar.html</a></code> 2705 </li><li> 2706 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/manifest.json?content-type=text/plain">manifest.json</a></code> 2707 </li> 2708 </ul> 2709 </div> 2710 <div> 2711 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/">Browse source</a> 2712 - <a href="examples/api/infobars/sandwichbar.zip">Download source</a> 2713 </div> 2714 </div><div class="sample" id="fc89b35755483af30b66cd72cefa34a43a3e8312"> 2715 <img class="icon" style="display: none; "> 2716 <img class="icon" src="images/sample-default-icon.png"> 2717 <h2 class="name"> 2718 <a href="#fc89b35755483af30b66cd72cefa34a43a3e8312">Show Tabs in Process</a> 2719 </h2> 2720 <p class="metadata features">Uses 2721 <span> 2722 <strong>browser_action</strong><span>, </span> 2723 <span style="display: none; "> and</span> 2724 </span><span> 2725 <strong>experimental</strong><span>, </span> 2726 <span style="display: none; "> and</span> 2727 </span><span> 2728 <strong>popup</strong><span style="display: none; ">, </span> 2729 <span> and</span> 2730 </span><span> 2731 <strong>tabs</strong><span style="display: none; ">, </span> 2732 <span style="display: none; "> and</span> 2733 </span> 2734 </p> 2735 <p>Adds a browser action showing which tabs share the current tab's process.</p> 2736 <div class="apicalls"><strong>Calls:</strong> 2737 <ul> 2738 <li> 2739 <code><a href="experimental.processes.html#method-getProcessIdForTab">chrome.experimental.processes.getProcessIdForTab</a></code> 2740 </li><li> 2741 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 2742 </li><li> 2743 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 2744 </li><li> 2745 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 2746 </li><li> 2747 <code><a href="windows.html#method-get">chrome.windows.get</a></code> 2748 </li><li> 2749 <code><a href="windows.html#method-getAll">chrome.windows.getAll</a></code> 2750 </li><li> 2751 <code><a href="windows.html#method-getCurrent">chrome.windows.getCurrent</a></code> 2752 </li><li> 2753 <code><a href="windows.html#method-update">chrome.windows.update</a></code> 2754 </li> 2755 </ul> 2756 </div> 2757 <div class="sourcefiles"><strong>Source files:</strong> 2758 <ul> 2759 <li> 2760 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/show_tabs/manifest.json?content-type=text/plain">manifest.json</a></code> 2761 </li><li> 2762 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/show_tabs/popup.html?content-type=text/plain">popup.html</a></code> 2763 </li> 2764 </ul> 2765 </div> 2766 <div> 2767 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/show_tabs/">Browse source</a> 2768 - <a href="examples/api/processes/show_tabs.zip">Download source</a> 2769 </div> 2770 </div><div class="sample" id="230463f2d5c3d4d0ca13c230e1f00f2aae0a8a64"> 2771 <img class="icon" style="display: none; "> 2772 <img class="icon" src="images/sample-default-icon.png"> 2773 <h2 class="name"> 2774 <a href="#230463f2d5c3d4d0ca13c230e1f00f2aae0a8a64">Tab Inspector</a> 2775 </h2> 2776 <p class="metadata features">Uses 2777 <span> 2778 <strong>background_page</strong><span>, </span> 2779 <span style="display: none; "> and</span> 2780 </span><span> 2781 <strong>browser_action</strong><span style="display: none; ">, </span> 2782 <span> and</span> 2783 </span><span> 2784 <strong>tabs</strong><span style="display: none; ">, </span> 2785 <span style="display: none; "> and</span> 2786 </span> 2787 </p> 2788 <p>Utility for working with the extension tabs api</p> 2789 <div class="apicalls"><strong>Calls:</strong> 2790 <ul> 2791 <li> 2792 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 2793 </li><li> 2794 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 2795 </li><li> 2796 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2797 </li><li> 2798 <code><a href="tabs.html#method-get">chrome.tabs.get</a></code> 2799 </li><li> 2800 <code><a href="tabs.html#method-getAllInWindow">chrome.tabs.getAllInWindow</a></code> 2801 </li><li> 2802 <code><a href="tabs.html#method-getSelected">chrome.tabs.getSelected</a></code> 2803 </li><li> 2804 <code><a href="tabs.html#method-move">chrome.tabs.move</a></code> 2805 </li><li> 2806 <code><a href="tabs.html#event-onAttached">chrome.tabs.onAttached</a></code> 2807 </li><li> 2808 <code><a href="tabs.html#event-onCreated">chrome.tabs.onCreated</a></code> 2809 </li><li> 2810 <code><a href="tabs.html#event-onDetached">chrome.tabs.onDetached</a></code> 2811 </li><li> 2812 <code><a href="tabs.html#event-onMoved">chrome.tabs.onMoved</a></code> 2813 </li><li> 2814 <code><a href="tabs.html#event-onRemoved">chrome.tabs.onRemoved</a></code> 2815 </li><li> 2816 <code><a href="tabs.html#event-onSelectionChanged">chrome.tabs.onSelectionChanged</a></code> 2817 </li><li> 2818 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 2819 </li><li> 2820 <code><a href="tabs.html#method-remove">chrome.tabs.remove</a></code> 2821 </li><li> 2822 <code><a href="tabs.html#method-update">chrome.tabs.update</a></code> 2823 </li><li> 2824 <code><a href="windows.html#method-create">chrome.windows.create</a></code> 2825 </li><li> 2826 <code><a href="windows.html#method-get">chrome.windows.get</a></code> 2827 </li><li> 2828 <code><a href="windows.html#method-getAll">chrome.windows.getAll</a></code> 2829 </li><li> 2830 <code><a href="windows.html#method-getCurrent">chrome.windows.getCurrent</a></code> 2831 </li><li> 2832 <code><a href="windows.html#method-getLastFocused">chrome.windows.getLastFocused</a></code> 2833 </li><li> 2834 <code><a href="windows.html#event-onCreated">chrome.windows.onCreated</a></code> 2835 </li><li> 2836 <code><a href="windows.html#event-onFocusChanged">chrome.windows.onFocusChanged</a></code> 2837 </li><li> 2838 <code><a href="windows.html#event-onRemoved">chrome.windows.onRemoved</a></code> 2839 </li><li> 2840 <code><a href="windows.html#method-remove">chrome.windows.remove</a></code> 2841 </li><li> 2842 <code><a href="windows.html#method-update">chrome.windows.update</a></code> 2843 </li> 2844 </ul> 2845 </div> 2846 <div class="sourcefiles"><strong>Source files:</strong> 2847 <ul> 2848 <li> 2849 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/background.html?content-type=text/plain">background.html</a></code> 2850 </li><li> 2851 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/jstemplate_compiled.js?content-type=text/plain">jstemplate_compiled.js</a></code> 2852 </li><li> 2853 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/manifest.json?content-type=text/plain">manifest.json</a></code> 2854 </li><li> 2855 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html?content-type=text/plain">tabs_api.html</a></code> 2856 </li> 2857 </ul> 2858 </div> 2859 <div> 2860 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/">Browse source</a> 2861 - <a href="examples/api/tabs/inspector.zip">Download source</a> 2862 </div> 2863 </div><div class="sample" id="e1697cacebad05218798bf3e8a0f724517f0e8c3"> 2864 <img class="icon" style="display: none; "> 2865 <img class="icon" src="images/sample-default-icon.png"> 2866 <h2 class="name"> 2867 <a href="#e1697cacebad05218798bf3e8a0f724517f0e8c3">Test Screenshot Extension</a> 2868 </h2> 2869 <p class="metadata features">Uses 2870 <span> 2871 <strong>background_page</strong><span>, </span> 2872 <span style="display: none; "> and</span> 2873 </span><span> 2874 <strong>browser_action</strong><span style="display: none; ">, </span> 2875 <span> and</span> 2876 </span><span> 2877 <strong>tabs</strong><span style="display: none; ">, </span> 2878 <span style="display: none; "> and</span> 2879 </span> 2880 </p> 2881 <p>Demonstrate screenshot functionality in the chrome.tabs api.</p> 2882 <div class="apicalls"><strong>Calls:</strong> 2883 <ul> 2884 <li> 2885 <code><a href="browserAction.html#event-onClicked">chrome.browserAction.onClicked</a></code> 2886 </li><li> 2887 <code><a href="extension.html#method-getURL">chrome.extension.getURL</a></code> 2888 </li><li> 2889 <code><a href="extension.html#method-getViews">chrome.extension.getViews</a></code> 2890 </li><li> 2891 <code><a href="tabs.html#method-captureVisibleTab">chrome.tabs.captureVisibleTab</a></code> 2892 </li><li> 2893 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2894 </li><li> 2895 <code><a href="tabs.html#event-onUpdated">chrome.tabs.onUpdated</a></code> 2896 </li> 2897 </ul> 2898 </div> 2899 <div class="sourcefiles"><strong>Source files:</strong> 2900 <ul> 2901 <li> 2902 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/background.html?content-type=text/plain">background.html</a></code> 2903 </li><li> 2904 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/manifest.json?content-type=text/plain">manifest.json</a></code> 2905 </li><li> 2906 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/screenshot.html?content-type=text/plain">screenshot.html</a></code> 2907 </li><li> 2908 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/screenshot.js?content-type=text/plain">screenshot.js</a></code> 2909 </li> 2910 </ul> 2911 </div> 2912 <div> 2913 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/">Browse source</a> 2914 - <a href="examples/api/tabs/screenshot.zip">Download source</a> 2915 </div> 2916 </div><div class="sample" id="b3de91ab04b7d7a2670ca7ee9d740eb42cead0b6"> 2917 <img class="icon" style="display: none; "> 2918 <img class="icon" src="images/sample-default-icon.png"> 2919 <h2 class="name"> 2920 <a href="#b3de91ab04b7d7a2670ca7ee9d740eb42cead0b6">Typed URL History</a> 2921 </h2> 2922 <p class="metadata features">Uses 2923 <span> 2924 <strong>browser_action</strong><span>, </span> 2925 <span style="display: none; "> and</span> 2926 </span><span> 2927 <strong>history</strong><span style="display: none; ">, </span> 2928 <span> and</span> 2929 </span><span> 2930 <strong>tabs</strong><span style="display: none; ">, </span> 2931 <span style="display: none; "> and</span> 2932 </span> 2933 </p> 2934 <p>Reads your history, and shows the top ten pages you go to by typing the URL.</p> 2935 <div class="apicalls"><strong>Calls:</strong> 2936 <ul> 2937 <li> 2938 <code><a href="history.html#method-getVisits">chrome.history.getVisits</a></code> 2939 </li><li> 2940 <code><a href="history.html#method-search">chrome.history.search</a></code> 2941 </li><li> 2942 <code><a href="tabs.html#method-create">chrome.tabs.create</a></code> 2943 </li> 2944 </ul> 2945 </div> 2946 <div class="sourcefiles"><strong>Source files:</strong> 2947 <ul> 2948 <li> 2949 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/manifest.json?content-type=text/plain">manifest.json</a></code> 2950 </li><li> 2951 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/typedUrls.html?content-type=text/plain">typedUrls.html</a></code> 2952 </li><li> 2953 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/typedUrls.js?content-type=text/plain">typedUrls.js</a></code> 2954 </li> 2955 </ul> 2956 </div> 2957 <div> 2958 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/">Browse source</a> 2959 - <a href="examples/api/history/showHistory.zip">Download source</a> 2960 </div> 2961 </div><div class="sample" id="a3c674f7eb93621c590562ad3fa04de4f03f53a0"> 2962 <img class="icon" style="display: none; "> 2963 <img class="icon" src="images/sample-default-icon.png"> 2964 <h2 class="name"> 2965 <a href="#a3c674f7eb93621c590562ad3fa04de4f03f53a0">WebNavigation Tech Demo</a> 2966 </h2> 2967 <p class="metadata features">Uses 2968 <span> 2969 <strong>background_page</strong><span>, </span> 2970 <span style="display: none; "> and</span> 2971 </span><span> 2972 <strong>browser_action</strong><span>, </span> 2973 <span style="display: none; "> and</span> 2974 </span><span> 2975 <strong>experimental</strong><span>, </span> 2976 <span style="display: none; "> and</span> 2977 </span><span> 2978 <strong>extension</strong><span>, </span> 2979 <span style="display: none; "> and</span> 2980 </span><span> 2981 <strong>popup</strong><span style="display: none; ">, </span> 2982 <span> and</span> 2983 </span><span> 2984 <strong>webNavigation</strong><span style="display: none; ">, </span> 2985 <span style="display: none; "> and</span> 2986 </span> 2987 </p> 2988 <p>Demonstration of the WebNavigation extension API.</p> 2989 <div class="apicalls"><strong>Calls:</strong> 2990 <ul> 2991 <li> 2992 <code><a href="experimental.webNavigation.html#event-onBeforeNavigate">chrome.experimental.webNavigation.onBeforeNavigate</a></code> 2993 </li><li> 2994 <code><a href="experimental.webNavigation.html#event-onBeforeRetarget">chrome.experimental.webNavigation.onBeforeRetarget</a></code> 2995 </li><li> 2996 <code><a href="experimental.webNavigation.html#event-onCommitted">chrome.experimental.webNavigation.onCommitted</a></code> 2997 </li><li> 2998 <code><a href="experimental.webNavigation.html#event-onCompleted">chrome.experimental.webNavigation.onCompleted</a></code> 2999 </li><li> 3000 <code><a href="experimental.webNavigation.html#event-onErrorOccurred">chrome.experimental.webNavigation.onErrorOccurred</a></code> 3001 </li><li> 3002 <code><a href="extension.html#event-onRequest">chrome.extension.onRequest</a></code> 3003 </li><li> 3004 <code><a href="extension.html#method-sendRequest">chrome.extension.sendRequest</a></code> 3005 </li><li> 3006 <code><a href="i18n.html#method-getMessage">chrome.i18n.getMessage</a></code> 3007 </li> 3008 </ul> 3009 </div> 3010 <div class="sourcefiles"><strong>Source files:</strong> 3011 <ul> 3012 <li> 3013 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/_locales/en/messages.json?content-type=text/plain">_locales/en/messages.json</a></code> 3014 </li><li> 3015 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html?content-type=text/plain">background.html</a></code> 3016 </li><li> 3017 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/manifest.json?content-type=text/plain">manifest.json</a></code> 3018 </li><li> 3019 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js?content-type=text/plain">navigation_collector.js</a></code> 3020 </li><li> 3021 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/popup.html?content-type=text/plain">popup.html</a></code> 3022 </li> 3023 </ul> 3024 </div> 3025 <div> 3026 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/webNavigation/basic/">Browse source</a> 3027 - <a href="examples/api/webNavigation/basic.zip">Download source</a> 3028 </div> 3029 </div><div class="sample" id="0fa4abe6545f0316fea7cfa07c53aa48c4f3d018"> 3030 <img class="icon" src="examples/api/extension/isAllowedAccess/sample-128.png"> 3031 <img class="icon" src="images/sample-default-icon.png" style="display: none; "> 3032 <h2 class="name"> 3033 <a href="#0fa4abe6545f0316fea7cfa07c53aa48c4f3d018">`extension.isAllowed???Access` Example</a> 3034 </h2> 3035 <p class="metadata features">Uses 3036 <span> 3037 <strong>browser_action</strong><span style="display: none; ">, </span> 3038 <span style="display: none; "> and</span> 3039 </span> 3040 </p> 3041 <p>Demonstrates the `extension.isAllowed???Access` APIs</p> 3042 <div class="apicalls"><strong>Calls:</strong> 3043 <ul> 3044 <li> 3045 <code><a href="extension.html#method-isAllowedFileSchemeAccess">chrome.extension.isAllowedFileSchemeAccess</a></code> 3046 </li><li> 3047 <code><a href="extension.html#method-isAllowedIncognitoAccess">chrome.extension.isAllowedIncognitoAccess</a></code> 3048 </li> 3049 </ul> 3050 </div> 3051 <div class="sourcefiles"><strong>Source files:</strong> 3052 <ul> 3053 <li> 3054 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/manifest.json?content-type=text/plain">manifest.json</a></code> 3055 </li><li> 3056 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/popup.html?content-type=text/plain">popup.html</a></code> 3057 </li><li> 3058 <code><a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/sample.css?content-type=text/plain">sample.css</a></code> 3059 </li> 3060 </ul> 3061 </div> 3062 <div> 3063 <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/">Browse source</a> 3064 - <a href="examples/api/extension/isAllowedAccess.zip">Download source</a> 3065 </div> 3066 </div> 3067 3068 <div id="noresults" style="display:none"> 3069 Sorry, no results were found. 3070 </div> 3071 </div> 3072 3073 <!-- API PAGE --> 3074 <div class="apiPage" style="display: none; "> 3075 <a name="apiReference"></a> 3076 <h2>API reference: chrome.apiname </h2> 3077 3078 <!-- PROPERTIES --> 3079 <div class="apiGroup"> 3080 <a name="properties"></a> 3081 <h3 id="properties">Properties</h3> 3082 3083 <div> 3084 <a></a> 3085 <h4>getLastError</h4> 3086 <div class="summary"> 3087 <!-- Note: intentionally longer 80 columns --> 3088 <span>chrome.extension</span><span>lastError</span> 3089 </div> 3090 <div> 3091 </div> 3092 </div> 3093 3094 </div> <!-- /apiGroup --> 3095 3096 <!-- METHODS --> 3097 <div id="methodsTemplate" class="apiGroup"> 3098 <a></a> 3099 <h3>Methods</h3> 3100 3101 <!-- iterates over all functions --> 3102 <div class="apiItem"> 3103 <a></a> <!-- method-anchor --> 3104 <h4>method name</h4> 3105 3106 <div class="summary"><span>void</span> 3107 <!-- Note: intentionally longer 80 columns --> 3108 <span>chrome.module.methodName</span>(<span><span>, </span><span></span> 3109 <var><span></span></var></span>)</div> 3110 3111 <div class="description"> 3112 <p class="todo">Undocumented.</p> 3113 <p> 3114 A description from the json schema def of the function goes here. 3115 </p> 3116 3117 <!-- PARAMETERS --> 3118 <h4>Parameters</h4> 3119 <dl> 3120 <div> 3121 <div> 3122 </div> 3123 </div> 3124 </dl> 3125 3126 <!-- RETURNS --> 3127 <h4>Returns</h4> 3128 <dl> 3129 <div> 3130 <div> 3131 </div> 3132 </div> 3133 </dl> 3134 3135 <!-- CALLBACK --> 3136 <div> 3137 <div> 3138 <h4>Callback function</h4> 3139 <p> 3140 The callback <em>parameter</em> should specify a function 3141 that looks like this: 3142 </p> 3143 <p> 3144 If you specify the <em>callback</em> parameter, it should 3145 specify a function that looks like this: 3146 </p> 3147 3148 <!-- Note: intentionally longer 80 columns --> 3149 <pre>function(<span>Type param1, Type param2</span>) <span class="subdued">{...}</span>;</pre> 3150 <dl> 3151 <div> 3152 <div> 3153 </div> 3154 </div> 3155 </dl> 3156 </div> 3157 </div> 3158 3159 <!-- MIN_VERSION --> 3160 <p> 3161 This function was added in version <b><span></span></b>. 3162 If you require this function, the manifest key 3163 <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a> 3164 can ensure that your extension won't be run in an earlier browser version. 3165 </p> 3166 </div> <!-- /description --> 3167 3168 </div> <!-- /apiItem --> 3169 3170 </div> <!-- /apiGroup --> 3171 3172 <!-- EVENTS --> 3173 <div id="eventsTemplate" class="apiGroup"> 3174 <a></a> 3175 <h3>Events</h3> 3176 <!-- iterates over all events --> 3177 <div class="apiItem"> 3178 <a></a> 3179 <h4>event name</h4> 3180 3181 <div class="summary"> 3182 <!-- Note: intentionally longer 80 columns --> 3183 <span class="subdued">chrome.bookmarks</span><span>onEvent</span><span class="subdued">.addListener</span>(function(<span>Type param1, Type param2</span>) <span class="subdued">{...}</span>); 3184 </div> 3185 3186 <div class="description"> 3187 <p class="todo">Undocumented.</p> 3188 <p> 3189 A description from the json schema def of the event goes here. 3190 </p> 3191 3192 <!-- PARAMETERS --> 3193 <div> 3194 <h4>Parameters</h4> 3195 <dl> 3196 <div> 3197 <div> 3198 </div> 3199 </div> 3200 </dl> 3201 </div> 3202 </div> <!-- /decription --> 3203 3204 </div> <!-- /apiItem --> 3205 3206 </div> <!-- /apiGroup --> 3207 3208 <!-- TYPES --> 3209 <div class="apiGroup"> 3210 <a name="types"></a> 3211 <h3 id="types">Types</h3> 3212 3213 <!-- iterates over all types --> 3214 <div class="apiItem"> 3215 <a></a> 3216 <h4>type name</h4> 3217 3218 <div> 3219 </div> 3220 3221 </div> <!-- /apiItem --> 3222 3223 </div> <!-- /apiGroup --> 3224 3225 </div> <!-- /apiPage --> 3226 </div> <!-- /gc-pagecontent --> 3227 </div> <!-- /g-section --> 3228 </div> <!-- /codesiteContent --> 3229 <div id="gc-footer" --=""> 3230 <div class="text"> 3231 <p> 3232 Except as otherwise <a href="http://code.google.com/policies.html#restrictions">noted</a>, 3233 the content of this page is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons 3234 Attribution 3.0 License</a>, and code samples are licensed under the 3235 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD License</a>. 3236 </p> 3237 <p> 3238 2011 Google 3239 </p> 3240 3241 <!-- begin analytics --> 3242 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> 3243 <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> 3244 3245 <script type="text/javascript"> 3246 // chrome doc tracking 3247 try { 3248 var engdocs = _gat._getTracker("YT-10763712-2"); 3249 engdocs._trackPageview(); 3250 } catch(err) {} 3251 3252 // code.google.com site-wide tracking 3253 try { 3254 _uacct="UA-18071-1"; 3255 _uanchor=1; 3256 _uff=0; 3257 urchinTracker(); 3258 } 3259 catch(e) {/* urchinTracker not available. */} 3260 </script> 3261 <!-- end analytics --> 3262 </div> 3263 </div> <!-- /gc-footer --> 3264 </div> <!-- /gc-container --> 3265 </body></html> 3266