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

Side by Side Diff: chrome/browser/resources/md_user_manager/create_profile.js

Issue 2938933002: WebUI: swap paper-dropdown-menu out for md-select. (Closed)
Patch Set: appease the compiler god Created 3 years, 6 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 'create-profile' is a page that contains controls for creating 6 * @fileoverview 'create-profile' is a page that contains controls for creating
7 * a (optionally supervised) profile, including choosing a name, and an avatar. 7 * a (optionally supervised) profile, including choosing a name, and an avatar.
8 */ 8 */
9 9
10 /** @typedef {{url: string, label:string}} */ 10 /** @typedef {{url: string, label:string}} */
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 this.hideMessage_(); 390 this.hideMessage_();
391 this.createInProgress_ = true; 391 this.createInProgress_ = true;
392 var createShortcut = this.isProfileShortcutsEnabled_ && 392 var createShortcut = this.isProfileShortcutsEnabled_ &&
393 this.createShortcut_; 393 this.createShortcut_;
394 this.browserProxy_.createProfile( 394 this.browserProxy_.createProfile(
395 this.profileName_, this.profileIconUrl_, createShortcut, 395 this.profileName_, this.profileIconUrl_, createShortcut,
396 this.isSupervised_, '', custodianProfilePath); 396 this.isSupervised_, '', custodianProfilePath);
397 }, 397 },
398 398
399 /** 399 /**
400 * Handler for a change in the supervised account dropdown.
401 * @param {!{target: HTMLSelectElement}} event
402 * @private
403 */
404 onAccountChanged_: function(event) {
405 this.signedInUserIndex_ = parseInt(event.target.value, 10);
406 },
407
408 /**
400 * Handler for the 'import' event fired by #importUserPopup once a supervised 409 * Handler for the 'import' event fired by #importUserPopup once a supervised
401 * user is selected to be imported and the popup closes. 410 * user is selected to be imported and the popup closes.
402 * @param {!{detail: {supervisedUser: !SupervisedUser, 411 * @param {!{detail: {supervisedUser: !SupervisedUser,
403 * signedInUser: !SignedInUser}}} event 412 * signedInUser: !SignedInUser}}} event
404 * @private 413 * @private
405 */ 414 */
406 onImportUserPopupImport_: function(event) { 415 onImportUserPopupImport_: function(event) {
407 var supervisedUser = event.detail.supervisedUser; 416 var supervisedUser = event.detail.supervisedUser;
408 var signedInUser = event.detail.signedInUser; 417 var signedInUser = event.detail.signedInUser;
409 this.hideMessage_(); 418 this.hideMessage_();
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 * Computed binding that returns True if there are any signed-in users. 555 * Computed binding that returns True if there are any signed-in users.
547 * @param {!Array<!SignedInUser>} signedInUsers signed-in users. 556 * @param {!Array<!SignedInUser>} signedInUsers signed-in users.
548 * @return {boolean} 557 * @return {boolean}
549 * @private 558 * @private
550 */ 559 */
551 isSignedIn_: function(signedInUsers) { 560 isSignedIn_: function(signedInUsers) {
552 return signedInUsers.length > 0; 561 return signedInUsers.length > 0;
553 } 562 }
554 }); 563 });
555 }()); 564 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698