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

Unified Diff: remoting/protocol/client_event_dispatcher.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/protocol/client_event_dispatcher.h ('k') | remoting/protocol/input_event_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_event_dispatcher.cc
diff --git a/remoting/protocol/client_event_dispatcher.cc b/remoting/protocol/client_event_dispatcher.cc
index 89e4bcf8cbe14cf94c5085f06c8bc4e8baa1a5fb..43507468b8a4641b8c3ba5d96ffbd312201d8b1b 100644
--- a/remoting/protocol/client_event_dispatcher.cc
+++ b/remoting/protocol/client_event_dispatcher.cc
@@ -46,5 +46,12 @@ void ClientEventDispatcher::InjectMouseEvent(const MouseEvent& event) {
writer()->Write(SerializeAndFrameMessage(message), base::Closure());
}
+void ClientEventDispatcher::InjectTouchEvent(const TouchEvent& event) {
+ EventMessage message;
+ message.set_timestamp(base::Time::Now().ToInternalValue());
+ message.mutable_touch_event()->CopyFrom(event);
+ writer()->Write(SerializeAndFrameMessage(message), base::Closure());
+}
+
} // namespace protocol
} // namespace remoting
« no previous file with comments | « remoting/protocol/client_event_dispatcher.h ('k') | remoting/protocol/input_event_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698