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_SCREENLOCK_STATE_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H |
6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H | 6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H |
7 | 7 |
8 namespace proximity_auth { | 8 namespace proximity_auth { |
9 | 9 |
10 // Possible user states of the proximity auth feature on the lock or sign-in | 10 // Possible user states of the proximity auth feature on the lock or sign-in |
11 // screen. | 11 // screen. |
12 enum class ScreenlockState { | 12 enum class ScreenlockState { |
13 // Proximity-based authentication is not enabled, or the screen is not | 13 // Proximity-based authentication is not enabled, or the screen is not |
14 // locked. | 14 // locked. |
15 INACTIVE, | 15 INACTIVE, |
16 // Bluetooth is not on. | 16 // Bluetooth is not on. |
17 NO_BLUETOOTH, | 17 NO_BLUETOOTH, |
18 // The local device is in process of turning on Bluetooth. | 18 // The local device is in process of connecting to the remote device. |
19 BLUETOOTH_CONNECTING, | 19 BLUETOOTH_CONNECTING, |
20 // No phones eligible to unlock the local device can be found. | 20 // No phones eligible to unlock the local device can be found. |
21 NO_PHONE, | 21 NO_PHONE, |
22 // A phone eligible to unlock the local device is found, but cannot be | 22 // A phone eligible to unlock the local device is found, but cannot be |
23 // authenticated. | 23 // authenticated. |
24 PHONE_NOT_AUTHENTICATED, | 24 PHONE_NOT_AUTHENTICATED, |
25 // A phone eligible to unlock the local device is found, but it's locked. | 25 // A phone eligible to unlock the local device is found, but it's locked. |
26 PHONE_LOCKED, | 26 PHONE_LOCKED, |
27 // A phone eligible to unlock the local device is found, but it does not have | 27 // A phone eligible to unlock the local device is found, but it does not have |
28 // a lock screen enabled. | 28 // a lock screen enabled. |
(...skipping 15 matching lines...) Expand all Loading... |
44 // indicating that the phone is (probably) more than 1 foot away, and | 44 // indicating that the phone is (probably) more than 1 foot away, and |
45 // therefore is not allowed to unlock the device. | 45 // therefore is not allowed to unlock the device. |
46 PHONE_LOCKED_AND_TX_POWER_TOO_HIGH, | 46 PHONE_LOCKED_AND_TX_POWER_TOO_HIGH, |
47 // The local device can be unlocked using proximity-based authentication. | 47 // The local device can be unlocked using proximity-based authentication. |
48 AUTHENTICATED, | 48 AUTHENTICATED, |
49 }; | 49 }; |
50 | 50 |
51 } // namespace proximity_auth | 51 } // namespace proximity_auth |
52 | 52 |
53 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H | 53 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H |
OLD | NEW |