OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/input_window_dialog.h" | 5 #include "chrome/browser/input_window_dialog.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 void WinInputWindowDialog::Show() { | 217 void WinInputWindowDialog::Show() { |
218 window_->Show(); | 218 window_->Show(); |
219 } | 219 } |
220 | 220 |
221 void WinInputWindowDialog::Close() { | 221 void WinInputWindowDialog::Close() { |
222 window_->Close(); | 222 window_->Close(); |
223 } | 223 } |
224 | 224 |
225 // static | 225 // static |
226 InputWindowDialog* InputWindowDialog::Create(gfx::NativeWindow parent, | 226 InputWindowDialog* InputWindowDialog::Create(HWND parent, |
227 const std::wstring& window_title, | 227 const std::wstring& window_title, |
228 const std::wstring& label, | 228 const std::wstring& label, |
229 const std::wstring& contents, | 229 const std::wstring& contents, |
230 Delegate* delegate) { | 230 Delegate* delegate) { |
231 return new WinInputWindowDialog(parent, | 231 return new WinInputWindowDialog(parent, |
232 window_title, | 232 window_title, |
233 label, | 233 label, |
234 contents, | 234 contents, |
235 delegate); | 235 delegate); |
236 } | 236 } |
OLD | NEW |