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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.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/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 7cf7d26aa896954080f9615aedf1a4eb2d842441..d583295237978b0d850d01eac6a8458e403c5ad6 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -1911,10 +1911,12 @@ TEST_F(WebFrameTest,
ASSERT_NE(nullptr, element);
EXPECT_EQ(String("oldValue"), element->innerText());
- PlatformGestureEvent gestureEvent(PlatformEvent::EventType::GestureTap,
- hitPoint, hitPoint, IntSize(0, 0),
- TimeTicks(), PlatformEvent::NoModifiers,
- PlatformGestureSourceTouchscreen);
+ WebGestureEvent gestureEvent;
+ gestureEvent.setFrameScale(1);
+ 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