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

Side by Side Diff: Source/core/page/EventHandler.h

Issue 1047733002: Fixed mouseenter/mouseleave event firing order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/core/dom/Document.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // absolutePoint - For wheel scrolls - the location, in absolute coordinates , where the event occured. 256 // absolutePoint - For wheel scrolls - the location, in absolute coordinates , where the event occured.
257 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = nullptr, N ode** stopNode = nullptr, float delta = 1.0f, IntPoint absolutePoint = IntPoint( )); 257 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = nullptr, N ode** stopNode = nullptr, float delta = 1.0f, IntPoint absolutePoint = IntPoint( ));
258 258
259 TouchAction intersectTouchAction(const TouchAction, const TouchAction); 259 TouchAction intersectTouchAction(const TouchAction, const TouchAction);
260 TouchAction computeEffectiveTouchAction(const Node&); 260 TouchAction computeEffectiveTouchAction(const Node&);
261 261
262 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active); 262 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active);
263 263
264 void invalidateClick(); 264 void invalidateClick();
265 265
266 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM ouseOverOut); 266 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool);
267
268 /* Dispatches mouseover, mouseout, mouseenter and mouseleave events to appro priate nodes when the mouse pointer moves from one node to another. */
269 void sendMouseEventsForNodeTransition(Node*, Node*, const PlatformMouseEvent &);
267 270
268 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&); 271 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&);
269 272
270 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli ckCount, const PlatformMouseEvent&, bool setUnder); 273 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli ckCount, const PlatformMouseEvent&, bool setUnder);
271 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl atformMouseEvent&, DataTransfer*); 274 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl atformMouseEvent&, DataTransfer*);
272 275
273 void clearDragDataTransfer(); 276 void clearDragDataTransfer();
274 277
275 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); 278 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator);
276 bool tryStartDrag(const MouseEventWithHitTestResults&); 279 bool tryStartDrag(const MouseEventWithHitTestResults&);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 bool m_longTapShouldInvokeContextMenu; 400 bool m_longTapShouldInvokeContextMenu;
398 401
399 Timer<EventHandler> m_activeIntervalTimer; 402 Timer<EventHandler> m_activeIntervalTimer;
400 double m_lastShowPressTimestamp; 403 double m_lastShowPressTimestamp;
401 RefPtrWillBeMember<Element> m_lastDeferredTapElement; 404 RefPtrWillBeMember<Element> m_lastDeferredTapElement;
402 }; 405 };
403 406
404 } // namespace blink 407 } // namespace blink
405 408
406 #endif // EventHandler_h 409 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698