| 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_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual ~EasyUnlockScreenlockStateHandler(); | 56 virtual ~EasyUnlockScreenlockStateHandler(); |
| 57 | 57 |
| 58 // Changes internal state to |new_state| and updates the user's screenlock | 58 // Changes internal state to |new_state| and updates the user's screenlock |
| 59 // accordingly. | 59 // accordingly. |
| 60 void ChangeState(State new_state); | 60 void ChangeState(State new_state); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // ScreenlockBridge::Observer: | 63 // ScreenlockBridge::Observer: |
| 64 virtual void OnScreenDidLock() OVERRIDE; | 64 virtual void OnScreenDidLock() OVERRIDE; |
| 65 virtual void OnScreenDidUnlock() OVERRIDE; | 65 virtual void OnScreenDidUnlock() OVERRIDE; |
| 66 virtual void OnFocusedUserChanged(const std::string& user_id) OVERRIDE; |
| 66 | 67 |
| 67 // Updates icon's tooltip options. | 68 // Updates icon's tooltip options. |
| 68 // |trial_run|: Whether the trial Easy Unlock run is in progress. | 69 // |trial_run|: Whether the trial Easy Unlock run is in progress. |
| 69 void UpdateTooltipOptions( | 70 void UpdateTooltipOptions( |
| 70 bool trial_run, | 71 bool trial_run, |
| 71 ScreenlockBridge::UserPodCustomIconOptions* icon_options); | 72 ScreenlockBridge::UserPodCustomIconOptions* icon_options); |
| 72 | 73 |
| 73 // Whether this is the first, trial Easy Unlock run. If this is the case, a | 74 // Whether this is the first, trial Easy Unlock run. If this is the case, a |
| 74 // tutorial message should be shown and hard-locking be disabled in | 75 // tutorial message should be shown and hard-locking be disabled in |
| 75 // Authenticated state. The trial run will be active if Easy Unlock never | 76 // Authenticated state. The trial run will be active if Easy Unlock never |
| (...skipping 12 matching lines...) Expand all Loading... |
| 88 | 89 |
| 89 State state_; | 90 State state_; |
| 90 std::string user_email_; | 91 std::string user_email_; |
| 91 PrefService* pref_service_; | 92 PrefService* pref_service_; |
| 92 ScreenlockBridge* screenlock_bridge_; | 93 ScreenlockBridge* screenlock_bridge_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); | 95 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 98 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
| OLD | NEW |