Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: chrome/common/extensions/docs/templates/articles/api_index.html

Issue 48263002: list apis by channel info, e.g. dev, stable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gerenate one new template, e.g. api_table Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <h1 class="page_title">Chrome Platform APIs</h1> 1 <h1 class="page_title">Chrome Platform APIs</h1>
2 {{?is_apps}}
3 <p class="doc-family apps"> 2 <p class="doc-family apps">
4 Chrome provides many special-purpose APIs like 3 Chrome provides many special-purpose APIs like
5 <code>chrome.runtime</code> and <code>chrome.alarms</code> 4 <code>chrome.runtime</code> and <code>chrome.alarms</code>
6 to Chrome Apps. 5 to Chrome Apps.
7 </p> 6 </p>
8 {{:is_apps}}
9 <p class="doc-family extensions">
10 Chrome provides APIs such as
11 <code>chrome.bookmarks</code> and <code>chrome.tab</code>
12 so that extensions can interact with the browser.
13 </p>
14 {{/is_apps}}
15 7
16 <h2 id="supported">Supported APIs</h2> 8 <h2 id="supported">Supported APIs</h2>
9 {{?stable_apis}}
10 <h3 id="stable_apis">
not at google - send to devlin 2013/11/05 01:02:02 Let's kill the "Supported APIs" header and make ea
hukun 2013/11/06 08:56:19 Done
11 Stable APIs
12 </h3>
13 <p>
14 Here are the supported chrome.* APIs stable since the Chrome version.
15 </p>
16 {{+partials.api_table apis:stable_apis is_stable:true}}
17 {{/}}
18
19 {{?beta_apis}}
20 <h3 id="beta_apis">
21 Beta APIs
22 </h3>
23 <p>
24 Here are the supported chrome.* APIs available in Chrome Beta only.
25 </p>
26 {{+partials.api_table apis:beta_apis is_stable:false}}
27 {{/}}
28
29 {{?dev_apis}}
30 <h3 id="dev_apis">
31 Dev APIs
32 </h3>
17 33
18 <p> 34 <p>
19 Here are the supported chrome.* APIs: 35 Here are the supported chrome.* APIs available in Chrome Dev only.
20 </p> 36 </p>
21 37 {{+partials.api_table apis:dev_apis is_stable:false}}
22 <ul> 38 {{/}}
23 {{?is_apps}}
24 {{#api_list.apps.chrome}}
25 <li><a href="{{name}}.html">{{name}}</a></li>
26 {{/api_list.apps.chrome}}
27 {{:is_apps}}
28 {{#api_list.extensions.chrome}}
29 <li><a href="{{name}}.html">{{name}}</a></li>
30 {{/api_list.extensions.chrome}}
31 {{/is_apps}}
32 </ul>
33
34 <h2 id="experimental">Experimental APIs</h2> 39 <h2 id="experimental">Experimental APIs</h2>
35 40
36 <p> 41 <p>
37 Chrome also has 42 Chrome also has
38 <a href="experimental.html">experimental APIs</a>, 43 <a href="experimental.html">experimental APIs</a>,
39 some of which will become supported APIs 44 some of which will become supported APIs
40 in future releases of Chrome. 45 in future releases of Chrome.
41 </p> 46 </p>
42 47
43 <h2 id="conventions">API conventions</h2> 48 <h2 id="conventions">API conventions</h2>
44 49
45 <p> 50 <p>
46 Unless the doc says otherwise, 51 Unless the doc says otherwise,
47 methods in the chrome.* APIs are <b>asynchronous</b>: 52 methods in the chrome.* APIs are <b>asynchronous</b>:
48 they return immediately, 53 they return immediately,
49 without waiting for the operation to finish. 54 without waiting for the operation to finish.
50 If you need to know the outcome of an operation, 55 If you need to know the outcome of an operation,
51 then you pass a callback function into the method. 56 then you pass a callback function into the method.
52 For more information, watch this video: 57 For more information, watch this video:
53 </p> 58 </p>
54 59
55 <p class="doc-family extensions"> 60 <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> 61 <iframe title="YouTube video player" width="640" height="390" src="//www.youtube .com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe>
57 </p> 62 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698