gecko-dev/testing/web-platform/tests/interfaces/entries-api.idl
Philip Jägenstedt 52c5157b8f Bug 1482360 [wpt PR 12403] - Update interfaces/*.idl boilerplate from reffy-reports, a=testonly
Automatic update from web-platform-testsUpdate interfaces/*.idl boilerplate from reffy-reports (#12403)

The boilerplate has changed:
https://github.com/tidoust/reffy/pull/114

This change updates the files where *only* the boilerplate would
differ, files with other differences are left untouched.
--

wpt-commits: 9444c46e506b6231888b9b21613a8eceb4dac525
wpt-pr: 12403
2018-08-15 16:50:23 +00:00

66 lines
2.2 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: File and Directory Entries API (https://wicg.github.io/entries-api/)
partial interface File {
readonly attribute USVString webkitRelativePath;
};
partial interface HTMLInputElement {
attribute boolean webkitdirectory;
readonly attribute FrozenArray<FileSystemEntry> webkitEntries;
};
partial interface DataTransferItem {
FileSystemEntry? webkitGetAsEntry();
};
callback ErrorCallback = void (DOMException err);
interface FileSystemEntry {
readonly attribute boolean isFile;
readonly attribute boolean isDirectory;
readonly attribute USVString name;
readonly attribute USVString fullPath;
readonly attribute FileSystem filesystem;
void getParent(optional FileSystemEntryCallback successCallback,
optional ErrorCallback errorCallback);
};
interface FileSystemDirectoryEntry : FileSystemEntry {
FileSystemDirectoryReader createReader();
void getFile(optional USVString? path,
optional FileSystemFlags options,
optional FileSystemEntryCallback successCallback,
optional ErrorCallback errorCallback);
void getDirectory(optional USVString? path,
optional FileSystemFlags options,
optional FileSystemEntryCallback successCallback,
optional ErrorCallback errorCallback);
};
dictionary FileSystemFlags {
boolean create = false;
boolean exclusive = false;
};
callback FileSystemEntryCallback = void (FileSystemEntry entry);
interface FileSystemDirectoryReader {
void readEntries(FileSystemEntriesCallback successCallback,
optional ErrorCallback errorCallback);
};
callback FileSystemEntriesCallback = void (sequence<FileSystemEntry> entries);
interface FileSystemFileEntry : FileSystemEntry {
void file(FileCallback successCallback,
optional ErrorCallback errorCallback);
};
callback FileCallback = void (File file);
interface FileSystem {
readonly attribute USVString name;
readonly attribute FileSystemDirectoryEntry root;
};