Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/common/extensions/docs/templates/intros/fileBrowserHandler.html

Issue 219213007: Remove .html extension from links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <p class="caution"> 1 <p class="caution">
2 <b>Important:</b> 2 <b>Important:</b>
3 This API works <b>only on Chrome OS</b>. 3 This API works <b>only on Chrome OS</b>.
4 </p> 4 </p>
5 5
6 <p> 6 <p>
7 The Chrome OS file browser comes up when 7 The Chrome OS file browser comes up when
8 the user either presses Ctrl+M 8 the user either presses Ctrl+M
9 or connects an external storage device, 9 or connects an external storage device,
10 such as an SD card, USB key, external drive, or digital camera. 10 such as an SD card, USB key, external drive, or digital camera.
(...skipping 14 matching lines...) Expand all
25 <p> 25 <p>
26 <img src="{{static}}/images/filebrowserhandler.png" 26 <img src="{{static}}/images/filebrowserhandler.png"
27 width="640" height="400" alt="file browser screenshot" /> 27 width="640" height="400" alt="file browser screenshot" />
28 </p> 28 </p>
29 29
30 30
31 <h2 id="manifest">Manifest</h2> 31 <h2 id="manifest">Manifest</h2>
32 32
33 <p> 33 <p>
34 You must declare the "fileBrowserHandler" permission 34 You must declare the "fileBrowserHandler" permission
35 in the <a href="manifest.html">extension manifest</a>, 35 in the <a href="manifest">extension manifest</a>,
36 and you must use the "file_browser_handlers" field 36 and you must use the "file_browser_handlers" field
37 to register the extension as a handler of at least one file type. 37 to register the extension as a handler of at least one file type.
38 You should also provide a 16x16 icon 38 You should also provide a 16x16 icon
39 to be displayed on the button. 39 to be displayed on the button.
40 For example: 40 For example:
41 </p> 41 </p>
42 42
43 <pre data-filename="manifest.json"> 43 <pre data-filename="manifest.json">
44 { 44 {
45 "name": "My extension", 45 "name": "My extension",
(...skipping 15 matching lines...) Expand all
61 "icons": { <b>"16"</b>: "icon16.png", 61 "icons": { <b>"16"</b>: "icon16.png",
62 "48": "icon48.png", 62 "48": "icon48.png",
63 "128": "icon128.png" }, 63 "128": "icon128.png" },
64 ... 64 ...
65 } 65 }
66 </pre> 66 </pre>
67 67
68 <p class="note"> 68 <p class="note">
69 <b>Note:</b> 69 <b>Note:</b>
70 You can specify locale-specific strings for the value of "default_title". 70 You can specify locale-specific strings for the value of "default_title".
71 See <a href="i18n.html">Internationalization (i18n)</a> for details. 71 See <a href="i18n">Internationalization (i18n)</a> for details.
72 </p> 72 </p>
73 73
74 <h2 id="code">Implementing a file browser handler</h2> 74 <h2 id="code">Implementing a file browser handler</h2>
75 75
76 <p> 76 <p>
77 To use this API, 77 To use this API,
78 you must implement a function that handles the <code>onExecute</code> event 78 you must implement a function that handles the <code>onExecute</code> event
79 of <code>chrome.fileBrowserHandler</code>. 79 of <code>chrome.fileBrowserHandler</code>.
80 Your function will be called whenever the user clicks the button 80 Your function will be called whenever the user clicks the button
81 that represents your file browser handler. 81 that represents your file browser handler.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 Mention <code>filesystem:*.*</code>. 135 Mention <code>filesystem:*.*</code>.
136 </p> 136 </p>
137 --> 137 -->
138 138
139 <!-- 139 <!--
140 <h2 id="examples">Examples</h2> 140 <h2 id="examples">Examples</h2>
141 141
142 <p> 142 <p>
143 For examples of using this API, see ... 143 For examples of using this API, see ...
144 For other examples and for help in viewing the source code, see 144 For other examples and for help in viewing the source code, see
145 <a href="samples.html">Samples</a>. 145 <a href="samples">Samples</a>.
146 </p> 146 </p>
147 --> 147 -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698