OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/login/password_changed_view.h" | 5 #include "chrome/browser/chromeos/login/password_changed_view.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" | 9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
11 #include "grit/locale_settings.h" | 11 #include "grit/locale_settings.h" |
| 12 #include "ui/base/event.h" |
12 #include "ui/base/keycodes/keyboard_codes.h" | 13 #include "ui/base/keycodes/keyboard_codes.h" |
13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/views/controls/button/radio_button.h" | 16 #include "ui/views/controls/button/radio_button.h" |
16 #include "ui/views/controls/label.h" | 17 #include "ui/views/controls/label.h" |
17 #include "ui/views/controls/textfield/textfield.h" | 18 #include "ui/views/controls/textfield/textfield.h" |
18 #include "ui/views/layout/grid_layout.h" | 19 #include "ui/views/layout/grid_layout.h" |
19 #include "ui/views/layout/layout_constants.h" | 20 #include "ui/views/layout/layout_constants.h" |
20 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
21 | 22 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 210 } |
210 GetDialogClientView()->UpdateDialogButtons(); | 211 GetDialogClientView()->UpdateDialogButtons(); |
211 } | 212 } |
212 | 213 |
213 void PasswordChangedView::ContentsChanged(views::Textfield* sender, | 214 void PasswordChangedView::ContentsChanged(views::Textfield* sender, |
214 const string16& new_contents) { | 215 const string16& new_contents) { |
215 GetDialogClientView()->UpdateDialogButtons(); | 216 GetDialogClientView()->UpdateDialogButtons(); |
216 } | 217 } |
217 | 218 |
218 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender, | 219 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender, |
219 const views::KeyEvent& keystroke) { | 220 const ui::KeyEvent& keystroke) { |
220 return false; | 221 return false; |
221 } | 222 } |
222 | 223 |
223 } // namespace chromeos | 224 } // namespace chromeos |
OLD | NEW |