| OLD | NEW |
| 1 <h1>Web APIs</h1> | 1 <h1>Web APIs</h1> |
| 2 | 2 |
| 3 <p> | 3 <p> |
| 4 In addition to the | 4 In addition to the |
| 5 <a href="api_index">chrome.* APIs</a>, | 5 <a href="api_index">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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 <dt><strong> WebKit APIs </strong></dt> | 93 <dt><strong> WebKit APIs </strong></dt> |
| 94 <dd> | 94 <dd> |
| 95 Because Google Chrome is built upon WebKit, | 95 Because Google Chrome is built upon WebKit, |
| 96 your extensions can use WebKit APIs. | 96 your extensions can use WebKit APIs. |
| 97 Especially useful are the experimental CSS features | 97 Especially useful are the experimental CSS features |
| 98 such as filters, animations, and transformations. | 98 such as filters, animations, and transformations. |
| 99 Here's an example of using WebKit styles | 99 Here's an example of using WebKit styles |
| 100 to make the UI spin: | 100 to make the UI spin: |
| 101 <pre><style> | 101 <pre><style> |
| 102 div:hover { | 102 div:hover { |
| 103 -webkit-transform: rotate(360deg); | 103 transform: rotate(360deg); |
| 104 -webkit-transition: all 1s ease-out; | 104 transition: all 1s ease-out; |
| 105 } | 105 } |
| 106 </style> | 106 </style> |
| 107 </pre> | 107 </pre> |
| 108 | 108 |
| 109 </dd> | 109 </dd> |
| 110 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> | 110 <dt><strong> V8 APIs</strong>, such as<strong> JSON </strong></dt> |
| 111 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. </dd> | 111 <dd> Because JSON is in V8, you don't need to include a JSON library to use JSON
functions. </dd> |
| 112 <dt><strong>APIs in bundled libraries</strong></dt> | 112 <dt><strong>APIs in bundled libraries</strong></dt> |
| 113 <dd> If you want to use a library that the browser doesn't provide | 113 <dd> If you want to use a library that the browser doesn't provide |
| 114 (for example, jQuery), | 114 (for example, jQuery), |
| 115 you can bundle that library's JavaScript files with your extension. | 115 you can bundle that library's JavaScript files with your extension. |
| 116 Bundled libraries work in extensions | 116 Bundled libraries work in extensions |
| 117 just as they do in other web pages. | 117 just as they do in other web pages. |
| 118 </dd> | 118 </dd> |
| 119 </dl> | 119 </dl> |
| OLD | NEW |