chromium/components/headless/select_file_dialog/headless_select_file_dialog.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/headless/select_file_dialog/headless_select_file_dialog.h"

#include "base/memory/ptr_util.h"
#include "ui/gfx/native_widget_types.h"

namespace headless {

// static
HeadlessSelectFileDialogFactory* HeadlessSelectFileDialogFactory::instance_ =;

// HeadlessSelectFileDialog implements a stub select file dialog
// that cancels itself as soon as it gets open, optionally calling
// back the owner.

class HeadlessSelectFileDialog : public ui::SelectFileDialog {};

// HeadlessSelectFileDialogFactory creates cancelable SelectFileDialog's

// static
void HeadlessSelectFileDialogFactory::SetUp() {}

// static
void HeadlessSelectFileDialogFactory::SetSelectFileDialogOnceCallbackForTests(
    SelectFileDialogCallback callback) {}

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

HeadlessSelectFileDialogFactory::HeadlessSelectFileDialogFactory() {}

HeadlessSelectFileDialogFactory::~HeadlessSelectFileDialogFactory() {}

}  // namespace headless