Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index b5068b0eec0471e4408badf0edd6072d8d6e6ba9..4052436e24d14dac362a02e74e1e4b55b3c25ac5 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -1320,6 +1320,15 @@ public class ContentViewCore |
} |
/** |
+ * Cancel any fling gestures active. |
+ * @param timeMs Current time (in milliseconds). |
+ */ |
+ public void cancelFling(long timeMs) { |
+ if (mNativeContentViewCore == 0) return; |
+ nativeFlingCancel(mNativeContentViewCore, timeMs); |
+ } |
+ |
+ /** |
* Add a listener that gets alerted on gesture state changes. |
* @param listener Listener to add. |
*/ |