| OLD | NEW |
| 1 // // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // // Copyright 2013 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_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ | 5 #ifndef WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ |
| 6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ | 6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ |
| 7 | 7 |
| 8 #include "webkit/child/webkit_child_export.h" | 8 #include "webkit/child/webkit_child_export.h" |
| 9 #include "webkit/glue/webkitplatformsupport_impl.h" | 9 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 10 | 10 |
| 11 namespace webkit_glue { | 11 namespace webkit_glue { |
| 12 | 12 |
| 13 class FlingCurveConfiguration; |
| 14 |
| 13 class WEBKIT_CHILD_EXPORT WebKitPlatformSupportChildImpl : | 15 class WEBKIT_CHILD_EXPORT WebKitPlatformSupportChildImpl : |
| 14 public WebKitPlatformSupportImpl { | 16 public WebKitPlatformSupportImpl { |
| 15 public: | 17 public: |
| 16 WebKitPlatformSupportChildImpl(); | 18 WebKitPlatformSupportChildImpl(); |
| 17 virtual ~WebKitPlatformSupportChildImpl(); | 19 virtual ~WebKitPlatformSupportChildImpl(); |
| 20 |
| 21 void SetFlingCurveParameters( |
| 22 const std::vector<float>& new_touchpad, |
| 23 const std::vector<float>& new_touchscreen); |
| 24 |
| 25 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( |
| 26 int device_source, |
| 27 const WebKit::WebFloatPoint& velocity, |
| 28 const WebKit::WebSize& cumulative_scroll) OVERRIDE; |
| 29 |
| 30 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; |
| 18 }; | 31 }; |
| 19 | 32 |
| 20 } // namespace webkit_glue | 33 } // namespace webkit_glue |
| 21 | 34 |
| 22 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ | 35 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_CHILD_IMPL_H_ |
| OLD | NEW |