Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler.h

Issue 644873002: Easy Unlock Show connecting user pod icon when waking up from sleep (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_screenlock_state_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
56 // |user_email|: The email for the user associated with the profile to which 56 // |user_email|: The email for the user associated with the profile to which
57 // this class is attached. 57 // this class is attached.
58 // |initial_hardlock_state|: The initial hardlock state. 58 // |initial_hardlock_state|: The initial hardlock state.
59 // |screenlock_bridge|: The screenlock bridge used to update the screen lock 59 // |screenlock_bridge|: The screenlock bridge used to update the screen lock
60 // state. 60 // state.
61 EasyUnlockScreenlockStateHandler(const std::string& user_email, 61 EasyUnlockScreenlockStateHandler(const std::string& user_email,
62 HardlockState initial_hardlock_state, 62 HardlockState initial_hardlock_state,
63 ScreenlockBridge* screenlock_bridge); 63 ScreenlockBridge* screenlock_bridge);
64 virtual ~EasyUnlockScreenlockStateHandler(); 64 virtual ~EasyUnlockScreenlockStateHandler();
65 65
66 // Returns true if handler is not in INACTIVE state.
67 bool IsActive() const;
68
66 // Changes internal state to |new_state| and updates the user's screenlock 69 // Changes internal state to |new_state| and updates the user's screenlock
67 // accordingly. 70 // accordingly.
68 void ChangeState(State new_state); 71 void ChangeState(State new_state);
69 72
70 // Updates the screenlock state. 73 // Updates the screenlock state.
71 void SetHardlockState(HardlockState new_state); 74 void SetHardlockState(HardlockState new_state);
72 75
73 // Shows the hardlock UI if the hardlock_state_ is not NO_HARDLOCK. 76 // Shows the hardlock UI if the hardlock_state_ is not NO_HARDLOCK.
74 void MaybeShowHardlockUI(); 77 void MaybeShowHardlockUI();
75 78
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 113
111 // Whether this is the trial Easy Unlock run. If this is the case, a 114 // Whether this is the trial Easy Unlock run. If this is the case, a
112 // tutorial message should be shown and hard-locking be disabled. The trial 115 // tutorial message should be shown and hard-locking be disabled. The trial
113 // run should be set if the screen was locked by the Easy Unlock setup app. 116 // run should be set if the screen was locked by the Easy Unlock setup app.
114 bool is_trial_run_; 117 bool is_trial_run_;
115 118
116 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 119 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
117 }; 120 };
118 121
119 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 122 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_screenlock_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698