OLD | NEW |
(Empty) | |
| 1 <h1 class="page_title">chrome.* APIs</h1> |
| 2 <p class="doc-family extensions"> |
| 3 Chrome provides APIs such as |
| 4 <code>chrome.bookmarks</code> and <code>chrome.tab</code> |
| 5 so that extensions can interact with the browser. |
| 6 </p> |
| 7 |
| 8 <p class="doc-family apps"> |
| 9 Chrome provides many special-purpose APIs like |
| 10 <code>chrome.runtime</code> and <code>chrome.alarms</code> |
| 11 to packaged apps. |
| 12 </p> |
| 13 |
| 14 <h2 id="supported">Supported APIs</h2> |
| 15 |
| 16 <p> |
| 17 Here are the supported chrome.* APIs: |
| 18 </p> |
| 19 |
| 20 <ul> |
| 21 {{#api_list.chrome}} |
| 22 <li><a href="{{@}}.html">{{@}}</a></li> |
| 23 {{/}} |
| 24 </ul> |
| 25 |
| 26 <h2 id="experimental">Experimental APIs</h2> |
| 27 |
| 28 <p> |
| 29 Chrome also has |
| 30 <a href="experimental.html">experimental APIs</a>, |
| 31 some of which will become supported APIs |
| 32 in future releases of Chrome. |
| 33 </p> |
| 34 |
| 35 <h2 id="conventions">API conventions</h2> |
| 36 |
| 37 <p> |
| 38 Unless the doc says otherwise, |
| 39 methods in the chrome.* APIs are <b>asynchronous</b>: |
| 40 they return immediately, |
| 41 without waiting for the operation to finish. |
| 42 If you need to know the outcome of an operation, |
| 43 then you pass a callback function into the method. |
| 44 For more information, watch this video: |
| 45 </p> |
| 46 |
| 47 <p class="doc-family extensions"> |
| 48 <iframe title="YouTube video player" width="640" height="390" src="http://www.yo
utube.com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe> |
| 49 </p> |
OLD | NEW |