| 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 (function() { | 5 (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * The duration in ms of a background flash when a user touches the fingerprint | 9 * The duration in ms of a background flash when a user touches the fingerprint |
| 10 * sensor on this page. | 10 * sensor on this page. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 /** | 143 /** |
| 144 * Opens the setup fingerprint dialog. | 144 * Opens the setup fingerprint dialog. |
| 145 * @private | 145 * @private |
| 146 */ | 146 */ |
| 147 openAddFingerprintDialog_: function() { | 147 openAddFingerprintDialog_: function() { |
| 148 this.$.setupFingerprint.open(); | 148 this.$.setupFingerprint.open(); |
| 149 }, | 149 }, |
| 150 | 150 |
| 151 /** @private */ | 151 /** @private */ |
| 152 onSetupFingerprintDialogClose_: function() { | 152 onSetupFingerprintDialogClose_: function() { |
| 153 this.$$('#addFingerprint').focus(); | 153 cr.ui.focusWithoutInk(assert(this.$$('#addFingerprint'))); |
| 154 this.browserProxy_.startAuthentication(); | 154 this.browserProxy_.startAuthentication(); |
| 155 }, | 155 }, |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * Close the setup fingerprint dialog when the screen is unlocked. | 158 * Close the setup fingerprint dialog when the screen is unlocked. |
| 159 * @param {boolean} screenIsLocked | 159 * @param {boolean} screenIsLocked |
| 160 * @private | 160 * @private |
| 161 */ | 161 */ |
| 162 onScreenLocked_: function(screenIsLocked) { | 162 onScreenLocked_: function(screenIsLocked) { |
| 163 if (!screenIsLocked && | 163 if (!screenIsLocked && |
| 164 settings.getCurrentRoute() == settings.Route.FINGERPRINT) { | 164 settings.getCurrentRoute() == settings.Route.FINGERPRINT) { |
| 165 this.$.setupFingerprint.close(); | 165 this.$.setupFingerprint.close(); |
| 166 } | 166 } |
| 167 }, | 167 }, |
| 168 }); | 168 }); |
| 169 })(); | 169 })(); |
| OLD | NEW |