OLD | NEW |
1 <h2 id='manifest'>Manifest</h2> | 1 <h2 id='manifest'>Manifest</h2> |
2 | 2 |
3 <p> You must declare the 'downloads' permission in the <a | 3 <p> You must declare the <code>"downloads"</code> permission in the <a |
4 href='manifest.html'>extension manifest</a> to use this API.</p> | 4 href='manifest.html'>extension manifest</a> to use this API.</p> |
5 | 5 |
6 <pre>{ | 6 <pre>{ |
7 'name': 'My extension', | 7 "name": "My extension", |
8 ... | 8 ... |
9 <b> 'permissions': ['downloads']</b>, | 9 <b>"permissions": [ |
| 10 "downloads" |
| 11 ]</b>, |
10 ... | 12 ... |
11 }</pre> | 13 }</pre> |
12 | 14 |
13 <h2 id='examples'>Examples</h2> | 15 <h2 id='examples'>Examples</h2> |
14 | 16 |
15 <p>You can find simple examples of using the downloads module in the <a | 17 <p>You can find simple examples of using the <code>chrome.downloads</code> API i
n the <a |
16 href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/d
ocs/examples/api/downloads/'>examples/api/downloads</a> | 18 href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/d
ocs/examples/api/downloads/'>examples/api/downloads</a> |
17 directory. For other examples and for help in viewing the source code, see <a | 19 directory. For other examples and for help in viewing the source code, see <a |
18 href='samples.html'>Samples</a>.</p> | 20 href='samples.html'>Samples</a>.</p> |
OLD | NEW |