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

Unified Diff: chrome/common/extensions/api/file_system.idl

Issue 1029803004: Add chrome.fileSystem.GetVolumeList(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed chrome_extensions.js. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698