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

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

Issue 1569333002: Complete removal of MouseEvent prefixed webkitMovementX/Y. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | 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 3096 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698