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