Chromium Code Reviews| 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 COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ |
| 6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 void SetAriaLabel(const base::string16& aria_label); | 63 void SetAriaLabel(const base::string16& aria_label); |
| 64 | 64 |
| 65 // If hardlock on click is set, clicking the icon in the screenlock will | 65 // If hardlock on click is set, clicking the icon in the screenlock will |
| 66 // go to state where password is required for unlock. | 66 // go to state where password is required for unlock. |
| 67 void SetHardlockOnClick(); | 67 void SetHardlockOnClick(); |
| 68 | 68 |
| 69 // If the current lock screen is a trial run to introduce users to Easy | 69 // If the current lock screen is a trial run to introduce users to Easy |
| 70 // Unlock, the icon will record metrics upon click. | 70 // Unlock, the icon will record metrics upon click. |
| 71 void SetTrialRun(); | 71 void SetTrialRun(); |
| 72 | 72 |
| 73 std::string GetIDString() const; | |
| 74 | |
| 75 base::string16 tooltip() const { return tooltip_; } | |
|
xiyuan
2017/06/06 19:27:53
nit: const base::string16& to avoid copying
same
xiaoyinh(OOO Sep 11-29)
2017/06/07 17:35:24
Done.
| |
| 76 | |
| 77 bool autoshow_tooltip() const { return autoshow_tooltip_; } | |
| 78 | |
| 79 base::string16 aria_label() const { return aria_label_; } | |
| 80 | |
| 81 bool hardlock_on_click() const { return hardlock_on_click_; } | |
| 82 | |
| 83 bool is_trial_run() const { return is_trial_run_; } | |
| 84 | |
| 73 private: | 85 private: |
| 74 UserPodCustomIcon icon_; | 86 UserPodCustomIcon icon_; |
| 75 | 87 |
| 76 base::string16 tooltip_; | 88 base::string16 tooltip_; |
| 77 bool autoshow_tooltip_; | 89 bool autoshow_tooltip_; |
| 78 | 90 |
| 79 base::string16 aria_label_; | 91 base::string16 aria_label_; |
| 80 | 92 |
| 81 bool hardlock_on_click_; | 93 bool hardlock_on_click_; |
| 82 | 94 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 // The last focused user's id. | 194 // The last focused user's id. |
| 183 AccountId focused_account_id_; | 195 AccountId focused_account_id_; |
| 184 base::ObserverList<Observer, true> observers_; | 196 base::ObserverList<Observer, true> observers_; |
| 185 | 197 |
| 186 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); | 198 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); |
| 187 }; | 199 }; |
| 188 | 200 |
| 189 } // namespace proximity_auth | 201 } // namespace proximity_auth |
| 190 | 202 |
| 191 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ | 203 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_BRIDGE_H_ |
| OLD | NEW |