| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 cr.exportPath('settings'); | 5 cr.exportPath('settings'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The steps in the fingerprint setup flow. | 8 * The steps in the fingerprint setup flow. |
| 9 * @enum {number} | 9 * @enum {number} |
| 10 */ | 10 */ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 tapSensorMessageTimeoutId_: 0, | 72 tapSensorMessageTimeoutId_: 0, |
| 73 | 73 |
| 74 /** @private {?settings.FingerprintBrowserProxy}*/ | 74 /** @private {?settings.FingerprintBrowserProxy}*/ |
| 75 browserProxy_: null, | 75 browserProxy_: null, |
| 76 | 76 |
| 77 /** @override */ | 77 /** @override */ |
| 78 attached: function() { | 78 attached: function() { |
| 79 this.addWebUIListener( | 79 this.addWebUIListener( |
| 80 'on-fingerprint-scan-received', this.onScanReceived_.bind(this)); | 80 'on-fingerprint-scan-received', this.onScanReceived_.bind(this)); |
| 81 this.browserProxy_ = settings.FingerprintBrowserProxyImpl.getInstance(); | 81 this.browserProxy_ = settings.FingerprintBrowserProxyImpl.getInstance(); |
| 82 }, | |
| 83 | 82 |
| 84 /** | |
| 85 * Opens the dialog. | |
| 86 */ | |
| 87 open: function() { | |
| 88 this.$.arc.clearCanvas(); | 83 this.$.arc.clearCanvas(); |
| 89 this.$.arc.drawBackgroundCircle(); | 84 this.$.arc.drawBackgroundCircle(); |
| 90 this.$.arc.drawShadow(10, 0, 0); | 85 this.$.arc.drawShadow(10, 0, 0); |
| 91 this.browserProxy_.startEnroll(); | 86 this.browserProxy_.startEnroll(); |
| 92 this.$.dialog.showModal(); | 87 this.$.dialog.showModal(); |
| 93 }, | 88 }, |
| 94 | 89 |
| 95 /** | 90 /** |
| 96 * Closes the dialog. | 91 * Closes the dialog. |
| 97 */ | 92 */ |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 */ | 274 */ |
| 280 onAddAnotherFingerprint_: function() { | 275 onAddAnotherFingerprint_: function() { |
| 281 this.fire('add-fingerprint'); | 276 this.fire('add-fingerprint'); |
| 282 this.reset_(); | 277 this.reset_(); |
| 283 this.$.arc.drawBackgroundCircle(); | 278 this.$.arc.drawBackgroundCircle(); |
| 284 this.$.arc.drawShadow(10, 0, 0); | 279 this.$.arc.drawShadow(10, 0, 0); |
| 285 this.browserProxy_.startEnroll(); | 280 this.browserProxy_.startEnroll(); |
| 286 }, | 281 }, |
| 287 }); | 282 }); |
| 288 })(); | 283 })(); |
| OLD | NEW |