| 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" |
| 11 #include "views/controls/label.h" | 11 #include "views/controls/label.h" |
| 12 #include "views/controls/textfield/textfield.h" | 12 #include "views/controls/textfield/textfield.h" |
| 13 #include "views/grid_layout.h" | 13 #include "views/layout/grid_layout.h" |
| 14 #include "views/layout/layout_constants.h" | 14 #include "views/layout/layout_constants.h" |
| 15 #include "views/window/dialog_delegate.h" | 15 #include "views/window/dialog_delegate.h" |
| 16 #include "views/window/window.h" | 16 #include "views/window/window.h" |
| 17 | 17 |
| 18 // Width to make the text field, in pixels. | 18 // Width to make the text field, in pixels. |
| 19 static const int kTextfieldWidth = 200; | 19 static const int kTextfieldWidth = 200; |
| 20 | 20 |
| 21 class ContentView; | 21 class ContentView; |
| 22 | 22 |
| 23 // The Windows implementation of the cross platform input dialog interface. | 23 // The Windows implementation of the cross platform input dialog interface. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 const std::wstring& window_title, | 226 const std::wstring& window_title, |
| 227 const std::wstring& label, | 227 const std::wstring& label, |
| 228 const std::wstring& contents, | 228 const std::wstring& contents, |
| 229 Delegate* delegate) { | 229 Delegate* delegate) { |
| 230 return new WinInputWindowDialog(parent, | 230 return new WinInputWindowDialog(parent, |
| 231 window_title, | 231 window_title, |
| 232 label, | 232 label, |
| 233 contents, | 233 contents, |
| 234 delegate); | 234 delegate); |
| 235 } | 235 } |
| OLD | NEW |