| 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_SCREEN_LOCK_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/common/notification_observer.h" | 8 #include "chrome/common/notification_observer.h" |
| 9 #include "chrome/common/notification_registrar.h" | 9 #include "chrome/common/notification_registrar.h" |
| 10 #include "views/controls/button/text_button.h" | 10 #include "views/controls/button/button.h" |
| 11 #include "views/controls/textfield/textfield.h" | 11 #include "views/controls/textfield/textfield.h" |
| 12 #include "views/view.h" | 12 #include "views/view.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 class ImageView; | 15 class ImageView; |
| 16 } // namespace views | 16 } // namespace views |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 | 19 |
| 20 class ScreenLocker; | 20 class ScreenLocker; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual bool HandleKeystroke(views::Textfield* sender, | 62 virtual bool HandleKeystroke(views::Textfield* sender, |
| 63 const views::Textfield::Keystroke& keystroke); | 63 const views::Textfield::Keystroke& keystroke); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 friend class test::ScreenLockerTester; | 66 friend class test::ScreenLockerTester; |
| 67 | 67 |
| 68 UserView* user_view_; | 68 UserView* user_view_; |
| 69 | 69 |
| 70 // For editing the password. | 70 // For editing the password. |
| 71 views::Textfield* password_field_; | 71 views::Textfield* password_field_; |
| 72 views::TextButton* unlock_button_; | 72 views::Button* unlock_button_; |
| 73 | 73 |
| 74 // ScreenLocker is owned by itself. | 74 // ScreenLocker is owned by itself. |
| 75 ScreenLocker* screen_locker_; | 75 ScreenLocker* screen_locker_; |
| 76 | 76 |
| 77 NotificationRegistrar registrar_; | 77 NotificationRegistrar registrar_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); | 79 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace chromeos | 82 } // namespace chromeos |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| OLD | NEW |