Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / intros / downloads.html
blobd62ece12214d79f9aff5c7e08b8839f6eccb17c6
1 <h2 id='manifest'>Manifest</h2>
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>
6 <pre data-filename="manifest.json">
8 "name": "My extension",
9 ...
10 <b>"permissions": [
11 "downloads"
12 ]</b>,
13 ...
15 </pre>
17 <h2 id='examples'>Examples</h2>
19 <p>You can find simple examples of using the <code>chrome.downloads</code> API in the <a
20 href='http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/downloads/'>examples/api/downloads</a>
21 directory. For other examples and for help in viewing the source code, see <a
22 href='samples.html'>Samples</a>.</p>