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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 months 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 d895f2e1712cd5f53143ced68d3c538c301494bd..c0f834abe4c8dc07dfec17eb24b0b84b4ab09505 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -1911,9 +1911,10 @@ TEST_F(WebFrameTest,
ASSERT_NE(nullptr, element);
EXPECT_EQ(String("oldValue"), element->innerText());
- WebGestureEvent gestureEvent;
+ WebGestureEvent gestureEvent(WebInputEvent::GestureTap,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
gestureEvent.setFrameScale(1);
- gestureEvent.type = WebInputEvent::GestureTap;
gestureEvent.x = gestureEvent.globalX = hitPoint.x();
gestureEvent.y = gestureEvent.globalY = hitPoint.y();
gestureEvent.sourceDevice = WebGestureDeviceTouchscreen;

Powered by Google App Engine
This is Rietveld 408576698