Chromium Code Reviews| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 | 137 |
| 138 // Websafe base64 encoded persistent symmetric key. | 138 // Websafe base64 encoded persistent symmetric key. |
| 139 DOMString? psk; | 139 DOMString? psk; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 // The information about a user associated with Easy unlock service. | 142 // The information about a user associated with Easy unlock service. |
| 143 dictionary UserInfo { | 143 dictionary UserInfo { |
| 144 // The user id. | 144 // The user id. |
| 145 DOMString userId; | 145 DOMString userId; |
| 146 | 146 |
| 147 // An stable identifier for the user and device. If a user is removed and | |
|
Ilya Sherman
2015/02/10 01:31:05
nit: "An" -> "A"
Tim Song
2015/02/10 22:20:33
Done.
| |
| 148 // added to the same device, this id will remain the same. However, this id | |
| 149 // will be different if another user is added to the same device or if the | |
| 150 // same user is added on another device. | |
| 151 DOMString deviceUserId; | |
| 152 | |
| 147 // Whether the user is logged in. If not logged in, the app is running on | 153 // Whether the user is logged in. If not logged in, the app is running on |
| 148 // the signin screen. | 154 // the signin screen. |
| 149 boolean loggedIn; | 155 boolean loggedIn; |
| 150 | 156 |
| 151 // Whether to require the remote device to be in very close proximity before | 157 // Whether to require the remote device to be in very close proximity before |
| 152 // allowing unlock (~1 feet). | 158 // allowing unlock (~1 feet). |
| 153 boolean requireCloseProximity; | 159 boolean requireCloseProximity; |
| 154 | 160 |
| 155 // Whether all data needed to use Easy unlock service has been loaded for | 161 // Whether all data needed to use Easy unlock service has been loaded for |
| 156 // the user. | 162 // the user. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 Rect anchorRect); | 366 Rect anchorRect); |
| 361 }; | 367 }; |
| 362 | 368 |
| 363 interface Events { | 369 interface Events { |
| 364 // Event fired when the data for the user currently associated with | 370 // Event fired when the data for the user currently associated with |
| 365 // Easy unlock service is updated. | 371 // Easy unlock service is updated. |
| 366 // |userInfo| The updated user information. | 372 // |userInfo| The updated user information. |
| 367 static void onUserInfoUpdated(UserInfo userInfo); | 373 static void onUserInfoUpdated(UserInfo userInfo); |
| 368 }; | 374 }; |
| 369 }; | 375 }; |
| OLD | NEW |