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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewportTest.cpp

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: Merge branch 'master' into GSB_checks_delta_hints Created 3 years, 6 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/core/frame/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewportTest.cpp b/third_party/WebKit/Source/core/frame/VisualViewportTest.cpp
index edcb604cebae9c91e91696ebaaa11a60b44e0828..573321575b714e8ac6ec35c1719b0c47f7f49c13 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewportTest.cpp
@@ -1842,6 +1842,16 @@ TEST_P(VisualViewportTest, SlowScrollAfterImplScroll) {
EXPECT_SIZE_EQ(FloatSize(300, 200), visual_viewport.GetScrollOffset());
// Send a scroll event on the main thread path.
+ WebGestureEvent gsb(WebInputEvent::kGestureScrollBegin,
+ WebInputEvent::kNoModifiers,
+ WebInputEvent::kTimeStampForTesting);
+ gsb.SetFrameScale(1);
+ gsb.source_device = kWebGestureDeviceTouchpad;
+ gsb.data.scroll_begin.delta_x_hint = -50;
+ gsb.data.scroll_begin.delta_x_hint = -60;
+ gsb.data.scroll_begin.delta_hint_units = WebGestureEvent::kPrecisePixels;
+ GetFrame()->GetEventHandler().HandleGestureEvent(gsb);
+
WebGestureEvent gsu(WebInputEvent::kGestureScrollUpdate,
WebInputEvent::kNoModifiers,
WebInputEvent::kTimeStampForTesting);
« no previous file with comments | « third_party/WebKit/Source/core/frame/BrowserControlsTest.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698