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

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

Issue 649313004: Standardize usage of virtual/override/final in chrome/browser/signin/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 }; 54 };
55 55
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 ~EasyUnlockScreenlockStateHandler() override;
65 65
66 // Returns true if handler is not in INACTIVE state. 66 // Returns true if handler is not in INACTIVE state.
67 bool IsActive() const; 67 bool IsActive() const;
68 68
69 // 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
70 // accordingly. 70 // accordingly.
71 void ChangeState(State new_state); 71 void ChangeState(State new_state);
72 72
73 // Updates the screenlock state. 73 // Updates the screenlock state.
74 void SetHardlockState(HardlockState new_state); 74 void SetHardlockState(HardlockState new_state);
75 75
76 // 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.
77 void MaybeShowHardlockUI(); 77 void MaybeShowHardlockUI();
78 78
79 // Marks the current screenlock state as the one for trial Easy Unlock run. 79 // Marks the current screenlock state as the one for trial Easy Unlock run.
80 void SetTrialRun(); 80 void SetTrialRun();
81 81
82 private: 82 private:
83 // ScreenlockBridge::Observer: 83 // ScreenlockBridge::Observer:
84 virtual void OnScreenDidLock() override; 84 void OnScreenDidLock() override;
85 virtual void OnScreenDidUnlock() override; 85 void OnScreenDidUnlock() override;
86 virtual void OnFocusedUserChanged(const std::string& user_id) override; 86 void OnFocusedUserChanged(const std::string& user_id) override;
87 87
88 // Forces refresh of the Easy Unlock screenlock UI. 88 // Forces refresh of the Easy Unlock screenlock UI.
89 void RefreshScreenlockState(); 89 void RefreshScreenlockState();
90 90
91 void ShowHardlockUI(); 91 void ShowHardlockUI();
92 92
93 // Updates icon's tooltip options. 93 // Updates icon's tooltip options.
94 // |trial_run|: Whether the trial Easy Unlock run is in progress. 94 // |trial_run|: Whether the trial Easy Unlock run is in progress.
95 void UpdateTooltipOptions( 95 void UpdateTooltipOptions(
96 bool trial_run, 96 bool trial_run,
(...skipping 16 matching lines...) Expand all
113 113
114 // 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
115 // 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
116 // 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.
117 bool is_trial_run_; 117 bool is_trial_run_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 119 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
120 }; 120 };
121 121
122 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 122 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698