| 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 3096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3107 }, | 3107 }, |
| 3108 | 3108 |
| 3109 /** | 3109 /** |
| 3110 * Handler of mouse move event. | 3110 * Handler of mouse move event. |
| 3111 * @param {Event} e Click Event object. | 3111 * @param {Event} e Click Event object. |
| 3112 * @private | 3112 * @private |
| 3113 */ | 3113 */ |
| 3114 handleMouseMove_: function(e) { | 3114 handleMouseMove_: function(e) { |
| 3115 if (this.disabled) | 3115 if (this.disabled) |
| 3116 return; | 3116 return; |
| 3117 if (e.webkitMovementX == 0 && e.webkitMovementY == 0) | 3117 if (e.movementX == 0 && e.movementY == 0) |
| 3118 return; | 3118 return; |
| 3119 | 3119 |
| 3120 // Defocus (thus hide) action box, if it is focused on a user pod | 3120 // Defocus (thus hide) action box, if it is focused on a user pod |
| 3121 // and the pointer is not hovering over it. | 3121 // and the pointer is not hovering over it. |
| 3122 var pod = findAncestorByClass(e.target, 'pod'); | 3122 var pod = findAncestorByClass(e.target, 'pod'); |
| 3123 if (document.activeElement && | 3123 if (document.activeElement && |
| 3124 document.activeElement.parentNode != pod && | 3124 document.activeElement.parentNode != pod && |
| 3125 document.activeElement.classList.contains('action-box-area')) { | 3125 document.activeElement.classList.contains('action-box-area')) { |
| 3126 document.activeElement.parentNode.focus(); | 3126 document.activeElement.parentNode.focus(); |
| 3127 } | 3127 } |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 if (pod && pod.multiProfilesPolicyApplied) { | 3320 if (pod && pod.multiProfilesPolicyApplied) { |
| 3321 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3321 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
| 3322 } | 3322 } |
| 3323 } | 3323 } |
| 3324 }; | 3324 }; |
| 3325 | 3325 |
| 3326 return { | 3326 return { |
| 3327 PodRow: PodRow | 3327 PodRow: PodRow |
| 3328 }; | 3328 }; |
| 3329 }); | 3329 }); |
| OLD | NEW |