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

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

Issue 2510133002: Add getCoalescedEvents API to PointerEvent (Closed)
Patch Set: add comment about the two added functions 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..542d71eb39895ecbac0bc986ce754933c81266d3 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEvent.cpp
@@ -35,6 +35,11 @@ PointerEvent::PointerEvent(const AtomicString& type,
m_pointerType = initializer.pointerType();
if (initializer.hasIsPrimary())
m_isPrimary = initializer.isPrimary();
+ if (initializer.hasCoalescedEvents()) {
+ for (auto coalescedEvent : initializer.coalescedEvents()) {
dtapuska 2016/11/23 16:57:24 don't think you need the braces for the for loop
Navid Zolghadr 2016/11/23 17:04:09 Removed.
+ m_coalescedEvents.append(coalescedEvent);
+ }
+ }
}
bool PointerEvent::isMouseEvent() const {
@@ -49,7 +54,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