OLD | NEW |
1 <div id="pageData-title" class="pageData">Other APIs</div> | 1 <div id="pageData-title" class="pageData">Other APIs</div> |
2 | 2 |
3 <p> | 3 <p> |
4 In addition to the | 4 In addition to the |
5 <a href="api_index.html">chrome.* APIs</a>, | 5 <a href="api_index.html">chrome.* APIs</a>, |
6 extensions can use all the APIs | 6 extensions can use all the APIs |
7 that the browser provides | 7 that the browser provides |
8 to web pages and apps. | 8 to web pages and apps. |
9 If the browser doesn't support an API you want to use, | 9 If the browser doesn't support an API you want to use, |
10 you can bundle additional API libraries into your extension. | 10 you can bundle additional API libraries into your extension. |
(...skipping 20 matching lines...) Expand all Loading... |
31 <dd> | 31 <dd> |
32 Because Google Chrome is built upon WebKit, | 32 Because Google Chrome is built upon WebKit, |
33 your extensions can use WebKit APIs. | 33 your extensions can use WebKit APIs. |
34 Especially useful are the experimental CSS features | 34 Especially useful are the experimental CSS features |
35 such as filters, animations, and transformations. | 35 such as filters, animations, and transformations. |
36 Here's an example of using WebKit styles | 36 Here's an example of using WebKit styles |
37 to make the UI spin: | 37 to make the UI spin: |
38 <pre><style> | 38 <pre><style> |
39 div:hover { | 39 div:hover { |
40 -webkit-transform: rotate(360deg); | 40 -webkit-transform: rotate(360deg); |
41 -webkit-transition: all sl ease-out; | 41 -webkit-transition: all 1s ease-out; |
42 } | 42 } |
43 </style> | 43 </style> |
44 </pre> | 44 </pre> |
45 <p class="comment">[PENDING: link to complete list of webkit apis]</p> | 45 <p class="comment">[PENDING: link to complete list of webkit apis]</p> |
46 </dd> | 46 </dd> |
47 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> | 47 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> |
48 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. <span class="comment">[PENDING: what other APIs are in v8? link to c
omplete list]</span></dd> | 48 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. <span class="comment">[PENDING: what other APIs are in v8? link to c
omplete list]</span></dd> |
49 <dt> <strong>HTML5</strong> <strong>APIs</strong>, such as <strong>localStorage<
/strong></dt> | 49 <dt> <strong>HTML5</strong> <strong>APIs</strong>, such as <strong>localStorage<
/strong></dt> |
50 <dd> HTML5 is still being defined and implemented, | 50 <dd> HTML5 is still being defined and implemented, |
51 but Google Chrome already supports local storage, | 51 but Google Chrome already supports local storage, |
52 which extensions can use to store data. | 52 which extensions can use to store data. |
53 <!-- | 53 <!-- |
54 localStorage.setItem("foo", "bar"); ... localStorage.getItem
("foo"); --> <span class="comment">[PENDING: Other important API? link
to complete list]</span></dd> | 54 localStorage.setItem("foo", "bar"); ... localStorage.getItem
("foo"); --> <span class="comment">[PENDING: Other important API? link
to complete list]</span></dd> |
55 <dt><strong>APIs in bundled libraries</strong></dt> | 55 <dt><strong>APIs in bundled libraries</strong></dt> |
56 <dd> If you want to use a library that the browser doesn't provide | 56 <dd> If you want to use a library that the browser doesn't provide |
57 (for example, jQuery), | 57 (for example, jQuery), |
58 you can bundle that library's JavaScript files with your extension. | 58 you can bundle that library's JavaScript files with your extension. |
59 Bundled libraries work in extensions | 59 Bundled libraries work in extensions |
60 just as they would in any other web pages. | 60 just as they would in any other web pages. |
61 </dd> | 61 </dd> |
62 </dl> | 62 </dl> |
63 | 63 |
OLD | NEW |