| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/login/helper.h" |
| 9 #include "chrome/browser/chromeos/login/user_view.h" | 10 #include "chrome/browser/chromeos/login/user_view.h" |
| 10 #include "chrome/common/notification_observer.h" | 11 #include "chrome/common/notification_observer.h" |
| 11 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 12 #include "views/controls/textfield/textfield.h" | 13 #include "views/controls/textfield/textfield.h" |
| 13 #include "views/view.h" | 14 #include "views/view.h" |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 class ImageView; | 17 class ImageView; |
| 17 } // namespace views | 18 } // namespace views |
| 18 | 19 |
| 19 namespace chromeos { | 20 namespace chromeos { |
| 20 | 21 |
| 21 class ScreenLocker; | 22 class ScreenLocker; |
| 22 class UserView; | 23 class UserView; |
| 23 | 24 |
| 24 namespace test { | 25 namespace test { |
| 25 class ScreenLockerTester; | 26 class ScreenLockerTester; |
| 26 } // namespace test | 27 } // namespace test |
| 27 | 28 |
| 28 // ScreenLockView creates view components necessary to authenticate | 29 // ScreenLockView creates view components necessary to authenticate |
| 29 // a user to unlock the screen. | 30 // a user to unlock the screen. |
| 30 class ScreenLockView : public views::View, | 31 class ScreenLockView : public ThrobberHost, |
| 32 public views::View, |
| 31 public views::Textfield::Controller, | 33 public views::Textfield::Controller, |
| 32 public NotificationObserver, | 34 public NotificationObserver, |
| 33 public UserView::Delegate { | 35 public UserView::Delegate { |
| 34 public: | 36 public: |
| 35 explicit ScreenLockView(ScreenLocker* screen_locker); | 37 explicit ScreenLockView(ScreenLocker* screen_locker); |
| 36 virtual ~ScreenLockView() {} | 38 virtual ~ScreenLockView(); |
| 37 | 39 |
| 38 void Init(); | 40 void Init(); |
| 39 | 41 |
| 40 // Clears and sets the focus to the password field. | 42 // Clears and sets the focus to the password field. |
| 41 void ClearAndSetFocusToPassword(); | 43 void ClearAndSetFocusToPassword(); |
| 42 | 44 |
| 43 // Enable/Disable signout button. | 45 // Enable/Disable signout button. |
| 44 void SetSignoutEnabled(bool enabled); | 46 void SetSignoutEnabled(bool enabled); |
| 45 | 47 |
| 46 // Returns the bounds of the password field in ScreenLocker's coordinate. | 48 // Returns the bounds of the password field in ScreenLocker's coordinate. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 91 |
| 90 // Username that overlays on top of user's picture. | 92 // Username that overlays on top of user's picture. |
| 91 views::View* username_; | 93 views::View* username_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); | 95 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace chromeos | 98 } // namespace chromeos |
| 97 | 99 |
| 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| OLD | NEW |