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

Unified Diff: content/child/touch_fling_gesture_curve.h

Issue 634373003: Consolidate content fling implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win build Created 6 years, 2 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 | « content/child/fling_animator_impl_android.cc ('k') | content/child/touch_fling_gesture_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/touch_fling_gesture_curve.h
diff --git a/content/child/touch_fling_gesture_curve.h b/content/child/touch_fling_gesture_curve.h
deleted file mode 100644
index 86eebd834810592f71d788400ab44e4b19edecd3..0000000000000000000000000000000000000000
--- a/content/child/touch_fling_gesture_curve.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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 CONTENT_CHILD_TOUCH_FLING_GESTURE_CURVE_H_
-#define CONTENT_CHILD_TOUCH_FLING_GESTURE_CURVE_H_
-
-#include "content/common/content_export.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"
-
-namespace blink {
-class WebGestureCurveTarget;
-}
-
-namespace content {
-
-// 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 blink::WebGestureCurve {
- public:
-
- static CONTENT_EXPORT WebGestureCurve* Create(
- const blink::WebFloatPoint& initial_velocity,
- const blink::WebSize& cumulativeScroll);
-
- virtual bool apply(double monotonicTime,
- blink::WebGestureCurveTarget*) override;
-
- private:
- TouchFlingGestureCurve(const blink::WebFloatPoint& initial_velocity,
- const blink::WebSize& cumulativeScroll);
- virtual ~TouchFlingGestureCurve();
-
- blink::WebFloatPoint displacement_ratio_;
- blink::WebFloatSize cumulative_scroll_;
- float time_offset_;
- float curve_duration_;
- float position_offset_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchFlingGestureCurve);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_TOUCH_FLING_GESTURE_CURVE_H_
« no previous file with comments | « content/child/fling_animator_impl_android.cc ('k') | content/child/touch_fling_gesture_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698