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

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

Issue 1403893003: Plumb gesture source value through Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert more tests (related to CL) to use Touchscreen. Created 5 years, 2 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 784218f4f9eb36a0c6ad5a14e54aa84c7667b2b5..97e74548cfcba6c5021ac4fbb00f022e156a992c 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -1613,7 +1613,7 @@ TEST_P(ParameterizedVisualViewportTest, SlowScrollAfterImplScroll)
IntPoint(0, 0),
IntPoint(0, 0),
IntSize(5, 5),
- 0, PlatformEvent::NoModifiers);
+ 0, PlatformEvent::NoModifiers, PlatformGestureSourceTouchpad);
gsu.setScrollGestureData(-50, -60, 1, 1, false, false, -1 /* null plugin id */);
frame()->eventHandler().handleGestureEvent(gsu);
@@ -1739,6 +1739,7 @@ TEST_P(ParameterizedVisualViewportTest, PinchZoomGestureScrollsVisualViewportOnl
WebGestureEvent pinchUpdate;
pinchUpdate.type = WebInputEvent::GesturePinchUpdate;
+ pinchUpdate.sourceDevice = WebGestureDeviceTouchpad;
pinchUpdate.x = 100;
pinchUpdate.y = 100;
pinchUpdate.data.pinchUpdate.scale = 2;
« no previous file with comments | « third_party/WebKit/Source/web/tests/TopControlsTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698