blob: 708cf95ed72b3cd24555c36701c5ba7620234aea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<div id="pageData-name" class="pageData">chrome.* APIs</div>
<div id="pageData-showTOC" class="pageData">true</div>
<p>
Google Chrome provides APIs such as
<code>chrome.bookmarks</code> and <code>chrome.tab</code>
so that extensions can interact with the browser.
</p>
<h2 id="supported">Supported APIs</h2>
<p>
Here are the supported chrome.* APIs:
</p>
<ul>
<li jsselect="stableAPIs();"><a jsvalues=".href: $this + '.html'" jscontent="$this" href="bookmarks.html" js>bookmarks</a></li>
</ul>
<h2 id="experimental">Experimental APIs</h2>
<p>
Google Chrome also has some
<a href="http://code.google.com/chrome/extensions/dev/experimental.html">experimental APIs</a>,
which give you access to
functionality such as process information and history.
</p>
<h2 id="conventions">API conventions</h2>
<p>
Unless the doc says otherwise,
methods in the chrome.* APIs are asynchronous:
they return immediately,
without waiting for the operation to finish.
If you need to know the outcome of an operation,
then you pass a callback function into the method.
For more information, see the video
<a href="http://www.youtube.com/watch?v=bmxr75CV36A&feature=PlayList&p=CA101D6A85FE9D4B&index=2">Extension API Design</a>.
</p>
|