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

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: Fixed tests. 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
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 void sendMouseEventsForNodeTransition(Node*, Node*, const PlatformMouseEvent &);
267 268
268 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&); 269 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&);
269 270
270 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli ckCount, const PlatformMouseEvent&, bool setUnder); 271 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*); 272 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl atformMouseEvent&, DataTransfer*);
272 273
273 void clearDragDataTransfer(); 274 void clearDragDataTransfer();
274 275
275 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); 276 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator);
276 bool tryStartDrag(const MouseEventWithHitTestResults&); 277 bool tryStartDrag(const MouseEventWithHitTestResults&);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 bool m_longTapShouldInvokeContextMenu; 398 bool m_longTapShouldInvokeContextMenu;
398 399
399 Timer<EventHandler> m_activeIntervalTimer; 400 Timer<EventHandler> m_activeIntervalTimer;
400 double m_lastShowPressTimestamp; 401 double m_lastShowPressTimestamp;
401 RefPtrWillBeMember<Element> m_lastDeferredTapElement; 402 RefPtrWillBeMember<Element> m_lastDeferredTapElement;
402 }; 403 };
403 404
404 } // namespace blink 405 } // namespace blink
405 406
406 #endif // EventHandler_h 407 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698