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></li> | 17 <li jsselect="stableAPIs();"><a jsvalues=".href: $this + '.html'" jscontent="$
this" href="bookmarks.html" js>bookmarks</a></li> |
18 </ul> | 18 </ul> |
19 | 19 |
20 <h2 id="experimental">Experimental APIs</h2> | 20 <h2 id="experimental">Experimental APIs</h2> |
21 | 21 |
22 <p> | 22 <p> |
23 Google Chrome also has some | 23 Google Chrome also has some |
24 <a href="http://code.google.com/chrome/extensions/dev/experimental.html">experim
ental APIs</a>, | 24 <a href="experimental.html">experimental APIs</a>, |
25 which give you access to | 25 which give you access to |
26 functionality such as process information and history. | 26 functionality such as process information and history. |
27 </p> | 27 </p> |
28 | 28 |
29 <h2 id="conventions">API conventions</h2> | 29 <h2 id="conventions">API conventions</h2> |
30 | 30 |
31 <p> | 31 <p> |
32 Unless the doc says otherwise, | 32 Unless the doc says otherwise, |
33 methods in the chrome.* APIs are asynchronous: | 33 methods in the chrome.* APIs are asynchronous: |
34 they return immediately, | 34 they return immediately, |
35 without waiting for the operation to finish. | 35 without waiting for the operation to finish. |
36 If you need to know the outcome of an operation, | 36 If you need to know the outcome of an operation, |
37 then you pass a callback function into the method. | 37 then you pass a callback function into the method. |
38 For more information, see the video | 38 For more information, see the video |
39 <a href="http://www.youtube.com/watch?v=bmxr75CV36A&feature=PlayList&p=CA101D6A8
5FE9D4B&index=2">Extension API Design</a>. | 39 <a href="http://www.youtube.com/watch?v=bmxr75CV36A&feature=PlayList&p=CA101D6A8
5FE9D4B&index=2">Extension API Design</a>. |
40 </p> | 40 </p> |
OLD | NEW |