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

Unified Diff: content/child/fling_animator_impl_android.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/blink_platform_impl.cc ('k') | content/child/fling_animator_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fling_animator_impl_android.h
diff --git a/content/child/fling_animator_impl_android.h b/content/child/fling_animator_impl_android.h
deleted file mode 100644
index b9de497a78892a45343f4cc9db31c3ee4e927b45..0000000000000000000000000000000000000000
--- a/content/child/fling_animator_impl_android.h
+++ /dev/null
@@ -1,47 +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_ANIMATOR_IMPL_ANDROID_H_
-#define CONTENT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_
-
-
-#include "third_party/WebKit/public/platform/WebFloatPoint.h"
-#include "third_party/WebKit/public/platform/WebGestureCurve.h"
-#include "third_party/WebKit/public/platform/WebSize.h"
-#include "ui/gfx/android/scroller.h"
-#include "ui/gfx/point_f.h"
-
-namespace blink {
-class WebGestureCurveTarget;
-}
-
-namespace content {
-
-class FlingAnimatorImpl : public blink::WebGestureCurve {
- public:
- FlingAnimatorImpl();
- virtual ~FlingAnimatorImpl();
-
- static FlingAnimatorImpl* CreateAndroidGestureCurve(
- const blink::WebFloatPoint& velocity,
- const blink::WebSize&);
-
- virtual bool apply(double time, blink::WebGestureCurveTarget* target);
-
- private:
- void StartFling(const gfx::PointF& velocity);
- void CancelFling();
-
- bool is_active_;
-
- gfx::Scroller scroller_;
-
- gfx::PointF last_position_;
-
- DISALLOW_COPY_AND_ASSIGN(FlingAnimatorImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/fling_animator_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698