| 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-setup-pin-dialog' is the settings page for choosing a PIN. | 7 * 'settings-setup-pin-dialog' is the settings page for choosing a PIN. |
| 8 * | 8 * |
| 9 * Example: | 9 * Example: |
| 10 * | 10 * |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 /** | 153 /** |
| 154 * Notify the user about a problem. | 154 * Notify the user about a problem. |
| 155 * @private | 155 * @private |
| 156 * @param {string} messageId | 156 * @param {string} messageId |
| 157 * @param {string} problemClass | 157 * @param {string} problemClass |
| 158 */ | 158 */ |
| 159 showProblem_: function(messageId, problemClass) { | 159 showProblem_: function(messageId, problemClass) { |
| 160 this.problemMessage_ = this.i18n(messageId); | 160 this.problemMessage_ = this.i18n(messageId); |
| 161 this.problemClass_ = problemClass; | 161 this.problemClass_ = problemClass; |
| 162 this.updateStyles(); | 162 this.updateStyle(); |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 /** @private */ | 165 /** @private */ |
| 166 hideProblem_: function() { | 166 hideProblem_: function() { |
| 167 this.problemMessage_ = ''; | 167 this.problemMessage_ = ''; |
| 168 this.problemClass_ = ''; | 168 this.problemClass_ = ''; |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 /** @private */ | 171 /** @private */ |
| 172 onPinChange_: function() { | 172 onPinChange_: function() { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 * @private | 251 * @private |
| 252 * @param {boolean} isConfirmStep | 252 * @param {boolean} isConfirmStep |
| 253 * @return {string} | 253 * @return {string} |
| 254 */ | 254 */ |
| 255 getContinueMessage_: function(isConfirmStep) { | 255 getContinueMessage_: function(isConfirmStep) { |
| 256 return this.i18n(isConfirmStep ? 'confirm' : 'configurePinContinueButton'); | 256 return this.i18n(isConfirmStep ? 'confirm' : 'configurePinContinueButton'); |
| 257 }, | 257 }, |
| 258 }); | 258 }); |
| 259 | 259 |
| 260 })(); | 260 })(); |
| OLD | NEW |