| 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 81e94ccd9de4202caf5cedb919bfd7be3986b894..79455f4169386049d4097f0beb5288a987e1cb11 100644
|
| --- a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| +++ b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
|
| @@ -321,16 +321,16 @@ public class JniInterface {
|
| private static native void nativeSendMouseWheelEvent(int deltaX, int deltaY);
|
|
|
| /** Presses or releases the specified (nonnegative) key. Called on the UI thread. */
|
| - public static void sendKeyEvent(int keyCode, boolean keyDown) {
|
| + public static boolean sendKeyEvent(int keyCode, boolean keyDown) {
|
| if (!sConnected) {
|
| - return;
|
| + return false;
|
| }
|
|
|
| - nativeSendKeyEvent(keyCode, keyDown);
|
| + return nativeSendKeyEvent(keyCode, keyDown);
|
| }
|
|
|
| /** Passes key press information to the native handling code. */
|
| - private static native void nativeSendKeyEvent(int keyCode, boolean keyDown);
|
| + private static native boolean nativeSendKeyEvent(int keyCode, boolean keyDown);
|
|
|
| /** Sends TextEvent to the host. Called on the UI thread. */
|
| public static void sendTextEvent(String text) {
|
|
|