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

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

Issue 1221093002: Add support for refreshing contents of providers which don't support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 5 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 <h2 id="manifest">Manifest</h2> 1 <h2 id="manifest">Manifest</h2>
2 <p>You must declare the "fileSystemProvider" permission and section 2 <p>You must declare the "fileSystemProvider" permission and section
3 in the <a href="manifest">extension manifest</a> 3 in the <a href="manifest">extension manifest</a>
4 to use the File System Provider API. 4 to use the File System Provider API.
5 For example:</p> 5 For example:</p>
6 <pre data-filename="manifest.json"> 6 <pre data-filename="manifest.json">
7 { 7 {
8 "name": "My {{platform}}", 8 "name": "My {{platform}}",
9 ... 9 ...
10 "permissions": [ 10 "permissions": [
11 "fileSystemProvider" 11 "fileSystemProvider"
12 ], 12 ],
13 ... 13 ...
14 "file_system_provider_capabilities": { 14 "file_system_provider_capabilities": {
15 "configurable": true, 15 "configurable": true,
16 "watchable": false,
16 "multiple_mounts": true, 17 "multiple_mounts": true,
17 <span id="manifest-source">"source": "network"</span> 18 <span id="manifest-source">"source": "network"</span>
18 }, 19 },
19 ... 20 ...
20 } 21 }
21 </pre> 22 </pre>
22 23
23 <p class="api_reference"> 24 <p class="api_reference">
24 The <code>file_system_provider</code> section must be declared as follows: 25 The <code>file_system_provider</code> section must be declared as follows:
25 {{+partials.manifest_type 26 {{+partials.manifest_type
26 type:apis.extensions.manifestTypes.byName.FileSystemProviderCapabilities /}} 27 type:apis.extensions.manifestTypes.byName.FileSystemProviderCapabilities /}}
27 </p> 28 </p>
28 <p> 29 <p>
29 Files app uses above information in order to render related UI elements 30 Files app uses above information in order to render related UI elements
30 approprietly. For example, if <code>configurable</code> is set to 31 approprietly. For example, if <code>configurable</code> is set to
31 </code>true</code>, then a menu item for configuring volumes will be rendered. 32 </code>true</code>, then a menu item for configuring volumes will be rendered.
32 Similarly, if <code>multiple_mounts</code> is set to <code>true</code>, then 33 Similarly, if <code>multiple_mounts</code> is set to <code>true</code>, then
33 Files app will allow to add more than one mount points from the UI. 34 Files app will allow to add more than one mount points from the UI. If
35 <code>watchable</code> is <code>false</code>, then a refresh button will be
36 rendered. Note, that if possible you should add support for watchers, so
37 changes on the file system can be reflected immediately and automatically.
34 </p> 38 </p>
35 39
36 <h2 id="overview">Overview</h2> 40 <h2 id="overview">Overview</h2>
37 <p> 41 <p>
38 File System Provider API allows extensions to support virtual file systems, 42 File System Provider API allows extensions to support virtual file systems,
39 which are available in the file manager on Chrome OS. 43 which are available in the file manager on Chrome OS.
40 Use cases include decompressing archives and accessing files in a cloud 44 Use cases include decompressing archives and accessing files in a cloud
41 service other than Drive. 45 service other than Drive.
42 </p> 46 </p>
43 47
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 extension is unloaded, or the extension calls the $(ref:unmount) method. 116 extension is unloaded, or the extension calls the $(ref:unmount) method.
113 </p> 117 </p>
114 {{?is_apps}} 118 {{?is_apps}}
115 <p> 119 <p>
116 In case of acting as a file handler, the handled file may need to be stored 120 In case of acting as a file handler, the handled file may need to be stored
117 to access it after either a reboot, or suspending and resuming an event page 121 to access it after either a reboot, or suspending and resuming an event page
118 of the providing extension. In such case $(ref:fileSystem.retainEntry) and 122 of the providing extension. In such case $(ref:fileSystem.retainEntry) and
119 $(ref:fileSystem.restoreEntry) should be used. 123 $(ref:fileSystem.restoreEntry) should be used.
120 </p> 124 </p>
121 {{/is_apps}} 125 {{/is_apps}}
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/manifest_types.json ('k') | chrome/test/data/extensions/api_test/file_browser/mount_test/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698