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

Side by Side Diff: webkit/child/fling_curve_configuration.h

Issue 148333009: Move webkit/child/webkitplatformsupport_child_impl to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for Windows and Android builds, plus fix nits Created 6 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_webkit_platform_support.h ('k') | webkit/child/webfallbackthemeengine_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_FLING_CURVE_CONFIGURATION_H_ 5 #ifndef WEBKIT_CHILD_FLING_CURVE_CONFIGURATION_H_
6 #define WEBKIT_CHILD_FLING_CURVE_CONFIGURATION_H_ 6 #define WEBKIT_CHILD_FLING_CURVE_CONFIGURATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 11 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
12 #include "third_party/WebKit/public/platform/WebSize.h" 12 #include "third_party/WebKit/public/platform/WebSize.h"
13 #include "webkit/child/webkit_child_export.h"
13 14
14 namespace blink { 15 namespace blink {
15 class WebGestureCurve; 16 class WebGestureCurve;
16 } 17 }
17 18
18 namespace webkit_glue { 19 namespace webkit_glue {
19 20
20 // A class to manage dynamically adjustable parameters controlling the 21 // A class to manage dynamically adjustable parameters controlling the
21 // shape of the fling deacceleration function. 22 // shape of the fling deacceleration function.
22 class FlingCurveConfiguration { 23 class WEBKIT_CHILD_EXPORT FlingCurveConfiguration {
23 public: 24 public:
24 FlingCurveConfiguration(); 25 FlingCurveConfiguration();
25 virtual ~FlingCurveConfiguration(); 26 virtual ~FlingCurveConfiguration();
26 27
27 // Create a touchpad fling curve using the current parameters. 28 // Create a touchpad fling curve using the current parameters.
28 blink::WebGestureCurve* CreateForTouchPad( 29 blink::WebGestureCurve* CreateForTouchPad(
29 const blink::WebFloatPoint& velocity, 30 const blink::WebFloatPoint& velocity,
30 const blink::WebSize& cumulativeScroll); 31 const blink::WebSize& cumulativeScroll);
31 32
32 // Create a touchscreen fling curve using the current parameters. 33 // Create a touchscreen fling curve using the current parameters.
(...skipping 16 matching lines...) Expand all
49 base::Lock lock_; 50 base::Lock lock_;
50 std::vector<float> touchpad_coefs_; 51 std::vector<float> touchpad_coefs_;
51 std::vector<float> touchscreen_coefs_; 52 std::vector<float> touchscreen_coefs_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(FlingCurveConfiguration); 54 DISALLOW_COPY_AND_ASSIGN(FlingCurveConfiguration);
54 }; 55 };
55 56
56 } // namespace webkit_glue 57 } // namespace webkit_glue
57 58
58 #endif // WEBKIT_CHILD_FLING_CURVE_CONFIGURATION_H_ 59 #endif // WEBKIT_CHILD_FLING_CURVE_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « content/test/test_webkit_platform_support.h ('k') | webkit/child/webfallbackthemeengine_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698