blob: 5ea043ca1e7b59fef8d732345f860f0717b665ae [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/file-system-access/#local-filesystem
[
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 = {});
};