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

Unified Diff: remoting/client/input_handler.cc

Issue 3341005: Add mouse/keyboard event support to Chromoting client (Pepper and X11). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: review comments Created 10 years, 4 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
« no previous file with comments | « remoting/client/input_handler.h ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/input_handler.cc
diff --git a/remoting/client/input_handler.cc b/remoting/client/input_handler.cc
index dd0fd7aa558c34ef14629a6856750df8faad2867..7f6f7ab2f27c7ba490a4bc1bd73a99b099e4e1af 100644
--- a/remoting/client/input_handler.cc
+++ b/remoting/client/input_handler.cc
@@ -20,6 +20,16 @@ InputHandler::InputHandler(ClientContext* context,
mouse_y_(0) {
}
+void InputHandler::SendKeyEvent(bool press, int keycode) {
+ ChromotingClientMessage msg;
+
+ KeyEvent *event = msg.mutable_key_event();
+ event->set_key(keycode);
+ event->set_pressed(press);
+
+ connection_->SendEvent(msg);
+}
+
void InputHandler::SendMouseMoveEvent(int x, int y) {
ChromotingClientMessage msg;
« no previous file with comments | « remoting/client/input_handler.h ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698