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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 227303004: Added a public function to cancel any fling gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved function cancelFling and added javadoc Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698