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

Unified Diff: remoting/host/input_injector_x11.cc

Issue 799233004: Add touch events to the protocol, the stub layer, and to the client plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 10 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/host/input_injector_win.cc ('k') | remoting/host/ipc_input_injector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_x11.cc
diff --git a/remoting/host/input_injector_x11.cc b/remoting/host/input_injector_x11.cc
index 802e920630eb6c352d0c47845306080cfa516b2b..8fc725b0f7be7f9a855a8a5046ca641f62b1e881 100644
--- a/remoting/host/input_injector_x11.cc
+++ b/remoting/host/input_injector_x11.cc
@@ -35,6 +35,7 @@ using protocol::ClipboardEvent;
using protocol::KeyEvent;
using protocol::TextEvent;
using protocol::MouseEvent;
+using protocol::TouchEvent;
bool FindKeycodeForKeySym(Display* display,
KeySym key_sym,
@@ -106,6 +107,7 @@ class InputInjectorX11 : public InputInjector {
void InjectKeyEvent(const KeyEvent& event) override;
void InjectTextEvent(const TextEvent& event) override;
void InjectMouseEvent(const MouseEvent& event) override;
+ void InjectTouchEvent(const TouchEvent& event) override;
// InputInjector interface.
void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
@@ -219,6 +221,10 @@ void InputInjectorX11::InjectMouseEvent(const MouseEvent& event) {
core_->InjectMouseEvent(event);
}
+void InputInjectorX11::InjectTouchEvent(const TouchEvent& event) {
+ NOTIMPLEMENTED() << "Raw touch event injection not implemented for X11.";
+}
+
void InputInjectorX11::Start(
scoped_ptr<protocol::ClipboardStub> client_clipboard) {
core_->Start(client_clipboard.Pass());
« no previous file with comments | « remoting/host/input_injector_win.cc ('k') | remoting/host/ipc_input_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698