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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java

Issue 19500017: Implement basic point-and-touch mouse input for Android client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
index 7e30a68c590eba6945156c4caf196a70c23ac0ae..d7d094dfae9d4e597b9b750bbecf6408e2665dc7 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
@@ -204,9 +204,21 @@ public class JniInterface {
return Bitmap.createBitmap(frame, 0, sWidth, sWidth, sHeight, Bitmap.Config.ARGB_8888);
}
+ /** Moves the mouse cursor, possibly while clicking. */
+ public static void mouseAction(int x, int y, int whichButton) {
+ if (!sConnected) {
+ return;
+ }
+
+ mouseActionNative(x, y, whichButton);
+ }
+
/** Performs the native response to the user's PIN. */
private static native void authenticationResponse(String pin);
/** Schedules a redraw on the native graphics thread. */
private static native void scheduleRedrawNative();
+
+ /** Passes mouse information to the native handling code. */
+ private static native void mouseActionNative(int x, int y, int whichButton);
}

Powered by Google App Engine
This is Rietveld 408576698