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

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

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 6ea554a663153f884ead0320e2a15960e1e927f3..0a13b1ee5bb94183d40ab8f73d44f7d3ee3d1c5b 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -101,7 +101,7 @@ namespace fileSystem {
// Change to an entry within a tracked directory.
[nodoc] dictionary ChildChange {
- [instanceOf=Entry] object entry;
+ [instanceOf=FileSystemEntry] object entry;
ChildChangeType type;
};
@@ -114,7 +114,7 @@ namespace fileSystem {
// contents.
[nodoc] dictionary EntryChangedEvent {
// Tracked entry.
- [instanceOf=Entry] object target;
+ [instanceOf=FileSystemEntry] object target;
// List of changed entries within the tracked directory in order they
// happened. May not be available for some types of file systems.
@@ -123,18 +123,18 @@ namespace fileSystem {
// Event notifying about a tracked file or a directory being removed.
[nodoc] dictionary EntryRemovedEvent {
- [instanceOf=Entry] object target;
+ [instanceOf=FileSystemEntry] object target;
};
callback GetDisplayPathCallback = void (DOMString displayPath);
- callback EntryCallback = void ([instanceOf=Entry] object entry);
+ callback EntryCallback = void ([instanceOf=FileSystemEntry] object entry);
callback EntriesCallback = void (
- [instanceOf=Entry] optional object entry,
- [instanceOf=FileEntry] optional object[] fileEntries);
+ [instanceOf=FileSystemEntry] optional object entry,
+ [instanceOf=FileSystemFileEntry] optional object[] fileEntries);
callback IsWritableCallback = void (boolean isWritable);
callback IsRestorableCallback = void (boolean isRestorable);
[nodoc] callback GetObservedEntriesCallback = void (
- [instanceOf=Entry] object[] entries);
+ [instanceOf=FileSystemEntry] object[] entries);
callback RequestFileSystemCallback = void(
[instanceOf=FileSystem] optional object fileSystem);
callback GetVolumeListCallback = void(optional Volume[] volumes);
@@ -143,7 +143,7 @@ namespace fileSystem {
// Get the display path of an Entry object. The display path is based on
// the full path of the file or directory on the local file system, but may
// be made more readable for display purposes.
- static void getDisplayPath([instanceOf=Entry] object entry,
+ static void getDisplayPath([instanceOf=FileSystemEntry] object entry,
GetDisplayPathCallback callback);
// Get a writable Entry from another Entry. This call will fail with a
@@ -151,11 +151,11 @@ namespace fileSystem {
// under 'fileSystem'. If entry is a DirectoryEntry, this call will fail if
// the application does not have the 'directory' permission under
// 'fileSystem'.
- static void getWritableEntry([instanceOf=Entry] object entry,
+ static void getWritableEntry([instanceOf=FileSystemEntry] object entry,
EntryCallback callback);
// Gets whether this Entry is writable or not.
- static void isWritableEntry([instanceOf=Entry] object entry,
+ static void isWritableEntry([instanceOf=FileSystemEntry] object entry,
IsWritableCallback callback);
// Ask the user to choose a file or directory.
@@ -176,7 +176,7 @@ namespace fileSystem {
// the 'retainEntries' permission under 'fileSystem', entries are retained
// indefinitely. Otherwise, entries are retained only while the app is
// running and across restarts.
- static DOMString retainEntry([instanceOf=Entry] object entry);
+ static DOMString retainEntry([instanceOf=FileSystemEntry] object entry);
// Requests access to a file system for a volume represented by <code>
// options.volumeId</code>. If <code>options.writable</code> is set to true,
@@ -211,11 +211,11 @@ namespace fileSystem {
// restored when either <code>getObservers</code> is called, or an observing
// event for it is invoked.
[nodoc] static void observeDirectory(
- [instanceOf=DirectoryEntry] object entry,
+ [instanceOf=FileSystemDirectoryEntry] object entry,
optional boolean recursive);
// Unobserves a previously observed either a file or a directory.
- [nodoc] static void unobserveEntry([instanceOf=Entry] object entry);
+ [nodoc] static void unobserveEntry([instanceOf=FileSystemEntry] object entry);
// Lists all observed entries.
[nodoc] static void getObservedEntries(GetObservedEntriesCallback callback);
« no previous file with comments | « chrome/common/extensions/api/file_manager_private.idl ('k') | chrome/common/extensions/api/image_writer_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698