OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // LOGIN_USER_CHANGED notification so that the screen locker accepts | 86 // LOGIN_USER_CHANGED notification so that the screen locker accepts |
87 // lock event only after a user is logged in. | 87 // lock event only after a user is logged in. |
88 static void InitClass(); | 88 static void InitClass(); |
89 | 89 |
90 // Show the screen locker. | 90 // Show the screen locker. |
91 static void Show(); | 91 static void Show(); |
92 | 92 |
93 // Hide the screen locker. | 93 // Hide the screen locker. |
94 static void Hide(); | 94 static void Hide(); |
95 | 95 |
96 // Notifies that PowerManager rejected UnlockScreen request. | |
97 static void UnlockScreenFailed(); | |
98 | |
99 // Returns the tester | 96 // Returns the tester |
100 static test::ScreenLockerTester* GetTester(); | 97 static test::ScreenLockerTester* GetTester(); |
101 | 98 |
102 private: | 99 private: |
103 friend class base::DeleteHelper<ScreenLocker>; | 100 friend class base::DeleteHelper<ScreenLocker>; |
104 friend class test::ScreenLockerTester; | 101 friend class test::ScreenLockerTester; |
105 friend class test::ScreenLockerViewsTester; | 102 friend class test::ScreenLockerViewsTester; |
106 friend class test::WebUIScreenLockerTester; | 103 friend class test::WebUIScreenLockerTester; |
107 friend class ScreenLockerDelegate; | 104 friend class ScreenLockerDelegate; |
108 | 105 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 144 |
148 // Number of bad login attempts in a row. | 145 // Number of bad login attempts in a row. |
149 int incorrect_passwords_count_; | 146 int incorrect_passwords_count_; |
150 | 147 |
151 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 148 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
152 }; | 149 }; |
153 | 150 |
154 } // namespace chromeos | 151 } // namespace chromeos |
155 | 152 |
156 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
OLD | NEW |