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

Unified Diff: remoting/protocol/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/protocol/input_filter.h ('k') | remoting/protocol/input_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/input_filter.cc
diff --git a/remoting/protocol/input_filter.cc b/remoting/protocol/input_filter.cc
index 44bc24726165582a51e7952c6c00d5e3b4a87e71..83e9122d7b414c7eb1807a8b7ce14fa5363b22e0 100644
--- a/remoting/protocol/input_filter.cc
+++ b/remoting/protocol/input_filter.cc
@@ -32,5 +32,10 @@ void InputFilter::InjectMouseEvent(const MouseEvent& event) {
input_stub_->InjectMouseEvent(event);
}
+void InputFilter::InjectTouchEvent(const TouchEvent& event) {
+ if (enabled_ && input_stub_ != nullptr)
+ input_stub_->InjectTouchEvent(event);
+}
+
} // namespace protocol
} // namespace remoting
« no previous file with comments | « remoting/protocol/input_filter.h ('k') | remoting/protocol/input_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698