OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ |
6 #define COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // The user id or email of the last focused user on the lock screen. | 127 // The user id or email of the last focused user on the lock screen. |
128 std::string last_focused_user_; | 128 std::string last_focused_user_; |
129 | 129 |
130 // True if the the last status update from the phone reports that the phone's | 130 // True if the the last status update from the phone reports that the phone's |
131 // screen is locked. If no status update has been received, this value is true | 131 // screen is locked. If no status update has been received, this value is true |
132 // by default. | 132 // by default. |
133 bool is_remote_screen_locked_; | 133 bool is_remote_screen_locked_; |
134 | 134 |
135 // The timer controlling the time the spinner for the user pod icon is shown | 135 // The timer controlling the time the spinner for the user pod icon is shown |
136 // right after the screen is locked. | 136 // right after the screen is locked. |
137 base::OneShotTimer<ProximityAuthBleSystem> spinner_timer_; | 137 base::OneShotTimer spinner_timer_; |
138 | 138 |
139 // The different UI states that the lock screen can be in. | 139 // The different UI states that the lock screen can be in. |
140 enum class ScreenlockUIState { | 140 enum class ScreenlockUIState { |
141 NO_SCREENLOCK, | 141 NO_SCREENLOCK, |
142 SPINNER, | 142 SPINNER, |
143 UNAUTHENTICATED, | 143 UNAUTHENTICATED, |
144 AUTHENTICATED | 144 AUTHENTICATED |
145 }; | 145 }; |
146 ScreenlockUIState screenlock_ui_state_; | 146 ScreenlockUIState screenlock_ui_state_; |
147 | 147 |
148 base::WeakPtrFactory<ProximityAuthBleSystem> weak_ptr_factory_; | 148 base::WeakPtrFactory<ProximityAuthBleSystem> weak_ptr_factory_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(ProximityAuthBleSystem); | 150 DISALLOW_COPY_AND_ASSIGN(ProximityAuthBleSystem); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace proximity_auth | 153 } // namespace proximity_auth |
154 | 154 |
155 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ | 155 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_PROXIMITY_AUTH_BLE_SYSTEM_H_ |
OLD | NEW |