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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Rebase 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/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
index 75484716c77f289197f6cc2da31ba8c2eeefb1a8..15ec9d455aa7f6dfb41f7ec31aa17e8f16cf0619 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -1865,9 +1865,10 @@ TEST_P(VisualViewportTest, SlowScrollAfterImplScroll) {
EXPECT_SIZE_EQ(FloatSize(300, 200), visualViewport.getScrollOffset());
// Send a scroll event on the main thread path.
- WebGestureEvent gsu;
+ WebGestureEvent gsu(WebInputEvent::GestureScrollUpdate,
+ WebInputEvent::NoModifiers,
+ WebInputEvent::TimeStampForTesting);
gsu.setFrameScale(1);
- gsu.type = WebInputEvent::GestureScrollUpdate;
gsu.sourceDevice = WebGestureDeviceTouchpad;
gsu.data.scrollUpdate.deltaX = -50;
gsu.data.scrollUpdate.deltaY = -60;

Powered by Google App Engine
This is Rietveld 408576698