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

Unified Diff: webkit/glue/touch_fling_gesture_curve.h

Issue 16816003: move webkit/glue/touch_fling_* to webkit/child/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/child/touch_fling_gesture_curve_unittest.cc ('k') | webkit/glue/touch_fling_gesture_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/touch_fling_gesture_curve.h
diff --git a/webkit/glue/touch_fling_gesture_curve.h b/webkit/glue/touch_fling_gesture_curve.h
deleted file mode 100644
index 24fda605f81eafd7bf1075bec8739a9ac1d64642..0000000000000000000000000000000000000000
--- a/webkit/glue/touch_fling_gesture_curve.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_GLUE_TOUCH_FLING_GESTURE_CURVE_H_
-#define WEBKIT_GLUE_TOUCH_FLING_GESTURE_CURVE_H_
-
-#include "third_party/WebKit/public/platform/WebFloatPoint.h"
-#include "third_party/WebKit/public/platform/WebFloatSize.h"
-#include "third_party/WebKit/public/platform/WebGestureCurve.h"
-#include "third_party/WebKit/public/platform/WebSize.h"
-#include "webkit/glue/webkit_glue_export.h"
-
-namespace WebKit {
-class WebGestureCurveTarget;
-}
-
-namespace webkit_glue {
-
-// Implementation of WebGestureCurve suitable for touch pad/screen-based
-// fling scroll. Starts with a flat velocity profile based on 'velocity', which
-// tails off to zero. Time is scaled to that duration of the fling is
-// proportional to the initial velocity.
-class TouchFlingGestureCurve : public WebKit::WebGestureCurve {
- public:
-
- WEBKIT_GLUE_EXPORT static WebGestureCurve* Create(
- const WebKit::WebFloatPoint& initial_velocity,
- float p0, float p1, float p2,
- const WebKit::WebSize& cumulativeScroll);
-
- virtual bool apply(double monotonicTime,
- WebKit::WebGestureCurveTarget*) OVERRIDE;
-
- private:
- TouchFlingGestureCurve(const WebKit::WebFloatPoint& initial_velocity,
- float p0,
- float p1,
- float p2,
- const WebKit::WebSize& cumulativeScroll);
- virtual ~TouchFlingGestureCurve();
-
- WebKit::WebFloatPoint displacement_ratio_;
- WebKit::WebFloatSize cumulative_scroll_;
- float coefficients_[3];
- float time_offset_;
- float curve_duration_;
- float position_offset_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchFlingGestureCurve);
-};
-
-} // namespace webkit_glue
-
-#endif // WEBKIT_GLUE_TOUCH_FLING_GESTURE_CURVE_H_
« no previous file with comments | « webkit/child/touch_fling_gesture_curve_unittest.cc ('k') | webkit/glue/touch_fling_gesture_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698