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

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: add more comments to event proto Created 5 years, 11 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
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 =

Powered by Google App Engine
This is Rietveld 408576698