| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 670 |
| 671 // Show the tooltip bubble. | 671 // Show the tooltip bubble. |
| 672 var bubbleContent = document.createElement('div'); | 672 var bubbleContent = document.createElement('div'); |
| 673 bubbleContent.textContent = this.tooltipState_.text; | 673 bubbleContent.textContent = this.tooltipState_.text; |
| 674 | 674 |
| 675 /** @const */ var BUBBLE_OFFSET = CUSTOM_ICON_CONTAINER_SIZE / 2; | 675 /** @const */ var BUBBLE_OFFSET = CUSTOM_ICON_CONTAINER_SIZE / 2; |
| 676 // TODO(tengs): Introduce a special reauth state for the account picker, | 676 // TODO(tengs): Introduce a special reauth state for the account picker, |
| 677 // instead of showing the tooltip bubble here (crbug.com/409427). | 677 // instead of showing the tooltip bubble here (crbug.com/409427). |
| 678 /** @const */ var BUBBLE_PADDING = 8 + (this.iconId_ ? 0 : 23); | 678 /** @const */ var BUBBLE_PADDING = 8 + (this.iconId_ ? 0 : 23); |
| 679 $('bubble').showContentForElement(this, | 679 $('bubble').showContentForElement(this, |
| 680 cr.ui.Bubble.Attachment.RIGHT, | 680 cr.ui.Bubble.Attachment.LEFT, |
| 681 bubbleContent, | 681 bubbleContent, |
| 682 BUBBLE_OFFSET, | 682 BUBBLE_OFFSET, |
| 683 BUBBLE_PADDING); | 683 BUBBLE_PADDING); |
| 684 }, | 684 }, |
| 685 | 685 |
| 686 /** | 686 /** |
| 687 * Hides the tooltip. | 687 * Hides the tooltip. |
| 688 * @private | 688 * @private |
| 689 */ | 689 */ |
| 690 hideTooltip_: function() { | 690 hideTooltip_: function() { |
| (...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3731 if (pod && pod.multiProfilesPolicyApplied) { | 3731 if (pod && pod.multiProfilesPolicyApplied) { |
| 3732 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3732 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3733 } | 3733 } |
| 3734 } | 3734 } |
| 3735 }; | 3735 }; |
| 3736 | 3736 |
| 3737 return { | 3737 return { |
| 3738 PodRow: PodRow | 3738 PodRow: PodRow |
| 3739 }; | 3739 }; |
| 3740 }); | 3740 }); |
| OLD | NEW |