Chromium Code Reviews| Index: remoting/client/ui/gesture_interpreter.h |
| diff --git a/remoting/client/ui/gesture_interpreter.h b/remoting/client/ui/gesture_interpreter.h |
| index 5418e624c45cd3ac93c610aca3eb76009825d010..4c24328a9ceae0f5de4ccc8c3f5e7dda5760344c 100644 |
| --- a/remoting/client/ui/gesture_interpreter.h |
| +++ b/remoting/client/ui/gesture_interpreter.h |
| @@ -49,6 +49,10 @@ class GestureInterpreter { |
| // pinching) and the pan gesture still has some final velocity. |
| void OneFingerFling(float velocity_x, float velocity_y); |
| + void Scroll(float x, float y, float dx, float dy); |
| + |
| + void ScrollFling(float velocity_x, float velocity_y); |
|
nicholss
2017/05/16 18:13:10
Fling does not mean a ton, perhaps just ScollWithV
Yuwei
2017/05/17 05:42:20
Done.
|
| + |
| // Called to process one animation frame. |
| void ProcessAnimations(); |
| @@ -58,6 +62,8 @@ class GestureInterpreter { |
| private: |
| void PanWithoutAbortAnimations(float translation_x, float translation_y); |
| + void ScrollWithoutAbortAnimations(float dx, float dy); |
| + |
| void AbortAnimations(); |
| void InjectMouseClick(float x, |
| @@ -85,6 +91,7 @@ class GestureInterpreter { |
| bool is_dragging_mode_ = false; |
| FlingAnimation pan_animation_; |
| + FlingAnimation scroll_animation_; |
| // GestureInterpreter is neither copyable nor movable. |
| GestureInterpreter(const GestureInterpreter&) = delete; |