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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.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/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index ade7eb5229740517156b9be6fb893607ccaad600..423161ba0eb00c12b21d636c24723c821b1ad869 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -1910,9 +1910,11 @@ TEST_F(WebFrameTest,
ASSERT_NE(nullptr, element);
EXPECT_EQ(String("oldValue"), element->innerText());
- PlatformGestureEvent gestureEvent(
- PlatformEvent::EventType::GestureTap, hitPoint, hitPoint, IntSize(0, 0),
- 0, PlatformEvent::NoModifiers, PlatformGestureSourceTouchscreen);
+ WebGestureEvent gestureEvent;
+ gestureEvent.type = WebInputEvent::GestureTap;
+ gestureEvent.x = gestureEvent.globalX = hitPoint.x();
+ gestureEvent.y = gestureEvent.globalY = hitPoint.y();
+ gestureEvent.sourceDevice = WebGestureDeviceTouchscreen;
webViewHelper.webView()
->mainFrameImpl()
->frame()

Powered by Google App Engine
This is Rietveld 408576698