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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/input_window_dialog.h"
6
7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/ui/webui/chrome_web_ui.h"
9 #include "chrome/browser/ui/webui/input_window_dialog_webui.h"
10
11 #if !defined(USE_AURA)
12 #include "chrome/browser/ui/input_window_dialog_gtk.h"
13 #endif
14
15 InputWindowDialog* InputWindowDialog::Create(gfx::NativeWindow parent,
16 const string16& window_title,
17 const string16& label,
18 const string16& contents,
19 Delegate* delegate) {
20 #if defined(USE_AURA)
21 return new InputWindowDialogWebUI(window_title,
22 label,
23 contents,
24 delegate);
25 #else
26 if (ChromeWebUI::IsMoreWebUI()) {
27 return new InputWindowDialogWebUI(window_title,
28 label,
29 contents,
30 delegate);
31 } else {
32 return new InputWindowDialogGtk(parent,
33 UTF16ToUTF8(window_title),
34 UTF16ToUTF8(label),
35 UTF16ToUTF8(contents),
36 delegate);
37 }
38 #endif
39 }
OLDNEW
« 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