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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "views/accelerator.h" |
9 #include "views/controls/button/native_button.h" | 10 #include "views/controls/button/native_button.h" |
10 #include "views/controls/textfield/textfield.h" | 11 #include "views/controls/textfield/textfield.h" |
11 #include "views/view.h" | 12 #include "views/view.h" |
12 | 13 |
13 namespace chromeos { | 14 namespace chromeos { |
14 | 15 |
15 class UserController; | 16 class UserController; |
16 | 17 |
17 class ExistingUserView : public views::View { | 18 class ExistingUserView : public views::View { |
18 public: | 19 public: |
19 explicit ExistingUserView(UserController* uc); | 20 explicit ExistingUserView(UserController* uc); |
20 | 21 |
21 void RecreateFields(); | 22 void RecreateFields(); |
22 | 23 |
23 views::Textfield* password_field() { return password_field_; } | 24 views::Textfield* password_field() { return password_field_; } |
24 | 25 |
25 views::NativeButton* submit_button() { return submit_button_; } | 26 views::NativeButton* submit_button() { return submit_button_; } |
26 | 27 |
27 void FocusPasswordField(); | 28 void FocusPasswordField(); |
28 | 29 |
29 // views::View | 30 // views::View |
30 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 31 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
31 | 32 |
32 protected: | 33 protected: |
33 // views::View overrides: | 34 // views::View overrides: |
34 virtual void OnLocaleChanged(); | 35 virtual void OnLocaleChanged(); |
| 36 virtual void ViewHierarchyChanged(bool is_add, |
| 37 views::View* parent, |
| 38 views::View* child); |
35 | 39 |
36 views::Accelerator accel_login_off_the_record_; | 40 views::Accelerator accel_login_off_the_record_; |
37 | 41 |
38 // For editing the password. | 42 // For editing the password. |
39 views::Textfield* password_field_; | 43 views::Textfield* password_field_; |
40 | 44 |
41 // Button to start login. | 45 // Button to start login. |
42 views::NativeButton* submit_button_; | 46 views::NativeButton* submit_button_; |
43 | 47 |
44 UserController* user_controller_; | 48 UserController* user_controller_; |
45 | 49 |
| 50 private: |
| 51 views::Accelerator accel_enable_accessibility_; |
| 52 |
46 DISALLOW_COPY_AND_ASSIGN(ExistingUserView); | 53 DISALLOW_COPY_AND_ASSIGN(ExistingUserView); |
47 }; | 54 }; |
48 | 55 |
49 } // chromeos | 56 } // chromeos |
50 | 57 |
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ |
OLD | NEW |