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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.h

Issue 2510133002: Add getCoalescedEvents API to PointerEvent (Closed)
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/PointerEventManager.h
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.h b/third_party/WebKit/Source/core/input/PointerEventManager.h
index 8bd5b1423b7f3b8dc01728944494ca05e73a7fa8..51a5161e34b74e598a52016fa8bb3ae6712a695a 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.h
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.h
@@ -34,11 +34,15 @@ class CORE_EXPORT PointerEventManager
// that it may cause. It also sends the compat mouse events
// and sets the newNodeUnderMouse if the capturing is set
// in this function.
- WebInputEventResult sendMousePointerEvent(Node* target,
- const AtomicString& type,
- const PlatformMouseEvent&);
+ WebInputEventResult sendMousePointerEvent(
+ Node* target,
+ const AtomicString& type,
+ const PlatformMouseEvent&,
+ const Vector<PlatformMouseEvent>& coalescedEvents);
- WebInputEventResult handleTouchEvents(const PlatformTouchEvent&);
+ WebInputEventResult handleTouchEvents(
+ const PlatformTouchEvent&,
+ const Vector<PlatformTouchEvent>& coalescedEvents);
// Sends boundary events pointerout/leave/over/enter and
// mouseout/leave/over/enter to the corresponding targets.
@@ -142,8 +146,10 @@ class CORE_EXPORT PointerEventManager
// Sends touch pointer events and sets consumed bits in TouchInfo array
// based on the return value of pointer event handlers.
- void dispatchTouchPointerEvents(const PlatformTouchEvent&,
- HeapVector<TouchEventManager::TouchInfo>&);
+ void dispatchTouchPointerEvents(
+ const PlatformTouchEvent&,
+ const Vector<PlatformTouchEvent>& coalescedEvents,
+ HeapVector<TouchEventManager::TouchInfo>&);
// Returns whether the event is consumed or not.
WebInputEventResult sendTouchPointerEvent(EventTarget*, PointerEvent*);

Powered by Google App Engine
This is Rietveld 408576698