summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor_win.cc
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 00:32:44 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-19 00:32:44 +0000
commit7b398be3d0a34cb44dff6c45a6842f4ab4c1116e (patch)
tree3ca8fa89c3fa907eda6fde8c3e922cc9c54d5783 /remoting/host/event_executor_win.cc
parent39c9b9cd2230207b23e581a3f0307c6bd25676aa (diff)
downloadchromium_src-7b398be3d0a34cb44dff6c45a6842f4ab4c1116e.zip
chromium_src-7b398be3d0a34cb44dff6c45a6842f4ab4c1116e.tar.gz
chromium_src-7b398be3d0a34cb44dff6c45a6842f4ab4c1116e.tar.bz2
Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls.
BUG=none TEST=Connect to a host and try moving the mouse and typing. Both inputs should be reflected correctly. Review URL: http://codereview.chromium.org/6489031 Patch from Jamie Walch <jamiewalch@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/event_executor_win.cc')
-rw-r--r--remoting/host/event_executor_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index 980b1ad..e9229b2 100644
--- a/remoting/host/event_executor_win.cc
+++ b/remoting/host/event_executor_win.cc
@@ -18,7 +18,7 @@ using protocol::MouseEvent;
using protocol::KeyEvent;
EventExecutorWin::EventExecutorWin(
- MessageLoop* message_loop, Capturer* capturer)
+ MessageLoopForUI* message_loop, Capturer* capturer)
: message_loop_(message_loop),
capturer_(capturer) {
}
@@ -82,7 +82,7 @@ void EventExecutorWin::HandleKey(const KeyEvent* event) {
SendInput(1, &input, sizeof(INPUT));
}
-protocol::InputStub* CreateEventExecutor(MessageLoop* message_loop,
+protocol::InputStub* CreateEventExecutor(MessageLoopForUI* message_loop,
Capturer* capturer) {
return new EventExecutorWin(message_loop, capturer);
}