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

Unified Diff: content/child/touch_fling_gesture_curve_unittest.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/child/touch_fling_gesture_curve.cc ('k') | content/common/input/did_overscroll_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/touch_fling_gesture_curve_unittest.cc
diff --git a/content/child/touch_fling_gesture_curve_unittest.cc b/content/child/touch_fling_gesture_curve_unittest.cc
index 872f1ef99efef181f8ad7390c72567064670ca85..9c42e638d569ea0a87acd48a292d12d042912239 100644
--- a/content/child/touch_fling_gesture_curve_unittest.cc
+++ b/content/child/touch_fling_gesture_curve_unittest.cc
@@ -24,13 +24,12 @@ namespace {
class MockGestureCurveTarget : public WebGestureCurveTarget {
public:
- virtual void scrollBy(const WebFloatSize& delta) {
+ virtual bool scrollBy(const WebFloatSize& delta,
+ const WebFloatSize& velocity) OVERRIDE {
cumulative_delta_.width += delta.width;
cumulative_delta_.height += delta.height;
- }
-
- virtual void notifyCurrentFlingVelocity(const WebFloatSize& velocity) {
current_velocity_ = velocity;
+ return true;
}
WebFloatSize cumulative_delta() const { return cumulative_delta_; }
« no previous file with comments | « content/child/touch_fling_gesture_curve.cc ('k') | content/common/input/did_overscroll_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698