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

Unified Diff: remoting/client/plugin/pepper_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/plugin/pepper_input_handler.h ('k') | remoting/client/x11_input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_input_handler.cc
diff --git a/remoting/client/plugin/pepper_input_handler.cc b/remoting/client/plugin/pepper_input_handler.cc
index 40f299eaeae8ae0571b6a7801c6cc9dd761bf4b4..2ba16037a1b340725a9b969facc208ffd98849cb 100644
--- a/remoting/client/plugin/pepper_input_handler.cc
+++ b/remoting/client/plugin/pepper_input_handler.cc
@@ -18,6 +18,15 @@ PepperInputHandler::~PepperInputHandler() {
void PepperInputHandler::Initialize() {
}
+void PepperInputHandler::HandleKeyEvent(bool keydown,
+ const PP_Event_Key& event) {
+ SendKeyEvent(keydown, event.normalizedKeyCode);
+}
+
+void PepperInputHandler::HandleCharacterEvent(const PP_Event_Character& event) {
+ // TODO(garykac): Coordinate key and char events.
+}
+
void PepperInputHandler::HandleMouseMoveEvent(const PP_Event_Mouse& event) {
SendMouseMoveEvent(static_cast<int>(event.x),
static_cast<int>(event.y));
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.h ('k') | remoting/client/x11_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698