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 2919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2930 var pod = findAncestorByClass(e.target, 'pod'); | 2930 var pod = findAncestorByClass(e.target, 'pod'); |
2931 if ((!pod || pod.parentNode != this) && !this.alwaysFocusSinglePod) { | 2931 if ((!pod || pod.parentNode != this) && !this.alwaysFocusSinglePod) { |
2932 this.focusPod(); | 2932 this.focusPod(); |
2933 } | 2933 } |
2934 | 2934 |
2935 if (pod) | 2935 if (pod) |
2936 pod.isActionBoxMenuHovered = true; | 2936 pod.isActionBoxMenuHovered = true; |
2937 | 2937 |
2938 // Return focus back to single pod. | 2938 // Return focus back to single pod. |
2939 if (this.alwaysFocusSinglePod && !pod) { | 2939 if (this.alwaysFocusSinglePod && !pod) { |
| 2940 if ($('login-header-bar').contains(e.target)) |
| 2941 return; |
2940 this.focusPod(this.focusedPod_, true /* force */); | 2942 this.focusPod(this.focusedPod_, true /* force */); |
2941 this.focusedPod_.userTypeBubbleElement.classList.remove('bubble-shown'); | 2943 this.focusedPod_.userTypeBubbleElement.classList.remove('bubble-shown'); |
2942 this.focusedPod_.isActionBoxMenuHovered = false; | 2944 this.focusedPod_.isActionBoxMenuHovered = false; |
2943 } | 2945 } |
2944 }, | 2946 }, |
2945 | 2947 |
2946 /** | 2948 /** |
2947 * Handler of mouse move event. | 2949 * Handler of mouse move event. |
2948 * @param {Event} e Click Event object. | 2950 * @param {Event} e Click Event object. |
2949 * @private | 2951 * @private |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3149 if (pod && pod.multiProfilesPolicyApplied) { | 3151 if (pod && pod.multiProfilesPolicyApplied) { |
3150 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3152 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
3151 } | 3153 } |
3152 } | 3154 } |
3153 }; | 3155 }; |
3154 | 3156 |
3155 return { | 3157 return { |
3156 PodRow: PodRow | 3158 PodRow: PodRow |
3157 }; | 3159 }; |
3158 }); | 3160 }); |
OLD | NEW |