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

Unified Diff: webkit/child/fling_animator_impl_android.h

Issue 52663003: Remove all fling related stuff from the renderer assuming that browser side Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/renderer/render_view_impl.cc ('k') | webkit/child/fling_animator_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/fling_animator_impl_android.h
diff --git a/webkit/child/fling_animator_impl_android.h b/webkit/child/fling_animator_impl_android.h
deleted file mode 100644
index 1148caf9a5737deef6cba8fca6499bddc41bf9dd..0000000000000000000000000000000000000000
--- a/webkit/child/fling_animator_impl_android.h
+++ /dev/null
@@ -1,58 +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_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_
-#define WEBKIT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_
-
-#include "base/android/scoped_java_ref.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/point.h"
-#include "ui/gfx/point_f.h"
-#include "webkit/child/webkit_child_export.h"
-
-namespace WebKit {
-class WebGestureCurveTarget;
-}
-
-namespace webkit_glue {
-
-class WEBKIT_CHILD_EXPORT FlingAnimatorImpl : public WebKit::WebGestureCurve {
- public:
- FlingAnimatorImpl();
- virtual ~FlingAnimatorImpl();
-
- static FlingAnimatorImpl* CreateAndroidGestureCurve(
- const WebKit::WebFloatPoint& velocity,
- const WebKit::WebSize&);
-
- virtual bool apply(double time,
- WebKit::WebGestureCurveTarget* target);
-
- static bool RegisterJni(JNIEnv*);
-
- private:
- void StartFling(const gfx::PointF& velocity);
- // Returns true if the animation is not yet finished.
- bool UpdatePosition();
- gfx::Point GetCurrentPosition();
- float GetCurrentVelocity();
- virtual void CancelFling();
-
- bool is_active_;
-
- // Java OverScroller instance and methods.
- base::android::ScopedJavaGlobalRef<jobject> java_scroller_;
-
- gfx::Point last_position_;
- gfx::PointF last_velocity_;
- double last_time_;
-
- DISALLOW_COPY_AND_ASSIGN(FlingAnimatorImpl);
-};
-
-} // namespace webkit_glue
-
-#endif // WEBKIT_CHILD_FLING_ANIMATOR_IMPL_ANDROID_H_
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/child/fling_animator_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698