OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | |
2 <p id="classSummary"> | 1 <p id="classSummary"> |
3 Use the <code>chrome.fileBrowserHandler</code> module to | 2 Use the <code>chrome.fileBrowserHandler</code> module to |
4 extend the Chrome OS file browser. | 3 extend the Chrome OS file browser. |
5 For example, you can use this API | 4 For example, you can use this API |
6 to enable users to upload files to your website. | 5 to enable users to upload files to your website. |
7 </p> | 6 </p> |
8 | 7 |
9 <p class="caution"> | 8 <p class="caution"> |
10 <b>Important:</b> | 9 <b>Important:</b> |
11 This API works <b>only on Chrome OS</b>. | 10 This API works <b>only on Chrome OS</b>. |
(...skipping 12 matching lines...) Expand all Loading... |
24 <p> | 23 <p> |
25 When the user selects one or more files, | 24 When the user selects one or more files, |
26 the file browser adds buttons | 25 the file browser adds buttons |
27 representing the valid handlers for those files. | 26 representing the valid handlers for those files. |
28 For example, in the following screenshot, | 27 For example, in the following screenshot, |
29 selecting a file with a ".jpg" suffix | 28 selecting a file with a ".jpg" suffix |
30 results in an "Upload to Picasa" button that the user can click. | 29 results in an "Upload to Picasa" button that the user can click. |
31 </p> | 30 </p> |
32 | 31 |
33 <p> | 32 <p> |
34 <img src="../images/filebrowserhandler.png" | 33 <img src="{{static}}/images/filebrowserhandler.png" |
35 width="640" height="400" alt="file browser screenshot" /> | 34 width="640" height="400" alt="file browser screenshot" /> |
36 </p> | 35 </p> |
37 | 36 |
38 | 37 |
39 <h2 id="manifest">Manifest</h2> | 38 <h2 id="manifest">Manifest</h2> |
40 | 39 |
41 <p> | 40 <p> |
42 You must declare the "fileBrowserHandler" permission | 41 You must declare the "fileBrowserHandler" permission |
43 in the <a href="manifest.html">extension manifest</a>, | 42 in the <a href="manifest.html">extension manifest</a>, |
44 and you must use the "file_browser_handlers" field | 43 and you must use the "file_browser_handlers" field |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 --> | 144 --> |
146 | 145 |
147 <!-- | 146 <!-- |
148 <h2 id="examples">Examples</h2> | 147 <h2 id="examples">Examples</h2> |
149 | 148 |
150 <p> | 149 <p> |
151 For examples of using this API, see ... | 150 For examples of using this API, see ... |
152 For other examples and for help in viewing the source code, see | 151 For other examples and for help in viewing the source code, see |
153 <a href="samples.html">Samples</a>. | 152 <a href="samples.html">Samples</a>. |
154 </p> | 153 </p> |
155 --> | 154 --> |
156 | |
157 <!-- END AUTHORED CONTENT --> | |
OLD | NEW |