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