Chromium Code Reviews| Index: ui/shell_dialogs/select_file_dialog_auraandroid.cc |
| diff --git a/ui/shell_dialogs/select_file_dialog_auraandroid.cc b/ui/shell_dialogs/select_file_dialog_auraandroid.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a1407f8b532a67e37c319da37af53cc9c6074bd |
| --- /dev/null |
| +++ b/ui/shell_dialogs/select_file_dialog_auraandroid.cc |
| @@ -0,0 +1,56 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
brettw
2015/10/21 02:51:03
This is a new file, so use the current year :)
Al
mfomitchev
2015/10/21 22:44:04
Done and done
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "select_file_dialog_auraandroid.h" |
| + |
| +#include "base/logging.h" |
| + |
| +namespace ui { |
| + |
| +// static |
| +SelectFileDialogImpl* SelectFileDialogImpl::Create(Listener* listener, |
| + SelectFilePolicy* policy) { |
| + return new SelectFileDialogImpl(listener, policy); |
| +} |
| + |
| +bool SelectFileDialogImpl::IsRunning(gfx::NativeWindow) const { |
| + return listener_; |
| +} |
| + |
| +void SelectFileDialogImpl::ListenerDestroyed() { |
| + listener_ = NULL; |
| +} |
| + |
| +void SelectFileDialogImpl::SelectFileImpl( |
| + SelectFileDialog::Type type, |
| + const base::string16& title, |
| + const base::FilePath& default_path, |
| + const SelectFileDialog::FileTypeInfo* file_types, |
| + int file_type_index, |
| + const std::string& default_extension, |
| + gfx::NativeWindow owning_window, |
| + void* params) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +SelectFileDialogImpl::~SelectFileDialogImpl() { |
| +} |
| + |
| +SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener, |
| + SelectFilePolicy* policy) |
| + : SelectFileDialog(listener, policy) { |
| +} |
| + |
| +bool SelectFileDialogImpl::HasMultipleFileTypeChoicesImpl() { |
| + NOTIMPLEMENTED(); |
| + return false; |
| +} |
| + |
| +SelectFileDialog* CreateAndroidSelectFileDialog( |
| + SelectFileDialog::Listener* listener, |
| + SelectFilePolicy* policy) { |
| + return SelectFileDialogImpl::Create(listener, policy); |
| +} |
| + |
| +} // namespace ui |