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

Unified Diff: ui/android/java/src/org/chromium/ui/base/EventForwarder.java

Issue 2770613002: Forward GenericMotionEvent to EventForwarder (Closed)
Patch Set: comments Created 3 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
« no previous file with comments | « ui/android/event_forwarder.cc ('k') | ui/android/view_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/base/EventForwarder.java
diff --git a/ui/android/java/src/org/chromium/ui/base/EventForwarder.java b/ui/android/java/src/org/chromium/ui/base/EventForwarder.java
index ee52e3c37f6ee49b8cea47d6798c2a2ea8400210..1ffb77f558b57c928b26bd5c0a8e74d5c03ffcba 100644
--- a/ui/android/java/src/org/chromium/ui/base/EventForwarder.java
+++ b/ui/android/java/src/org/chromium/ui/base/EventForwarder.java
@@ -181,6 +181,13 @@ public class EventForwarder {
orientation, tilt, actionButton, buttonState, metaState, toolType);
}
+ public boolean onMouseWheelEvent(
+ long timeMs, float x, float y, float ticksX, float ticksY, float pixelsPerTick) {
+ assert mNativeEventForwarder != 0;
+ nativeOnMouseWheelEvent(mNativeEventForwarder, timeMs, x, y, ticksX, ticksY, pixelsPerTick);
+ return true;
+ }
+
// All touch events (including flings, scrolls etc) accept coordinates in physical pixels.
private native boolean nativeOnTouchEvent(long nativeEventForwarder, MotionEvent event,
long timeMs, int action, int pointerCount, int historySize, int actionIndex, float x0,
@@ -192,4 +199,6 @@ public class EventForwarder {
private native void nativeOnMouseEvent(long nativeEventForwarder, long timeMs, int action,
float x, float y, int pointerId, float pressure, float orientation, float tilt,
int changedButton, int buttonState, int metaState, int toolType);
+ private native void nativeOnMouseWheelEvent(long nativeEventForwarder, long timeMs, float x,
+ float y, float ticksX, float ticksY, float pixelsPerTick);
}
« no previous file with comments | « ui/android/event_forwarder.cc ('k') | ui/android/view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698