Chromium Code Reviews| Index: webkit/glue/fling_animator_impl_android.h |
| diff --git a/webkit/glue/fling_animator_impl_android.h b/webkit/glue/fling_animator_impl_android.h |
| index a4adfe41c158cf51cb36fef925bb663d9967aa8a..25b57ac205143853e6ca007ffaed053b967d8ddc 100644 |
| --- a/webkit/glue/fling_animator_impl_android.h |
| +++ b/webkit/glue/fling_animator_impl_android.h |
| @@ -6,7 +6,6 @@ |
| #define WEBKIT_GLUE_FLING_ANIMATOR_IMPL_ANDROID_H_ |
| #include "base/android/scoped_java_ref.h" |
| -#include "third_party/WebKit/Source/Platform/chromium/public/WebFlingAnimator.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebGestureCurve.h" |
| #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" |
| @@ -20,10 +19,7 @@ class WebGestureCurveTarget; |
| namespace webkit_glue { |
| -// TODO(rjkroege): Remove WebFlingAnimator once all of the gesture curve |
| -// implementation has moved to Chromium. |
| -class FlingAnimatorImpl : public WebKit::WebFlingAnimator, |
| - public WebKit::WebGestureCurve { |
| +class FlingAnimatorImpl : public WebKit::WebGestureCurve { |
| public: |
| FlingAnimatorImpl(); |
| virtual ~FlingAnimatorImpl(); |
| @@ -32,18 +28,16 @@ class FlingAnimatorImpl : public WebKit::WebFlingAnimator, |
| const WebKit::WebFloatPoint& velocity, |
| const WebKit::WebSize&); |
| - // WebKit::WebFlingAnimator methods. |
| - virtual void startFling(const WebKit::WebFloatPoint& velocity, |
| - const WebKit::WebRect& range); |
| - // Returns true if the animation is not yet finished. |
| - virtual bool updatePosition(); |
| - virtual WebKit::WebPoint getCurrentPosition(); |
| - virtual void cancelFling(); |
| - |
| - // WebKit::WebGestureCurve methods. |
| virtual bool apply(double time, |
| WebKit::WebGestureCurveTarget* target); |
| private: |
| + void startFling(const WebKit::WebFloatPoint& velocity, |
|
jamesr
2012/12/01 01:47:19
if this isn't implementing exposed API and is just
rjkroege
2012/12/03 16:55:09
Done. And an assortment of other minor style nits.
|
| + const WebKit::WebRect& range); |
|
jamesr
2012/12/01 01:47:19
indentation - this should be aligned with the open
rjkroege
2012/12/03 16:55:09
Done.
|
| + // Returns true if the animation is not yet finished. |
| + bool updatePosition(); |
| + WebKit::WebPoint getCurrentPosition(); |
| + void cancelFling(); |
| + |
| bool is_active_; |
| // Java OverScroller instance and methods. |