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

Side by Side Diff: components/proximity_auth/screenlock_state.h

Issue 1113043004: [Smart Lock] Extract the screenlock state to the proximity_auth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests compile Created 5 years, 7 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
« no previous file with comments | « components/proximity_auth/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H
6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H
7
8 namespace proximity_auth {
9
10 // Possible user states of the proximity auth feature on the lock or sign-in
11 // screen.
12 enum class ScreenlockState {
13 // Proximity-based authentication is not enabled, or the screen is not
14 // locked.
15 INACTIVE,
16 // Bluetooth is not on.
17 NO_BLUETOOTH,
18 // The local device is in process of turning on Bluetooth.
19 BLUETOOTH_CONNECTING,
20 // No phones eligible to unlock the local device can be found.
21 NO_PHONE,
22 // A phone eligible to unlock the local device is found, but cannot be
23 // authenticated.
24 PHONE_NOT_AUTHENTICATED,
25 // A phone eligible to unlock the local device is found, but it's locked.
26 PHONE_LOCKED,
27 // A phone eligible to unlock the local device is found, but it does not have
28 // a lock screen enabled.
29 PHONE_NOT_LOCKABLE,
30 // An enabled phone is found, but it is not allowed to unlock the local device
31 // because it does not support reporting its lock screen state.
32 PHONE_UNSUPPORTED,
33 // A phone eligible to unlock the local device is found, but its received
34 // signal strength is too low, i.e. the phone is roughly more than 30 feet
35 // away, and therefore is not allowed to unlock the device.
36 RSSI_TOO_LOW,
37 // A phone eligible to unlock the local device is found, but the local
38 // device's transmission power is too high, indicating that the phone is
39 // (probably) more than 1 foot away, and therefore is not allowed to unlock
40 // the device.
41 TX_POWER_TOO_HIGH,
42 // A phone eligible to unlock the local device is found; but (a) the phone is
43 // locked, and (b) the local device's transmission power is too high,
44 // indicating that the phone is (probably) more than 1 foot away, and
45 // therefore is not allowed to unlock the device.
46 PHONE_LOCKED_AND_TX_POWER_TOO_HIGH,
47 // The local device can be unlocked using proximity-based authentication.
48 AUTHENTICATED,
49 };
50
51 } // namespace proximity_auth
52
53 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H
OLDNEW
« no previous file with comments | « components/proximity_auth/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698