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 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 27 matching lines...) Expand all Loading... |
38 // the device because it does not support reporting it's lock screen state. | 38 // the device because it does not support reporting it's lock screen state. |
39 STATE_PHONE_UNSUPPORTED, | 39 STATE_PHONE_UNSUPPORTED, |
40 // A phone eligible to unlock the device is found, but its received signal | 40 // A phone eligible to unlock the device is found, but its received signal |
41 // strength is too low, i.e. the phone is roughly more than 30 feet away, | 41 // strength is too low, i.e. the phone is roughly more than 30 feet away, |
42 // and therefore is not allowed to unlock the device. | 42 // and therefore is not allowed to unlock the device. |
43 STATE_RSSI_TOO_LOW, | 43 STATE_RSSI_TOO_LOW, |
44 // A phone eligible to unlock the device is found, but the local device's | 44 // A phone eligible to unlock the device is found, but the local device's |
45 // transmission power is too high, indicating that the phone is (probably) | 45 // transmission power is too high, indicating that the phone is (probably) |
46 // more than 1 foot away, and therefore is not allowed to unlock the device. | 46 // more than 1 foot away, and therefore is not allowed to unlock the device. |
47 STATE_TX_POWER_TOO_HIGH, | 47 STATE_TX_POWER_TOO_HIGH, |
| 48 // A phone eligible to unlock the device is found; but (a) the phone is |
| 49 // locked, and (b) the local device's transmission power is too high, |
| 50 // indicating that the phone is (probably) more than 1 foot away, and |
| 51 // therefore is not allowed to unlock the device. |
| 52 STATE_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH, |
48 // The device can be unlocked using Easy Unlock. | 53 // The device can be unlocked using Easy Unlock. |
49 STATE_AUTHENTICATED | 54 STATE_AUTHENTICATED |
50 }; | 55 }; |
51 | 56 |
52 // Hard lock states. | 57 // Hard lock states. |
53 enum HardlockState { | 58 enum HardlockState { |
54 NO_HARDLOCK = 0, // Hard lock is not enforced. This is default. | 59 NO_HARDLOCK = 0, // Hard lock is not enforced. This is default. |
55 USER_HARDLOCK = 1 << 0, // Hard lock is requested by user. | 60 USER_HARDLOCK = 1 << 0, // Hard lock is requested by user. |
56 PAIRING_CHANGED = 1 << 1, // Hard lock because pairing data is changed. | 61 PAIRING_CHANGED = 1 << 1, // Hard lock because pairing data is changed. |
57 NO_PAIRING = 1 << 2, // Hard lock because there is no pairing data. | 62 NO_PAIRING = 1 << 2, // Hard lock because there is no pairing data. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 133 |
129 // Whether this is the trial Easy Unlock run. If this is the case, a | 134 // Whether this is the trial Easy Unlock run. If this is the case, a |
130 // tutorial message should be shown and hard-locking be disabled. The trial | 135 // tutorial message should be shown and hard-locking be disabled. The trial |
131 // run should be set if the screen was locked by the Easy Unlock setup app. | 136 // run should be set if the screen was locked by the Easy Unlock setup app. |
132 bool is_trial_run_; | 137 bool is_trial_run_; |
133 | 138 |
134 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); | 139 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); |
135 }; | 140 }; |
136 | 141 |
137 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 142 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
OLD | NEW |