blob: f416f361fb1ac7420bbfbea4100c07095bc211db [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/native-file-system/#native-filesystem
// https://wicg.github.io/native-file-system/#api-getoriginprivatefilesystem
[
SecureContext,
RuntimeEnabled=FileSystemAccess,
ImplementedAs=GlobalFileSystemAccess
] partial interface Window {
[CallWith=ScriptState, RaisesException, Measure]
Promise<sequence<FileSystemFileHandle>> showOpenFilePicker(
optional OpenFilePickerOptions options = {});
[CallWith=ScriptState, RaisesException, Measure]
Promise<FileSystemFileHandle> showSaveFilePicker(
optional SaveFilePickerOptions options = {});
[CallWith=ScriptState, RaisesException, Measure]
Promise<FileSystemDirectoryHandle> showDirectoryPicker(
optional DirectoryPickerOptions options = {});
};