| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |