Backed out 2 changesets (bug 1908320) for causing wr failures on align-items-baseline...
[gecko.git] / dom / webidl / FileSystemDirectoryHandle.webidl
blob24a84db7d1b870f7fbc5d9ecba5251f92152d117
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 dictionary FileSystemGetFileOptions {
7   boolean create = false;
8 };
10 dictionary FileSystemGetDirectoryOptions {
11   boolean create = false;
14 dictionary FileSystemRemoveOptions {
15   boolean recursive = false;
18 [Exposed=(Window,Worker), SecureContext, Serializable, Pref="dom.fs.enabled"]
19 interface FileSystemDirectoryHandle : FileSystemHandle {
21   async iterable<USVString, FileSystemHandle>;
23   [NewObject]
24   Promise<FileSystemFileHandle> getFileHandle(USVString name, optional FileSystemGetFileOptions options = {});
26   [NewObject]
27   Promise<FileSystemDirectoryHandle> getDirectoryHandle(USVString name, optional FileSystemGetDirectoryOptions options = {});
29   [NewObject]
30   Promise<undefined> removeEntry(USVString name, optional FileSystemRemoveOptions options = {});
32   [NewObject]
33   Promise<sequence<USVString>?> resolve(FileSystemHandle possibleDescendant);