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

Unified Diff: content/child/fling_curve_configuration.h

Issue 586933003: fling: Remove a bunch of code for configuring fling curves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 6 years, 3 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/blink_platform_impl.cc ('k') | content/child/fling_curve_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fling_curve_configuration.h
diff --git a/content/child/fling_curve_configuration.h b/content/child/fling_curve_configuration.h
deleted file mode 100644
index 1a6573dcceef196a5ee300e1fc1137817a3564fb..0000000000000000000000000000000000000000
--- a/content/child/fling_curve_configuration.h
+++ /dev/null
@@ -1,58 +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_FLING_CURVE_CONFIGURATION_H_
-#define CONTENT_CHILD_FLING_CURVE_CONFIGURATION_H_
-
-#include <vector>
-
-#include "base/synchronization/lock.h"
-#include "third_party/WebKit/public/platform/WebFloatPoint.h"
-#include "third_party/WebKit/public/platform/WebSize.h"
-
-namespace blink {
-class WebGestureCurve;
-}
-
-namespace content {
-
-// A class to manage dynamically adjustable parameters controlling the
-// shape of the fling deacceleration function.
-class FlingCurveConfiguration {
- public:
- FlingCurveConfiguration();
- virtual ~FlingCurveConfiguration();
-
- // Create a touchpad fling curve using the current parameters.
- blink::WebGestureCurve* CreateForTouchPad(
- const blink::WebFloatPoint& velocity,
- const blink::WebSize& cumulativeScroll);
-
- // Create a touchscreen fling curve using the current parameters.
- blink::WebGestureCurve* CreateForTouchScreen(
- const blink::WebFloatPoint& velocity,
- const blink::WebSize& cumulativeScroll);
-
- // Set the curve parameters.
- void SetCurveParameters(
- const std::vector<float>& new_touchpad,
- const std::vector<float>& new_touchscreen);
-
- private:
- blink::WebGestureCurve* CreateCore(
- const std::vector<float>& coefs,
- const blink::WebFloatPoint& velocity,
- const blink::WebSize& cumulativeScroll);
-
- // Protect access to touchpad_coefs_ and touchscreen_coefs_.
- base::Lock lock_;
- std::vector<float> touchpad_coefs_;
- std::vector<float> touchscreen_coefs_;
-
- DISALLOW_COPY_AND_ASSIGN(FlingCurveConfiguration);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_FLING_CURVE_CONFIGURATION_H_
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/fling_curve_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698