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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.cpp

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Created 4 years 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 fb48cc0a09e3c5090b279c0fd5f421499f84b904..71272117a1f21f4a3dfeced118ecdf7dc6adb5bf 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -33,17 +33,17 @@ class EventHandlerTest : public ::testing::Test {
std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
};
-class TapEventBuilder : public PlatformGestureEvent {
+class TapEventBuilder : public WebGestureEvent {
public:
- TapEventBuilder(IntPoint position, int tapCount)
- : PlatformGestureEvent(PlatformEvent::GestureTap,
- position,
- position,
- IntSize(5, 5),
- WTF::monotonicallyIncreasingTime(),
- static_cast<PlatformEvent::Modifiers>(0),
- PlatformGestureSourceTouchscreen) {
- m_data.m_tap.m_tapCount = tapCount;
+ TapEventBuilder(IntPoint position, int tapCount) : WebGestureEvent() {
+ type = WebInputEvent::GestureTap;
+ x = globalX = position.x();
+ y = globalY = position.y();
+ timeStampSeconds = WTF::monotonicallyIncreasingTime();
+ sourceDevice = WebGestureDeviceTouchscreen;
+ data.tap.tapCount = tapCount;
+ data.tap.width = 5;
+ data.tap.height = 5;
majidvp 2016/12/01 15:46:30 One of the advantage of PlatformGestureEvent was t
dtapuska 2016/12/01 16:26:43 So my eventual goal is to have WebInputEvent be a
}
};

Powered by Google App Engine
This is Rietveld 408576698