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

Unified Diff: webkit/glue/fling_animator_impl_android.h

Issue 12638003: Replace hand-written JNI in fling_animator with generated bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: webkit/glue/fling_animator_impl_android.h
diff --git a/webkit/glue/fling_animator_impl_android.h b/webkit/glue/fling_animator_impl_android.h
index 8d3758b60385370a312ce020faa418d5eb36c344..0068c7357019225124aa8e6f2fc41d3260507b83 100644
--- a/webkit/glue/fling_animator_impl_android.h
+++ b/webkit/glue/fling_animator_impl_android.h
@@ -29,6 +29,9 @@ class FlingAnimatorImpl : public WebKit::WebGestureCurve {
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.
@@ -40,11 +43,6 @@ class FlingAnimatorImpl : public WebKit::WebGestureCurve {
// Java OverScroller instance and methods.
base::android::ScopedJavaGlobalRef<jobject> java_scroller_;
- jmethodID fling_method_id_;
- jmethodID abort_method_id_;
- jmethodID compute_method_id_;
- jmethodID getX_method_id_;
- jmethodID getY_method_id_;
gfx::Point last_position_;

Powered by Google App Engine
This is Rietveld 408576698