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

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

Issue 145953005: Expose more gestures to ContentViewCore.GestureStateListeners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 11 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/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java ('k') | 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_public/browser/GestureStateListener.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java b/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..7d404f26e5cd99adb186f6c798402e9c066fc087
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java
@@ -0,0 +1,64 @@
+// 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.
+
+package org.chromium.content_public.browser;
+
+/**
+ * A class that is notified of events and state changes related to gesture processing from
+ * the ContentViewCore.
+ */
+public class GestureStateListener {
+ /**
+ * Called when the pinch gesture starts.
+ */
+ public void onPinchGestureStart() {}
+
+ /**
+ * Called when the pinch gesture ends.
+ */
+ public void onPinchGestureEnd() {}
+
+ /**
+ * Called when the fling gesture is sent.
+ */
+ public void onFlingStartGesture(int vx, int vy, int scrollOffsetY, int scrollExtentY) {}
+
+ /**
+ * Called when the fling cancel gesture is sent.
+ */
+ public void onFlingCancelGesture() {}
+
+ /**
+ * Called when a fling has ended.
+ */
+ public void onFlingEndGesture(int scrollOffsetY, int scrollExtentY) {}
+
+ /**
+ * Called when a fling event was not handled by the renderer.
+ */
+ public void onUnhandledFlingStartEvent() {}
+
+ /**
+ * Called to indicate that a scroll update gesture had been consumed by the page.
+ * This callback is called whenever any layer is scrolled (like a frame or div). It is
+ * not called when a JS touch handler consumes the event (preventDefault), it is not called
+ * for JS-initiated scrolling.
+ */
+ public void onScrollUpdateGestureConsumed() {}
+
+ /*
+ * Called when a scroll gesture has started.
+ */
+ public void onScrollStarted(int scrollOffsetY, int scrollExtentY) {}
+
+ /*
+ * Called when a scroll gesture has stopped.
+ */
+ public void onScrollEnded(int scrollOffsetY, int scrollExtentY) {}
+
+ /*
+ * Called when the scroll offsets or extents may have changed.
+ */
+ public void onScrollOffsetOrExtentChanged(int scrollOffsetY, int scrollExtentY) {}
+}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698