OLD | NEW |
---|---|
1 <h1 class="page_title">Chrome Platform APIs</h1> | 1 <h1 class="page_title">Chrome Platform APIs</h1> |
2 {{?is_apps}} | 2 {{?is_apps}} |
3 <p class="doc-family apps"> | 3 <p class="doc-family apps"> |
4 Chrome provides many special-purpose APIs like | 4 Chrome provides many special-purpose APIs like |
5 <code>chrome.runtime</code> and <code>chrome.alarms</code> | 5 <code>chrome.runtime</code> and <code>chrome.alarms</code> |
6 to Chrome Apps. | 6 to Chrome Apps. |
7 </p> | 7 </p> |
8 {{:is_apps}} | 8 {{:is_apps}} |
not at google - send to devlin
2013/10/31 00:05:26
with respect to the comment below: just delete the
hukun
2013/11/01 09:31:52
Done
| |
9 <p class="doc-family extensions"> | 9 <p class="doc-family extensions"> |
10 Chrome provides APIs such as | 10 Chrome provides APIs such as |
11 <code>chrome.bookmarks</code> and <code>chrome.tab</code> | 11 <code>chrome.bookmarks</code> and <code>chrome.tab</code> |
12 so that extensions can interact with the browser. | 12 so that extensions can interact with the browser. |
13 </p> | 13 </p> |
14 {{/is_apps}} | 14 {{/is_apps}} |
15 | 15 |
16 <h2 id="supported">Supported APIs</h2> | 16 <h2 id="supported">Supported APIs</h2> |
17 | 17 |
18 <p> | 18 <p> |
19 Here are the supported chrome.* APIs: | 19 Here are the supported chrome.* APIs: |
20 </p> | 20 </p> |
21 | 21 |
22 <ul> | 22 <p> |
23 Stable APIs | |
not at google - send to devlin
2013/10/31 00:05:26
h2 not p
hukun
2013/11/01 09:31:52
Done
| |
24 </p> | |
25 <table> | |
26 <tr><td>API Name</td><td>API Description</td><td>Chrome Version</td></tr> | |
not at google - send to devlin
2013/10/31 00:05:26
use th here. Also I'd just go with "Name" and "Des
hukun
2013/11/01 09:31:52
Done
| |
23 {{?is_apps}} | 27 {{?is_apps}} |
24 {{#api_list.apps.chrome}} | 28 {{#api_list.apps.chrome.stable}} |
not at google - send to devlin
2013/10/31 00:05:26
cleanup: change templates/public/apps/api_index.ht
hukun
2013/11/01 09:31:52
Done
| |
25 <li><a href="{{name}}.html">{{name}}</a></li> | 29 <tr> |
26 {{/api_list.apps.chrome}} | 30 <td><a href="{{name}}.html">{{name}}</a></td> |
31 <td>{{{description}}}</td> | |
32 <td>{{version}}</td> | |
33 </tr> | |
34 {{/api_list.apps.chrome.stable}} | |
27 {{:is_apps}} | 35 {{:is_apps}} |
28 {{#api_list.extensions.chrome}} | 36 {{#api_list.extensions.chrome.stable}} |
29 <li><a href="{{name}}.html">{{name}}</a></li> | 37 <tr> |
30 {{/api_list.extensions.chrome}} | 38 <td><a href="{{name}}.html">{{name}}</a></td> |
39 <td>{{{description}}}</td> | |
40 <td>{{version}}</td> | |
41 </tr> | |
42 {{/api_list.extensions.chrome.stable}} | |
31 {{/is_apps}} | 43 {{/is_apps}} |
32 </ul> | 44 </table> |
45 | |
46 | |
47 <p> | |
48 Beta APIs | |
49 </p> | |
50 <table> | |
51 <tr><td>API Name</td><td>API Description</td></tr> | |
52 {{?is_apps}} | |
53 {{#api_list.apps.chrome.beta}} | |
54 <tr> | |
55 <td><a href="{{name}}.html">{{name}}</a></td> | |
56 <td>{{{description}}}</td> | |
57 </tr> | |
58 {{/api_list.apps.chrome.beta}} | |
59 {{:is_apps}} | |
60 {{#api_list.extensions.chrome.beta}} | |
61 <tr> | |
62 <td><a href="{{name}}.html">{{name}}</a></td> | |
63 <td>{{{description}}}</td> | |
64 </tr> | |
65 {{/api_list.extensions.chrome.beta}} | |
66 | |
67 {{/is_apps}} | |
68 </table> | |
69 | |
70 <p> | |
71 Dev APIs | |
72 </p> | |
73 <table> | |
74 <tr><td>API Name</td><td>API Description</td></tr> | |
75 {{?is_apps}} | |
76 {{#api_list.apps.chrome.dev}} | |
77 <tr> | |
78 <td><a href="{{name}}.html">{{name}}</a></td> | |
79 <td>{{{description}}}</td> | |
80 </tr> | |
81 {{/api_list.apps.chrome.dev}} | |
82 {{:is_apps}} | |
83 {{#api_list.extensions.chrome.dev}} | |
84 <tr> | |
85 <td><a href="{{name}}.html">{{name}}</a></td> | |
86 <td>{{{description}}}</td> | |
87 </tr> | |
88 {{/api_list.extensions.chrome.dev}} | |
89 {{/is_apps}} | |
90 </table> | |
33 | 91 |
34 <h2 id="experimental">Experimental APIs</h2> | 92 <h2 id="experimental">Experimental APIs</h2> |
35 | 93 |
36 <p> | 94 <p> |
37 Chrome also has | 95 Chrome also has |
38 <a href="experimental.html">experimental APIs</a>, | 96 <a href="experimental.html">experimental APIs</a>, |
39 some of which will become supported APIs | 97 some of which will become supported APIs |
40 in future releases of Chrome. | 98 in future releases of Chrome. |
41 </p> | 99 </p> |
not at google - send to devlin
2013/10/31 00:05:26
hrm maybe we should move the trunk and experimenta
hukun
2013/11/01 09:31:52
I will listen to your decision to go ahead.
| |
42 | 100 |
43 <h2 id="conventions">API conventions</h2> | 101 <h2 id="conventions">API conventions</h2> |
44 | 102 |
45 <p> | 103 <p> |
46 Unless the doc says otherwise, | 104 Unless the doc says otherwise, |
47 methods in the chrome.* APIs are <b>asynchronous</b>: | 105 methods in the chrome.* APIs are <b>asynchronous</b>: |
48 they return immediately, | 106 they return immediately, |
49 without waiting for the operation to finish. | 107 without waiting for the operation to finish. |
50 If you need to know the outcome of an operation, | 108 If you need to know the outcome of an operation, |
51 then you pass a callback function into the method. | 109 then you pass a callback function into the method. |
52 For more information, watch this video: | 110 For more information, watch this video: |
53 </p> | 111 </p> |
54 | 112 |
55 <p class="doc-family extensions"> | 113 <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> | 114 <iframe title="YouTube video player" width="640" height="390" src="//www.youtube .com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe> |
57 </p> | 115 </p> |
OLD | NEW |