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

Unified Diff: third_party/WebKit/Source/core/events/PointerEvent.cpp

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/events/PointerEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEvent.cpp b/third_party/WebKit/Source/core/events/PointerEvent.cpp
index 4d63b1e14d0e8cf43088b6d10b846c4241a96d63..15e0e33dfd77a37ceffed993bb744ff4b02bc0cc 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEvent.cpp
@@ -35,6 +35,10 @@ PointerEvent::PointerEvent(const AtomicString& type,
m_pointerType = initializer.pointerType();
if (initializer.hasIsPrimary())
m_isPrimary = initializer.isPrimary();
+ if (initializer.hasCoalescedEvents()) {
+ for (auto coalescedEvent : initializer.coalescedEvents())
+ m_coalescedEvents.append(coalescedEvent);
+ }
}
bool PointerEvent::isMouseEvent() const {
@@ -49,7 +53,12 @@ EventDispatchMediator* PointerEvent::createMediator() {
return PointerEventDispatchMediator::create(this);
}
+HeapVector<Member<PointerEvent>> PointerEvent::getCoalescedEvents() const {
+ return m_coalescedEvents;
+}
+
DEFINE_TRACE(PointerEvent) {
+ visitor->trace(m_coalescedEvents);
MouseEvent::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.h ('k') | third_party/WebKit/Source/core/events/PointerEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698