| Index: chrome/common/extensions/api/file_system.idl
|
| diff --git a/chrome/common/extensions/api/file_system.idl b/chrome/common/extensions/api/file_system.idl
|
| index a39dd01e83849b07ce0e99a99301cbc3fdeb6452..ed4aa1af45b8c890824486bf79a4c4eef955206a 100644
|
| --- a/chrome/common/extensions/api/file_system.idl
|
| +++ b/chrome/common/extensions/api/file_system.idl
|
| @@ -83,7 +83,7 @@ namespace fileSystem {
|
| boolean? acceptsMultiple;
|
| };
|
|
|
| - dictionary RequestFileSystemOptions {
|
| + [nodoc] dictionary RequestFileSystemOptions {
|
| // The ID of the requested volume.
|
| DOMString volumeId;
|
|
|
| @@ -92,7 +92,14 @@ namespace fileSystem {
|
| boolean? writable;
|
| };
|
|
|
| -// Change to an entry within a tracked directory.
|
| + // Represents a mounted volume, which can be accessed via <code>chrome.
|
| + // fileSystem.requestFileSystem</code>.
|
| + [nodoc] dictionary Volume {
|
| + DOMString volumeId;
|
| + boolean writable;
|
| + };
|
| +
|
| + // Change to an entry within a tracked directory.
|
| [nodoc] dictionary ChildChange {
|
| [instanceOf=Entry] object entry;
|
| ChildChangeType type;
|
| @@ -124,7 +131,8 @@ namespace fileSystem {
|
| [nodoc] callback GetObservedEntriesCallback = void (
|
| [instanceOf=Entry] object[] entries);
|
| [nodoc] callback RequestFileSystemCallback = void(
|
| - [instanceOf=FileSystem] optional object fileSystem);
|
| + [instanceOf=FileSystem] object fileSystem);
|
| + [nodoc] callback GetVolumeListCallback = void(Volume[] volumes);
|
|
|
| interface Functions {
|
| // Get the display path of an Entry object. The display path is based on
|
| @@ -175,6 +183,11 @@ namespace fileSystem {
|
| [nodoc] static void requestFileSystem(RequestFileSystemOptions options,
|
| RequestFileSystemCallback callback);
|
|
|
| + // Returns a list of volumes available for <code>requestFileSystem()</code>.
|
| + // The <code>"fileSystem": {"requestFileSystem"}</code> manifest permission
|
| + // is required. Available to kiosk apps running in the kiosk session only.
|
| + [nodoc] static void getVolumeList(GetVolumeListCallback callback);
|
| +
|
| // Observes a directory entry. Emits an event if the tracked directory is
|
| // changed (including the list of files on it), or removed. If <code>
|
| // recursive</code> is set to true, then also all accessible subdirectories
|
|
|