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 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to | 5 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to |
6 // be used by Easy Unlock component app. | 6 // be used by Easy Unlock component app. |
7 namespace easyUnlockPrivate { | 7 namespace easyUnlockPrivate { |
8 // Signature algorithms supported by the crypto library methods used by | 8 // Signature algorithms supported by the crypto library methods used by |
9 // Easy Unlock. | 9 // Easy Unlock. |
10 enum SignatureType { | 10 enum SignatureType { |
(...skipping 30 matching lines...) Expand all Loading... |
41 // to unlock the device because it does not report its lock screen state. | 41 // to unlock the device because it does not report its lock screen state. |
42 PHONE_UNSUPPORTED, | 42 PHONE_UNSUPPORTED, |
43 // A phone eligible to unlock the device is detected, but its received | 43 // A phone eligible to unlock the device is detected, but its received |
44 // signal strength is too low, i.e. the phone is roughly more than 30 feet | 44 // signal strength is too low, i.e. the phone is roughly more than 30 feet |
45 // away, and therefore is not allowed to unlock the device. | 45 // away, and therefore is not allowed to unlock the device. |
46 RSSI_TOO_LOW, | 46 RSSI_TOO_LOW, |
47 // A phone eligible to unlock the device is found, but the local device's | 47 // A phone eligible to unlock the device is found, but the local device's |
48 // transmission power is too high, indicating that the phone is (probably) | 48 // transmission power is too high, indicating that the phone is (probably) |
49 // more than 1 foot away, and therefore is not allowed to unlock the device. | 49 // more than 1 foot away, and therefore is not allowed to unlock the device. |
50 TX_POWER_TOO_HIGH, | 50 TX_POWER_TOO_HIGH, |
51 // The devie can be unlocked using Easy Unlock. | 51 // A phone eligible to unlock the device is found; but (a) the phone is |
| 52 // locked, and (b) the local device's transmission power is too high, |
| 53 // indicating that the phone is (probably) more than 1 foot away, and |
| 54 // therefore is not allowed to unlock the device. |
| 55 PHONE_LOCKED_AND_TX_POWER_TOO_HIGH, |
| 56 // The device can be unlocked using Easy Unlock. |
52 AUTHENTICATED | 57 AUTHENTICATED |
53 }; | 58 }; |
54 | 59 |
55 // Type of a permit. All lower case to match permit.PermitRecord.Type. | 60 // Type of a permit. All lower case to match permit.PermitRecord.Type. |
56 enum PermitType {access, license}; | 61 enum PermitType {access, license}; |
57 | 62 |
58 // Options that can be passed to |unwrapSecureMessage| method. | 63 // Options that can be passed to |unwrapSecureMessage| method. |
59 dictionary UnwrapSecureMessageOptions { | 64 dictionary UnwrapSecureMessageOptions { |
60 // The data associated with the message. For the message to be succesfully | 65 // The data associated with the message. For the message to be succesfully |
61 // verified, the message should have been created with the same associated | 66 // verified, the message should have been created with the same associated |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 ConnectionInfoCallback callback); | 331 ConnectionInfoCallback callback); |
327 }; | 332 }; |
328 | 333 |
329 interface Events { | 334 interface Events { |
330 // Event fired when the data for the user currently associated with | 335 // Event fired when the data for the user currently associated with |
331 // Easy unlock service is updated. | 336 // Easy unlock service is updated. |
332 // |userInfo| The updated user information. | 337 // |userInfo| The updated user information. |
333 static void onUserInfoUpdated(UserInfo userInfo); | 338 static void onUserInfoUpdated(UserInfo userInfo); |
334 }; | 339 }; |
335 }; | 340 }; |
OLD | NEW |