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