chromium/ui/shell_dialogs/fake_select_file_dialog.cc

// 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.

#include "ui/shell_dialogs/fake_select_file_dialog.h"

#include <string_view>

#include "ui/shell_dialogs/select_file_policy.h"
#include "ui/shell_dialogs/selected_file_info.h"
#include "url/gurl.h"

namespace ui {

FakeSelectFileDialog::Factory::Factory() = default;
FakeSelectFileDialog::Factory::~Factory() = default;

ui::SelectFileDialog* FakeSelectFileDialog::Factory::Create(
    ui::SelectFileDialog::Listener* listener,
    std::unique_ptr<ui::SelectFilePolicy> policy) {}

FakeSelectFileDialog* FakeSelectFileDialog::Factory::GetLastDialog() const {}

void FakeSelectFileDialog::Factory::SetOpenCallback(
    base::RepeatingClosure callback) {}

// static
FakeSelectFileDialog::Factory* FakeSelectFileDialog::RegisterFactory() {}

FakeSelectFileDialog::FakeSelectFileDialog(
    const base::RepeatingClosure& opened,
    Listener* listener,
    std::unique_ptr<ui::SelectFilePolicy> policy)
    :{}

FakeSelectFileDialog::~FakeSelectFileDialog() = default;

bool FakeSelectFileDialog::HasMultipleFileTypeChoicesImpl() {}

bool FakeSelectFileDialog::IsRunning(gfx::NativeWindow owning_window) const {}

void FakeSelectFileDialog::SelectFileImpl(
    Type type,
    const std::u16string& title,
    const base::FilePath& default_path,
    const FileTypeInfo* file_types,
    int file_type_index,
    const base::FilePath::StringType& default_extension,
    gfx::NativeWindow owning_window,
    const GURL* caller) {}

bool FakeSelectFileDialog::CallFileSelected(const base::FilePath& file_path,
                                            std::string_view filter_text) {}

void FakeSelectFileDialog::CallMultiFilesSelected(
    const std::vector<base::FilePath>& files) {}

void FakeSelectFileDialog::ListenerDestroyed() {}

}  // namespace ui