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..9d1b3aec7d19938f3bdfbfb8c1345343e98fa281 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, boolean buttonDown) { |
+ if (!sConnected) { |
+ return; |
+ } |
+ |
+ mouseActionNative(x, y, whichButton, buttonDown); |
+ } |
+ |
/** 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, boolean buttonDown); |
} |