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