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

Unified Diff: ui/base/dialogs/select_file_dialog.cc

Issue 10829021: Use current gtk dialogs in linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make gtk window transient to aura window Created 8 years, 5 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/base/dialogs/select_file_dialog.cc
diff --git a/ui/base/dialogs/select_file_dialog.cc b/ui/base/dialogs/select_file_dialog.cc
index b35d0be8f1e7e335b17699a8fe616dc8fc9f7ba8..c95bd3aa5b78f03419155367fb5f7fe6b99845f3 100644
--- a/ui/base/dialogs/select_file_dialog.cc
+++ b/ui/base/dialogs/select_file_dialog.cc
@@ -12,6 +12,7 @@
#include "ui/base/dialogs/select_file_dialog_factory.h"
#include "ui/base/dialogs/select_file_policy.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/linux_ui.h"
#if defined(OS_WIN)
#include "ui/base/dialogs/select_file_dialog_win.h"
@@ -68,6 +69,11 @@ SelectFileDialog* SelectFileDialog::Create(Listener* listener,
}
// TODO(erg): Proxy to LinuxUI here.
Daniel Erat 2012/07/27 17:21:56 nit: remove TODO?
+#if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
+ const ui::LinuxUI* linux_ui = ui::LinuxUI::instance();
+ if (linux_ui)
+ return linux_ui->CreateSelectFileDialog(listener, policy);
+#endif
// TODO(erg): Add other OSs one by one here.
#if defined(OS_WIN) && !defined(USE_AURA)

Powered by Google App Engine
This is Rietveld 408576698