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

Unified Diff: remoting/client/jni/chromoting_jni_instance.h

Issue 341693004: Fix Desktop.dispatchKeyEvent() to return correct result. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/client/jni/chromoting_jni_instance.h
diff --git a/remoting/client/jni/chromoting_jni_instance.h b/remoting/client/jni/chromoting_jni_instance.h
index 8fb60232df5912f52e2dfe50876e39ab3ae11248..91919b27e5bc5e3d365db31c87466b4b251ce92c 100644
--- a/remoting/client/jni/chromoting_jni_instance.h
+++ b/remoting/client/jni/chromoting_jni_instance.h
@@ -87,7 +87,7 @@ class ChromotingJniInstance
void SendMouseWheelEvent(int delta_x, int delta_y);
// Sends the provided keyboard scan code to the host.
- void SendKeyEvent(int key_code, bool key_down);
+ bool SendKeyEvent(int key_code, bool key_down);
void SendTextEvent(const std::string& text);
@@ -136,6 +136,8 @@ class ChromotingJniInstance
// Sets the device name. Can be called on any thread.
void SetDeviceName(const std::string& device_name);
+ void SendKeyEventInternal(int usb_key_code, bool key_down);
+
// Enables or disables periodic logging of performance statistics. Called on
// the network thread.
void EnableStatsLogging(bool enabled);

Powered by Google App Engine
This is Rietveld 408576698