| 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);
|
| }
|
|
|