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