OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/input_window_dialog.h" | 5 #include "chrome/browser/ui/input_window_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/gtk_signal.h" | |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
12 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
13 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/ui/gtk/gtk_util.h" | 13 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 14 #include "ui/base/gtk/gtk_signal.h" |
15 | 15 |
16 class InputWindowDialogGtk : public InputWindowDialog { | 16 class InputWindowDialogGtk : public InputWindowDialog { |
17 public: | 17 public: |
18 // Creates a dialog. Takes ownership of |delegate|. | 18 // Creates a dialog. Takes ownership of |delegate|. |
19 InputWindowDialogGtk(GtkWindow* parent, | 19 InputWindowDialogGtk(GtkWindow* parent, |
20 const std::string& window_title, | 20 const std::string& window_title, |
21 const std::string& label, | 21 const std::string& label, |
22 const std::string& contents, | 22 const std::string& contents, |
23 Delegate* delegate); | 23 Delegate* delegate); |
24 virtual ~InputWindowDialogGtk(); | 24 virtual ~InputWindowDialogGtk(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 const std::wstring& window_title, | 138 const std::wstring& window_title, |
139 const std::wstring& label, | 139 const std::wstring& label, |
140 const std::wstring& contents, | 140 const std::wstring& contents, |
141 Delegate* delegate) { | 141 Delegate* delegate) { |
142 return new InputWindowDialogGtk(parent, | 142 return new InputWindowDialogGtk(parent, |
143 WideToUTF8(window_title), | 143 WideToUTF8(window_title), |
144 WideToUTF8(label), | 144 WideToUTF8(label), |
145 WideToUTF8(contents), | 145 WideToUTF8(contents), |
146 delegate); | 146 delegate); |
147 } | 147 } |
OLD | NEW |