chromium/third_party/blink/renderer/modules/file_system_access/window_file_system_access.idl

// Copyright 2019 The Chromium Authors
// 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=FileSystemAccessLocal,
    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 = {});
};