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

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

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Add missing copyright on new file 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 dcb507f81d02d377a5aa881e5592712b6916a6b6..dbce543599c4478ae123567a37ebc5bba6745824 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -33,17 +33,18 @@ 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),
- TimeTicks::Now(),
- 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 = TimeTicks::Now().InSeconds();
+ sourceDevice = WebGestureDeviceTouchscreen;
+ data.tap.tapCount = tapCount;
+ data.tap.width = 5;
+ data.tap.height = 5;
+ m_frameScale = 1;
}
};
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698