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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2147403003: Remove default focus from "Remove this person" button in user pod's action menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1549 }
1550 }, 1550 },
1551 1551
1552 /** 1552 /**
1553 * Shows remove user warning. Used for legacy supervised users on CrOS, and 1553 * Shows remove user warning. Used for legacy supervised users on CrOS, and
1554 * for all users on desktop. 1554 * for all users on desktop.
1555 */ 1555 */
1556 showRemoveWarning_: function() { 1556 showRemoveWarning_: function() {
1557 this.actionBoxMenuRemoveElement.hidden = true; 1557 this.actionBoxMenuRemoveElement.hidden = true;
1558 this.actionBoxRemoveUserWarningElement.hidden = false; 1558 this.actionBoxRemoveUserWarningElement.hidden = false;
1559 this.actionBoxRemoveUserWarningButtonElement.focus();
1560 1559
1561 // Show extra statistics information for desktop users 1560 // Show extra statistics information for desktop users
1562 var message; 1561 var message;
1563 if (this.user.isLegacySupervisedUser) { 1562 if (this.user.isLegacySupervisedUser) {
1564 this.moveActionMenuUpIfNeeded_(); 1563 this.moveActionMenuUpIfNeeded_();
1565 } else { 1564 } else {
1566 this.RemoveWarningDialogSetMessage_(true, false); 1565 this.RemoveWarningDialogSetMessage_(true, false);
1567 // set a global handler for the callback 1566 // set a global handler for the callback
1568 window.updateRemoveWarningDialog = 1567 window.updateRemoveWarningDialog =
1569 this.updateRemoveWarningDialog_.bind(this); 1568 this.updateRemoveWarningDialog_.bind(this);
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
3505 if (pod && pod.multiProfilesPolicyApplied) { 3504 if (pod && pod.multiProfilesPolicyApplied) {
3506 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3505 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3507 } 3506 }
3508 } 3507 }
3509 }; 3508 };
3510 3509
3511 return { 3510 return {
3512 PodRow: PodRow 3511 PodRow: PodRow
3513 }; 3512 };
3514 }); 3513 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698