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