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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent 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/PointerEventFactoryTest.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp b/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
index cba3d02a08f7f82c329d1ac8a1e91038d7291b51..1950275b5d7b7d291367fffd5e0754a588110f21 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
@@ -107,10 +107,10 @@ PointerEvent* PointerEventFactoryTest::createAndCheckTouchEvent(
bool isPrimary,
PlatformTouchPoint::TouchState state) {
PointerEvent* pointerEvent = m_pointerEventFactory.create(
- EventTypeNames::pointerdown,
PointerEventFactoryTest::PlatformTouchPointBuilder(pointerType, rawId,
state),
- PlatformEvent::NoModifiers, FloatSize(), FloatPoint(), nullptr);
+ Vector<PlatformTouchPoint>(), PlatformEvent::NoModifiers, nullptr,
+ nullptr);
EXPECT_EQ(uniqueId, pointerEvent->pointerId());
EXPECT_EQ(isPrimary, pointerEvent->isPrimary());
return pointerEvent;
@@ -124,7 +124,8 @@ PointerEvent* PointerEventFactoryTest::createAndCheckMouseEvent(
PlatformEvent::Modifiers modifiers) {
PointerEvent* pointerEvent = m_pointerEventFactory.create(
EventTypeNames::mousedown,
- PlatformMouseEventBuilder(pointerType, rawId, modifiers), nullptr);
+ PlatformMouseEventBuilder(pointerType, rawId, modifiers),
+ Vector<PlatformMouseEvent>(), nullptr);
EXPECT_EQ(uniqueId, pointerEvent->pointerId());
EXPECT_EQ(isPrimary, pointerEvent->isPrimary());
return pointerEvent;

Powered by Google App Engine
This is Rietveld 408576698