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

Unified Diff: remoting/host/remote_input_filter.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/remote_input_filter.h ('k') | remoting/host/single_window_input_injector_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remote_input_filter.cc
diff --git a/remoting/host/remote_input_filter.cc b/remoting/host/remote_input_filter.cc
index 2b2833458f3e025576236c2feb0c42c47f717fdf..3201431f49423f0e9146ac59b77efd8b423693a9 100644
--- a/remoting/host/remote_input_filter.cc
+++ b/remoting/host/remote_input_filter.cc
@@ -95,6 +95,12 @@ void RemoteInputFilter::InjectMouseEvent(const protocol::MouseEvent& event) {
event_tracker_->InjectMouseEvent(event);
}
+void RemoteInputFilter::InjectTouchEvent(const protocol::TouchEvent& event) {
+ if (ShouldIgnoreInput())
+ return;
+ event_tracker_->InjectTouchEvent(event);
+}
+
bool RemoteInputFilter::ShouldIgnoreInput() const {
// Ignore remote events if the local mouse moved recently.
int64 millis =
« no previous file with comments | « remoting/host/remote_input_filter.h ('k') | remoting/host/single_window_input_injector_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698