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

Unified Diff: chrome/browser/ui/input_window_dialog_linux.cc

Issue 8298019: Implement InputWindowDialog with WebUI for bookmark folder management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 9 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: chrome/browser/ui/input_window_dialog_linux.cc
diff --git a/chrome/browser/ui/input_window_dialog_linux.cc b/chrome/browser/ui/input_window_dialog_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0109a2c8d225894bdafca7da5ebba2fa4c503480
--- /dev/null
+++ b/chrome/browser/ui/input_window_dialog_linux.cc
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/input_window_dialog.h"
+
+#include "base/utf_string_conversions.h"
+#include "chrome/browser/ui/webui/chrome_web_ui.h"
+#include "chrome/browser/ui/webui/input_window_dialog_webui.h"
+
+#if !defined(USE_AURA)
+#include "chrome/browser/ui/input_window_dialog_gtk.h"
+#endif
+
+InputWindowDialog* InputWindowDialog::Create(gfx::NativeWindow parent,
+ const string16& window_title,
+ const string16& label,
+ const string16& contents,
+ Delegate* delegate) {
+#if defined(USE_AURA)
+ return new InputWindowDialogWebUI(window_title,
+ label,
+ contents,
+ delegate);
+#else
+ if (ChromeWebUI::IsMoreWebUI()) {
+ return new InputWindowDialogWebUI(window_title,
+ label,
+ contents,
+ delegate);
+ } else {
+ return new InputWindowDialogGtk(parent,
+ UTF16ToUTF8(window_title),
+ UTF16ToUTF8(label),
+ UTF16ToUTF8(contents),
+ delegate);
+ }
+#endif
+}
« no previous file with comments | « chrome/browser/ui/input_window_dialog_gtk.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698