| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 this.$$('#unlockType').focus(); | 211 this.$$('#unlockType').focus(); |
| 212 }, | 212 }, |
| 213 | 213 |
| 214 /** @private */ | 214 /** @private */ |
| 215 onPinSetupDone_: function() { | 215 onPinSetupDone_: function() { |
| 216 this.$.setupPin.close(); | 216 this.$.setupPin.close(); |
| 217 }, | 217 }, |
| 218 | 218 |
| 219 /** @private */ | 219 /** @private */ |
| 220 onSetupPinClosed_: function() { | 220 onSetupPinClosed_: function() { |
| 221 this.$$('#setupPinLink').focus(); | 221 this.$$('#setupPinButton').focus(); |
| 222 }, | 222 }, |
| 223 | 223 |
| 224 /** | 224 /** |
| 225 * Returns true if the setup pin section should be shown. | 225 * Returns true if the setup pin section should be shown. |
| 226 * @param {!string} selectedUnlockType The current unlock type. Used to let | 226 * @param {!string} selectedUnlockType The current unlock type. Used to let |
| 227 * Polymer know about the dependency. | 227 * Polymer know about the dependency. |
| 228 * @private | 228 * @private |
| 229 */ | 229 */ |
| 230 showConfigurePinButton_: function(selectedUnlockType) { | 230 showConfigurePinButton_: function(selectedUnlockType) { |
| 231 return selectedUnlockType === LockScreenUnlockType.PIN_PASSWORD; | 231 return selectedUnlockType === LockScreenUnlockType.PIN_PASSWORD; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 /** | 320 /** |
| 321 * @param {boolean} easyUnlockEnabled | 321 * @param {boolean} easyUnlockEnabled |
| 322 * @param {boolean} proximityDetectionAllowed | 322 * @param {boolean} proximityDetectionAllowed |
| 323 * @private | 323 * @private |
| 324 */ | 324 */ |
| 325 getShowEasyUnlockToggle_: function( | 325 getShowEasyUnlockToggle_: function( |
| 326 easyUnlockEnabled, proximityDetectionAllowed) { | 326 easyUnlockEnabled, proximityDetectionAllowed) { |
| 327 return easyUnlockEnabled && proximityDetectionAllowed; | 327 return easyUnlockEnabled && proximityDetectionAllowed; |
| 328 }, | 328 }, |
| 329 }); | 329 }); |
| OLD | NEW |