OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/event_executor_linux.h" | 5 #include "remoting/host/event_executor_linux.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 #include <X11/keysym.h> | 8 #include <X11/keysym.h> |
9 #include <X11/extensions/XTest.h> | 9 #include <X11/extensions/XTest.h> |
10 | 10 |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 FROM_HERE, | 430 FROM_HERE, |
431 NewRunnableMethod(this, &EventExecutorLinux::InjectMouseEvent, | 431 NewRunnableMethod(this, &EventExecutorLinux::InjectMouseEvent, |
432 event, done)); | 432 event, done)); |
433 return; | 433 return; |
434 } | 434 } |
435 pimpl_->HandleMouse(event); | 435 pimpl_->HandleMouse(event); |
436 done->Run(); | 436 done->Run(); |
437 delete done; | 437 delete done; |
438 } | 438 } |
439 | 439 |
| 440 protocol::InputStub* CreateEventExecutor(MessageLoop* message_loop, |
| 441 Capturer* capturer) { |
| 442 return new EventExecutorLinux(message_loop, capturer); |
| 443 } |
| 444 |
440 } // namespace remoting | 445 } // namespace remoting |
OLD | NEW |