Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/browser/resources/settings/people_page/setup_pin_dialog.js

Issue 2222583002: Lock screen pin keyboard ui upgrades. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Removed problem message in pin keyboard. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698