| OLD | NEW |
| 1 // Copyright (c) 2010 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 #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/helper.h" |
| 10 #include "chrome/browser/chromeos/login/user_view.h" | 10 #include "chrome/browser/chromeos/login/user_view.h" |
| 11 #include "chrome/common/notification_observer.h" | 11 #include "chrome/common/notification_observer.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // views::Textfield::Controller implementation: | 60 // views::Textfield::Controller implementation: |
| 61 virtual void ContentsChanged(views::Textfield* sender, | 61 virtual void ContentsChanged(views::Textfield* sender, |
| 62 const string16& new_contents); | 62 const string16& new_contents); |
| 63 virtual bool HandleKeyEvent(views::Textfield* sender, | 63 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 64 const views::KeyEvent& keystroke); | 64 const views::KeyEvent& keystroke); |
| 65 | 65 |
| 66 // UserView::Delegate implementation: | 66 // UserView::Delegate implementation: |
| 67 virtual void OnSignout(); | 67 virtual void OnSignout(); |
| 68 virtual bool IsUserSelected() const { return true; } | 68 virtual bool IsUserSelected() const { return true; } |
| 69 | 69 |
| 70 protected: | |
| 71 // views::View implementation: | |
| 72 virtual void ViewHierarchyChanged(bool is_add, | |
| 73 views::View* parent, | |
| 74 views::View* child); | |
| 75 | |
| 76 private: | 70 private: |
| 77 friend class test::ScreenLockerTester; | 71 friend class test::ScreenLockerTester; |
| 78 | 72 |
| 79 UserView* user_view_; | 73 UserView* user_view_; |
| 80 | 74 |
| 81 // For editing the password. | 75 // For editing the password. |
| 82 views::Textfield* password_field_; | 76 views::Textfield* password_field_; |
| 83 | 77 |
| 84 // ScreenLocker is owned by itself. | 78 // ScreenLocker is owned by itself. |
| 85 ScreenLocker* screen_locker_; | 79 ScreenLocker* screen_locker_; |
| 86 | 80 |
| 87 NotificationRegistrar registrar_; | 81 NotificationRegistrar registrar_; |
| 88 | 82 |
| 89 // User's picture, signout button and password field. | 83 // User's picture, signout button and password field. |
| 90 views::View* main_; | 84 views::View* main_; |
| 91 | 85 |
| 92 // Username that overlays on top of user's picture. | 86 // Username that overlays on top of user's picture. |
| 93 views::View* username_; | 87 views::View* username_; |
| 94 | 88 |
| 95 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); | 89 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); |
| 96 }; | 90 }; |
| 97 | 91 |
| 98 } // namespace chromeos | 92 } // namespace chromeos |
| 99 | 93 |
| 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| OLD | NEW |