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

Unified Diff: webkit/compositor/WheelFlingPlatformGestureCurve.h

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 4 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/compositor/WebVideoLayerImpl.cpp ('k') | webkit/compositor/compositor.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor/WheelFlingPlatformGestureCurve.h
diff --git a/webkit/compositor/WheelFlingPlatformGestureCurve.h b/webkit/compositor/WheelFlingPlatformGestureCurve.h
deleted file mode 100644
index 2ff1f460cef9c1117233352528ce0271de7e4c0a..0000000000000000000000000000000000000000
--- a/webkit/compositor/WheelFlingPlatformGestureCurve.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 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 WheelFlingPlatformGestureCurve_h
-#define WheelFlingPlatformGestureCurve_h
-
-#include "FloatPoint.h"
-#include "PlatformGestureCurve.h"
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
-
-namespace WebCore {
-
-class PlatformGestureCurveTarget;
-
-// Implementation of PlatformGestureCurve suitable for mouse wheel-based fling
-// scroll. A Rayleigh distribtution curve is used to define the velocity profile,
-// so velocity starts at zero, accelerates to a maximum proportional to 'velocity',
-// then gently tails off to zero again.
-class WheelFlingPlatformGestureCurve : public PlatformGestureCurve {
-public:
- static PassOwnPtr<PlatformGestureCurve> create(const FloatPoint& velocity);
- virtual ~WheelFlingPlatformGestureCurve();
-
- virtual const char* debugName() const OVERRIDE;
- virtual bool apply(double time, PlatformGestureCurveTarget*) OVERRIDE;
-
-private:
- explicit WheelFlingPlatformGestureCurve(const FloatPoint& velocity);
-
- FloatPoint m_velocity;
- IntPoint m_cumulativeScroll;
-};
-
-} // namespace WebCore
-
-#endif
« no previous file with comments | « webkit/compositor/WebVideoLayerImpl.cpp ('k') | webkit/compositor/compositor.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698