Skip to content

Commit

Permalink
Update interfaces/entries-api.idl (#19425)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip authored and lukebjerring committed Oct 1, 2019
1 parent e2f3222 commit 7a8881e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/entries-api.idl
Expand Up @@ -18,6 +18,7 @@ partial interface DataTransferItem {

callback ErrorCallback = void (DOMException err);

[Exposed=Window]
interface FileSystemEntry {
readonly attribute boolean isFile;
readonly attribute boolean isDirectory;
Expand All @@ -29,6 +30,7 @@ interface FileSystemEntry {
optional ErrorCallback errorCallback);
};

[Exposed=Window]
interface FileSystemDirectoryEntry : FileSystemEntry {
FileSystemDirectoryReader createReader();
void getFile(optional USVString? path,
Expand All @@ -48,18 +50,21 @@ dictionary FileSystemFlags {

callback FileSystemEntryCallback = void (FileSystemEntry entry);

[Exposed=Window]
interface FileSystemDirectoryReader {
void readEntries(FileSystemEntriesCallback successCallback,
optional ErrorCallback errorCallback);
};
callback FileSystemEntriesCallback = void (sequence<FileSystemEntry> entries);

[Exposed=Window]
interface FileSystemFileEntry : FileSystemEntry {
void file(FileCallback successCallback,
optional ErrorCallback errorCallback);
};
callback FileCallback = void (File file);

[Exposed=Window]
interface FileSystem {
readonly attribute USVString name;
readonly attribute FileSystemDirectoryEntry root;
Expand Down

0 comments on commit 7a8881e

Please sign in to comment.