OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_FLING_ANIMATOR_IMPL_ANDROID_H_ | 5 #ifndef WEBKIT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_ |
6 #define WEBKIT_GLUE_FLING_ANIMATOR_IMPL_ANDROID_H_ | 6 #define WEBKIT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 9 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
10 #include "third_party/WebKit/public/platform/WebGestureCurve.h" | 10 #include "third_party/WebKit/public/platform/WebGestureCurve.h" |
11 #include "third_party/WebKit/public/platform/WebSize.h" | 11 #include "third_party/WebKit/public/platform/WebSize.h" |
12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
13 #include "ui/gfx/point_f.h" | 13 #include "ui/gfx/point_f.h" |
14 #include "webkit/glue/webkit_glue_export.h" | 14 #include "webkit/child/webkit_child_export.h" |
15 | 15 |
16 namespace WebKit { | 16 namespace WebKit { |
17 class WebGestureCurveTarget; | 17 class WebGestureCurveTarget; |
18 } | 18 } |
19 | 19 |
20 namespace webkit_glue { | 20 namespace webkit_glue { |
21 | 21 |
22 class WEBKIT_GLUE_EXPORT FlingAnimatorImpl : public WebKit::WebGestureCurve { | 22 class WEBKIT_CHILD_EXPORT FlingAnimatorImpl : public WebKit::WebGestureCurve { |
23 public: | 23 public: |
24 FlingAnimatorImpl(); | 24 FlingAnimatorImpl(); |
25 virtual ~FlingAnimatorImpl(); | 25 virtual ~FlingAnimatorImpl(); |
26 | 26 |
27 static FlingAnimatorImpl* CreateAndroidGestureCurve( | 27 static FlingAnimatorImpl* CreateAndroidGestureCurve( |
28 const WebKit::WebFloatPoint& velocity, | 28 const WebKit::WebFloatPoint& velocity, |
29 const WebKit::WebSize&); | 29 const WebKit::WebSize&); |
30 | 30 |
31 virtual bool apply(double time, | 31 virtual bool apply(double time, |
32 WebKit::WebGestureCurveTarget* target); | 32 WebKit::WebGestureCurveTarget* target); |
(...skipping 15 matching lines...) Expand all Loading... |
48 | 48 |
49 gfx::Point last_position_; | 49 gfx::Point last_position_; |
50 gfx::PointF last_velocity_; | 50 gfx::PointF last_velocity_; |
51 double last_time_; | 51 double last_time_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(FlingAnimatorImpl); | 53 DISALLOW_COPY_AND_ASSIGN(FlingAnimatorImpl); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace webkit_glue | 56 } // namespace webkit_glue |
57 | 57 |
58 #endif // WEBKIT_GLUE_FLING_ANIMATOR_IMPL_ANDROID_H_ | 58 #endif // WEBKIT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_ |
OLD | NEW |