Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: ui/shell_dialogs/select_file_dialog_auraandroid.cc

Issue 1409793002: Aura on Android: Stub implementation of SelectFileDialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_snapshot
Patch Set: Conditionally including Aura Android sources instead of conditionally excluding them. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« ui/shell_dialogs/BUILD.gn ('K') | « ui/shell_dialogs/select_file_dialog_auraandroid.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698