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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 1425053002: Fire pointermoves for mousemove events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaked the tests. Created 5 years, 1 month 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Returns true when the sent PE has defaultPrevented or defaultHandled set. 285 // Returns true when the sent PE has defaultPrevented or defaultHandled set.
286 bool dispatchPointerEventForMouseEvent(Node* target, const AtomicString& eve ntType, const PlatformMouseEvent&, Node* relatedTarget = nullptr); 286 bool dispatchPointerEventForMouseEvent(Node* target, const AtomicString& eve ntType, const PlatformMouseEvent&, Node* relatedTarget = nullptr);
287 287
288 // Dispatches mouseover, mouseout, mouseenter and mouseleave events to appro priate nodes when the mouse pointer moves from one node to another. 288 // Dispatches mouseover, mouseout, mouseenter and mouseleave events to appro priate nodes when the mouse pointer moves from one node to another.
289 void sendMouseEventsForNodeTransition(Node*, Node*, const PlatformMouseEvent &); 289 void sendMouseEventsForNodeTransition(Node*, Node*, const PlatformMouseEvent &);
290 290
291 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&); 291 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const PlatformMouseEvent&);
292 292
293 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli ckCount, const PlatformMouseEvent&); 293 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli ckCount, const PlatformMouseEvent&);
294
295 // Dispatches ME after corresponding PE provided the PE has not been cancele d. The eventType arg
296 // must be a mouse event that can be gated though a preventDefaulted pointer down (i.e., one of
297 // {mousedown, mousemove, mouseup}).
298 bool dispatchPointerAndMouseEvent(const AtomicString& mouseEventType, Node* target,
299 int clickCount, const PlatformMouseEvent&);
Rick Byers 2015/10/30 17:21:29 PlatformMouseEvent contains a clickCount, can you
mustaq 2015/11/03 20:44:30 I think PlatformMouse event doesn't maintain the c
Rick Byers 2015/11/03 20:59:56 Ok. Seems like a wart to me that might not be too
mustaq 2015/11/03 21:37:34 Added a TODO.
300
294 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl atformMouseEvent&, DataTransfer*); 301 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl atformMouseEvent&, DataTransfer*);
295 302
296 void clearDragDataTransfer(); 303 void clearDragDataTransfer();
297 304
298 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); 305 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator);
299 bool tryStartDrag(const MouseEventWithHitTestResults&); 306 bool tryStartDrag(const MouseEventWithHitTestResults&);
300 void clearDragState(); 307 void clearDragState();
301 308
302 bool dispatchDragSrcEvent(const AtomicString& eventType, const PlatformMouse Event&); 309 bool dispatchDragSrcEvent(const AtomicString& eventType, const PlatformMouse Event&);
303 310
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // scroll which shouldn't propagate can't cause any element to 458 // scroll which shouldn't propagate can't cause any element to
452 // scroll other than the |m_previousGestureScrolledNode|. 459 // scroll other than the |m_previousGestureScrolledNode|.
453 bool m_deltaConsumedForScrollSequence; 460 bool m_deltaConsumedForScrollSequence;
454 }; 461 };
455 462
456 } // namespace blink 463 } // namespace blink
457 464
458 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 465 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
459 466
460 #endif // EventHandler_h 467 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698