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

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

Issue 1193923003: Prevent VK flashing after press a button in login header bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uprev Created 5 years, 6 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 2919 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
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