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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/RootScrollerTest.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/page/scrolling/RootScrollerTest.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/RootScrollerTest.cpp b/third_party/WebKit/Source/core/page/scrolling/RootScrollerTest.cpp
index cf1bd9748b1360142b1581407f02bc9304a4fb90..9f8437e98af0ec6ebd7970d6b413d2297e6952a9 100644
--- a/third_party/WebKit/Source/core/page/scrolling/RootScrollerTest.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/RootScrollerTest.cpp
@@ -156,6 +156,9 @@ class RootScrollerTest : public ::testing::Test,
if (type == WebInputEvent::kGestureScrollUpdate) {
event.data.scroll_update.delta_x = delta_x;
event.data.scroll_update.delta_y = delta_y;
+ } else if (type == WebInputEvent::kGestureScrollBegin) {
+ event.data.scroll_begin.delta_x_hint = delta_x;
+ event.data.scroll_begin.delta_y_hint = delta_y;
}
return WebCoalescedInputEvent(event);
}
@@ -748,7 +751,7 @@ TEST_P(RootScrollerTest, RemoteMainFrame) {
// Try scrolling in the iframe.
{
widget->HandleInputEvent(
- GenerateWheelGestureEvent(WebInputEvent::kGestureScrollBegin));
+ GenerateWheelGestureEvent(WebInputEvent::kGestureScrollBegin, 0, -100));
widget->HandleInputEvent(GenerateWheelGestureEvent(
WebInputEvent::kGestureScrollUpdate, 0, -100));
widget->HandleInputEvent(
@@ -766,7 +769,7 @@ TEST_P(RootScrollerTest, RemoteMainFrame) {
// Try scrolling in the iframe now that it has a root scroller set.
{
widget->HandleInputEvent(
- GenerateWheelGestureEvent(WebInputEvent::kGestureScrollBegin));
+ GenerateWheelGestureEvent(WebInputEvent::kGestureScrollBegin, 0, -100));
widget->HandleInputEvent(GenerateWheelGestureEvent(
WebInputEvent::kGestureScrollUpdate, 0, -100));
widget->HandleInputEvent(
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.cpp ('k') | third_party/WebKit/Source/core/page/scrolling/ScrollState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698