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

Unified Diff: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h

Issue 95153002: Make touch-based synthetic gesture take touch slop into account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused variable. Created 7 years 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: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h
diff --git a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h
index 10428b16e13df2be8d0ea7d9174e847a16fea43c..3185d6b073a79e63a353de4c50848c626fcc3c79 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h
+++ b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h
@@ -32,12 +32,6 @@ class CONTENT_EXPORT SyntheticSmoothScrollGesture : public SyntheticGesture {
STOPPING,
DONE
};
- SyntheticSmoothScrollGestureParams params_;
- float current_y_;
- SyntheticWebTouchEvent touch_event_;
- SyntheticGestureParams::GestureSourceType gesture_source_type_;
- GestureState state_;
- base::TimeDelta total_stopping_wait_time_;
void ForwardTouchInputEvents(
const base::TimeDelta& interval, SyntheticGestureTarget* target);
@@ -52,6 +46,13 @@ class CONTENT_EXPORT SyntheticSmoothScrollGesture : public SyntheticGesture {
float ComputeAbsoluteRemainingDistance() const;
bool HasScrolledEntireDistance() const;
+ SyntheticSmoothScrollGestureParams params_;
+ float current_y_;
+ SyntheticWebTouchEvent touch_event_;
+ SyntheticGestureParams::GestureSourceType gesture_source_type_;
+ GestureState state_;
+ base::TimeDelta total_stopping_wait_time_;
+
DISALLOW_COPY_AND_ASSIGN(SyntheticSmoothScrollGesture);
};

Powered by Google App Engine
This is Rietveld 408576698