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

Unified Diff: content/test/web_gesture_curve_mock.cc

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | ui/gfx/android/scroller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/web_gesture_curve_mock.cc
diff --git a/content/test/web_gesture_curve_mock.cc b/content/test/web_gesture_curve_mock.cc
index f60733c2b06468462fdb6cbf1be6e32e81afcc70..1007b7ef401d7970f66775da9f20b2742ba161ba 100644
--- a/content/test/web_gesture_curve_mock.cc
+++ b/content/test/web_gesture_curve_mock.cc
@@ -23,10 +23,9 @@ bool WebGestureCurveMock::apply(double time,
blink::WebFloatSize increment(displacement.width - cumulative_scroll_.width,
displacement.height - cumulative_scroll_.height);
cumulative_scroll_ = displacement;
- target->notifyCurrentFlingVelocity(blink::WebFloatSize(velocity_.x,
- velocity_.y));
+ blink::WebFloatSize velocity(velocity_.x, velocity_.y);
// scrollBy() could delete this curve if the animation is over, so don't
// touch any member variables after making that call.
- target->scrollBy(increment);
+ target->scrollBy(increment, velocity);
return true;
}
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | ui/gfx/android/scroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698