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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.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/input/EventHandlerTest.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
index 19b58c2077427c5d2344963b553f22223c5f278b..87cd79ddff3362233bd685e5df0a771135108a62 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -86,7 +86,8 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll) {
IntPoint(100, 50), IntPoint(200, 250), WebPointerProperties::Button::Left,
PlatformEvent::MouseMoved, 1, PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
page().autoscrollController().animate(WTF::monotonicallyIncreasingTime());
page().animator().serviceScriptedAnimations(
@@ -190,7 +191,8 @@ TEST_F(EventHandlerTest, draggedInlinePositionTest) {
PlatformEvent::MouseMoved, 1,
PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
EXPECT_EQ(
IntPoint(12, 29),
@@ -223,7 +225,8 @@ TEST_F(EventHandlerTest, draggedSVGImagePositionTest) {
PlatformEvent::MouseMoved, 1,
PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
EXPECT_EQ(
IntPoint(45, 44),

Powered by Google App Engine
This is Rietveld 408576698