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

Unified Diff: remoting/host/win/session_input_injector.cc

Issue 991643002: Windows Host Touch Injection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 9 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/touch_injector_win_unittest.cc ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/session_input_injector.cc
diff --git a/remoting/host/win/session_input_injector.cc b/remoting/host/win/session_input_injector.cc
index e229822f2b91c6bc01e228b5cec2686bfa15dcc6..bf8158ee1b7580f973efca7f46efc80971ce1135 100644
--- a/remoting/host/win/session_input_injector.cc
+++ b/remoting/host/win/session_input_injector.cc
@@ -190,7 +190,14 @@ void SessionInputInjectorWin::Core::InjectMouseEvent(const MouseEvent& event) {
}
void SessionInputInjectorWin::Core::InjectTouchEvent(const TouchEvent& event) {
- NOTIMPLEMENTED();
+ if (!input_task_runner_->BelongsToCurrentThread()) {
+ input_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&Core::InjectTouchEvent, this, event));
+ return;
+ }
+
+ SwitchToInputDesktop();
+ nested_executor_->InjectTouchEvent(event);
}
SessionInputInjectorWin::Core::~Core() {
« no previous file with comments | « remoting/host/touch_injector_win_unittest.cc ('k') | remoting/remoting_host_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698