| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-lock-screen' allows the user to change how they unlock their | 7 * 'settings-lock-screen' allows the user to change how they unlock their |
| 8 * device. | 8 * device. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * entered password. It's defined only when the user has already entered a | 30 * entered password. It's defined only when the user has already entered a |
| 31 * valid password. | 31 * valid password. |
| 32 * | 32 * |
| 33 * @type {Object|undefined} | 33 * @type {Object|undefined} |
| 34 * @private | 34 * @private |
| 35 */ | 35 */ |
| 36 setModes_: { | 36 setModes_: { |
| 37 type: Object, | 37 type: Object, |
| 38 observer: 'onSetModesChanged_' | 38 observer: 'onSetModesChanged_' |
| 39 }, | 39 }, |
| 40 |
| 41 /** |
| 42 * True if fingerprint unlock settings should be displayed on this machine. |
| 43 * @private |
| 44 */ |
| 45 fingerprintUnlockEnabled: { |
| 46 type: Boolean |
| 47 }, |
| 40 }, | 48 }, |
| 41 | 49 |
| 42 /** selectedUnlockType is defined in LockStateBehavior. */ | 50 /** selectedUnlockType is defined in LockStateBehavior. */ |
| 43 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'], | 51 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'], |
| 44 | 52 |
| 45 /** @override */ | 53 /** @override */ |
| 46 attached: function() { | 54 attached: function() { |
| 47 // currentRouteChanged is not called during the initial navigation. If the | 55 // currentRouteChanged is not called during the initial navigation. If the |
| 48 // user navigates directly to the lockScreen page, we still want to show the | 56 // user navigates directly to the lockScreen page, we still want to show the |
| 49 // password prompt page. | 57 // password prompt page. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 if (this.hasPin) | 124 if (this.hasPin) |
| 117 return this.i18n('lockScreenChangePinButton'); | 125 return this.i18n('lockScreenChangePinButton'); |
| 118 return this.i18n('lockScreenSetupPinButton'); | 126 return this.i18n('lockScreenSetupPinButton'); |
| 119 }, | 127 }, |
| 120 | 128 |
| 121 /** @private */ | 129 /** @private */ |
| 122 onConfigurePin_: function() { | 130 onConfigurePin_: function() { |
| 123 this.$.setupPin.open(); | 131 this.$.setupPin.open(); |
| 124 }, | 132 }, |
| 125 }); | 133 }); |
| OLD | NEW |