| OLD | NEW |
| 1 <h1>Other APIs</h1> | 1 <h1>Other APIs</h1> |
| 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. |
| 11 </p> | 11 </p> |
| 12 | 12 |
| 13 <p>Here's a sampling of the APIs that extensions can use:</p> | 13 <p>Here's a sampling of the APIs that extensions can use:</p> |
| 14 | 14 |
| 15 <dl> | 15 <dl> |
| 16 <dt><strong> Standard JavaScript APIs </strong></dt> | 16 <dt><strong> Standard JavaScript APIs </strong></dt> |
| 17 <dd> These are the same core JavaScript and | 17 <dd> These are the same core JavaScript and |
| 18 <a href="https://developer.mozilla.org/en/Gecko_DOM_Reference">Document Object
Model</a> | 18 <a href="https://developer.mozilla.org/en/Gecko_DOM_Reference">Document Object
Model</a> |
| 19 (DOM) APIs | 19 (DOM) APIs |
| 20 that you can use in ordinary web apps. | 20 that you can use in ordinary web apps. |
| 21 | 21 |
| 22 <!-- Use onclick in your toolbar div to add click behavior. | 22 <!-- Use onclick in your toolbar div to add click behavior. |
| 23 E.g. window.open(someUrl). --></dd> | 23 E.g. window.open(someUrl). --></dd> |
| 24 <dt><strong> XMLHttpRequest </strong></dt> | 24 <dt><strong> XMLHttpRequest </strong></dt> |
| 25 <dd> | 25 <dd> |
| 26 Use <a href="xhr.html">XMLHttpRequest</a> | 26 Use <a href="xhr.html">XMLHttpRequest</a> |
| 27 to request data from one or more servers. | 27 to request data from one or more servers. |
| 28 The <a href="manifest.html#permissions">permissions</a> field | 28 The <a href="declare_permissions.html">permissions</a> field |
| 29 of the manifest specifies | 29 of the manifest specifies |
| 30 which hosts the extension can send requests to. | 30 which hosts the extension can send requests to. |
| 31 </dd> | 31 </dd> |
| 32 <dt> <strong>HTML5 and other emerging APIs</strong></dt> | 32 <dt> <strong>HTML5 and other emerging APIs</strong></dt> |
| 33 <dd> Google Chrome supports HTML5 features, | 33 <dd> Google Chrome supports HTML5 features, |
| 34 along with other emerging APIs. | 34 along with other emerging APIs. |
| 35 Here are some of the APIs you can use: | 35 Here are some of the APIs you can use: |
| 36 <ul> | 36 <ul> |
| 37 <li> audio | 37 <li> audio |
| 38 (<a href="http://www.html5rocks.com/tutorials/audio/quick/">tutorial</a>) </
li> | 38 (<a href="http://www.html5rocks.com/tutorials/audio/quick/">tutorial</a>) </
li> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 </dd> | 77 </dd> |
| 78 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> | 78 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> |
| 79 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. </dd> | 79 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. </dd> |
| 80 <dt><strong>APIs in bundled libraries</strong></dt> | 80 <dt><strong>APIs in bundled libraries</strong></dt> |
| 81 <dd> If you want to use a library that the browser doesn't provide | 81 <dd> If you want to use a library that the browser doesn't provide |
| 82 (for example, jQuery), | 82 (for example, jQuery), |
| 83 you can bundle that library's JavaScript files with your extension. | 83 you can bundle that library's JavaScript files with your extension. |
| 84 Bundled libraries work in extensions | 84 Bundled libraries work in extensions |
| 85 just as they do in other web pages. | 85 just as they do in other web pages. |
| 86 </dd> | 86 </dd> |
| 87 </dl> | 87 </dl> |
| OLD | NEW |