OLD | NEW |
1 <div id="pageData-name" class="pageData">chrome.* APIs</div> | 1 <div id="pageData-name" class="pageData">chrome.* APIs</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 | 3 |
4 <p> | 4 <p> |
5 Google Chrome provides APIs such as | 5 Google Chrome provides APIs such as |
6 <code>chrome.bookmarks</code> and <code>chrome.tab</code> | 6 <code>chrome.bookmarks</code> and <code>chrome.tab</code> |
7 so that extensions can interact with the browser. | 7 so that extensions can interact with the browser. |
8 </p> | 8 </p> |
9 | 9 |
10 <h2 id="supported">Supported APIs</h2> | 10 <h2 id="supported">Supported APIs</h2> |
11 | 11 |
12 <p> | 12 <p> |
13 Here are the supported chrome.* APIs: | 13 Here are the supported chrome.* APIs: |
14 </p> | 14 </p> |
15 | 15 |
16 <ul> | 16 <ul> |
17 <li jsselect="stableAPIs();"><a jsvalues=".href: $this + '.html'" jscontent="$
this" href="bookmarks.html" js>bookmarks</a> | 17 <li jsselect="listChromeAPIs('extension', false);"><a jsvalues=".href: $this +
'.html'" jscontent="$this" href="bookmarks.html" js>bookmarks</a> |
18 </li> | 18 </li> |
19 </ul> | 19 </ul> |
20 | 20 |
21 <h2 id="experimental">Experimental APIs</h2> | 21 <h2 id="experimental">Experimental APIs</h2> |
22 | 22 |
23 <p> | 23 <p> |
24 Google Chrome also has | 24 Google Chrome also has |
25 <a href="experimental.html">experimental APIs</a>, | 25 <a href="experimental.html">experimental APIs</a>, |
26 some of which will become supported APIs | 26 some of which will become supported APIs |
27 in future releases of Chrome. | 27 in future releases of Chrome. |
28 </p> | 28 </p> |
29 | 29 |
30 <h2 id="conventions">API conventions</h2> | 30 <h2 id="conventions">API conventions</h2> |
31 | 31 |
32 <p> | 32 <p> |
33 Unless the doc says otherwise, | 33 Unless the doc says otherwise, |
34 methods in the chrome.* APIs are <b>asynchronous</b>: | 34 methods in the chrome.* APIs are <b>asynchronous</b>: |
35 they return immediately, | 35 they return immediately, |
36 without waiting for the operation to finish. | 36 without waiting for the operation to finish. |
37 If you need to know the outcome of an operation, | 37 If you need to know the outcome of an operation, |
38 then you pass a callback function into the method. | 38 then you pass a callback function into the method. |
39 For more information, watch this video: | 39 For more information, watch this video: |
40 </p> | 40 </p> |
41 | 41 |
42 <p> | 42 <p> |
43 <iframe title="YouTube video player" width="640" height="390" src="http://www.yo
utube.com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe> | 43 <iframe title="YouTube video player" width="640" height="390" src="http://www.yo
utube.com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe> |
44 </p> | 44 </p> |
OLD | NEW |