OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOCK_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 static ScreenLocker* default_screen_locker() { | 54 static ScreenLocker* default_screen_locker() { |
55 return screen_locker_; | 55 return screen_locker_; |
56 } | 56 } |
57 | 57 |
58 bool locked() const { return locked_; } | 58 bool locked() const { return locked_; } |
59 | 59 |
60 // Initialize and show the screen locker. | 60 // Initialize and show the screen locker. |
61 void Init(); | 61 void Init(); |
62 | 62 |
63 // AuthStatusConsumer: | 63 // AuthStatusConsumer: |
64 virtual void OnAuthFailure(const chromeos::AuthFailure& error) OVERRIDE; | 64 virtual void OnAuthFailure(const chromeos::AuthFailure& error) override; |
65 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; | 65 virtual void OnAuthSuccess(const UserContext& user_context) override; |
66 | 66 |
67 // Does actual unlocking once authentication is successful and all blocking | 67 // Does actual unlocking once authentication is successful and all blocking |
68 // animations are done. | 68 // animations are done. |
69 void UnlockOnLoginSuccess(); | 69 void UnlockOnLoginSuccess(); |
70 | 70 |
71 // Authenticates the user with given |user_context|. | 71 // Authenticates the user with given |user_context|. |
72 void Authenticate(const UserContext& user_context); | 72 void Authenticate(const UserContext& user_context); |
73 | 73 |
74 // Close message bubble to clear error messages. | 74 // Close message bubble to clear error messages. |
75 void ClearErrors(); | 75 void ClearErrors(); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_; | 190 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_; |
191 | 191 |
192 base::WeakPtrFactory<ScreenLocker> weak_factory_; | 192 base::WeakPtrFactory<ScreenLocker> weak_factory_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace chromeos | 197 } // namespace chromeos |
198 | 198 |
199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ |
OLD | NEW |