| 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/helper.h" |
| 10 #include "chrome/browser/chromeos/login/user_view.h" | 10 #include "chrome/browser/chromeos/login/user_view.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const NotificationDetails& details); | 58 const NotificationDetails& details); |
| 59 | 59 |
| 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 HandleKeystroke(views::Textfield* sender, | 63 virtual bool HandleKeystroke(views::Textfield* sender, |
| 64 const views::Textfield::Keystroke& keystroke); | 64 const views::Textfield::Keystroke& 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 | 69 |
| 69 protected: | 70 protected: |
| 70 // views::View implementation: | 71 // views::View implementation: |
| 71 virtual void ViewHierarchyChanged(bool is_add, | 72 virtual void ViewHierarchyChanged(bool is_add, |
| 72 views::View* parent, | 73 views::View* parent, |
| 73 views::View* child); | 74 views::View* child); |
| 74 | 75 |
| 75 private: | 76 private: |
| 76 friend class test::ScreenLockerTester; | 77 friend class test::ScreenLockerTester; |
| 77 | 78 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 90 | 91 |
| 91 // Username that overlays on top of user's picture. | 92 // Username that overlays on top of user's picture. |
| 92 views::View* username_; | 93 views::View* username_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); | 95 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace chromeos | 98 } // namespace chromeos |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
| OLD | NEW |