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

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

Issue 2687403002: cros: Moved smart lock tooltip to the left side of the pod. (Closed)
Patch Set: Created 3 years, 10 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
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