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