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

Side by Side Diff: remoting/host/event_executor_linux.h

Issue 6489031: Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unused gtk dependency. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 6 #define REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "remoting/host/event_executor.h" 13 #include "remoting/host/event_executor.h"
14 #include "remoting/protocol/input_stub.h" 14 #include "remoting/protocol/input_stub.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 class EventExecutorLinuxPimpl; 18 class EventExecutorLinuxPimpl;
19 19
20 // A class to generate events on Linux. 20 // A class to generate events on Linux.
21 class EventExecutorLinux : public protocol::InputStub { 21 class EventExecutorLinux : public protocol::InputStub {
22 public: 22 public:
23 EventExecutorLinux(MessageLoop* message_loop, 23 EventExecutorLinux(MessageLoopForUI* message_loop,
24 Capturer* capturer); 24 Capturer* capturer);
25 virtual ~EventExecutorLinux(); 25 virtual ~EventExecutorLinux();
26 26
27 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done); 27 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done);
28 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done); 28 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done);
29 29
30 private: 30 private:
31 MessageLoop* message_loop_; 31 MessageLoopForUI* message_loop_;
32 Capturer* capturer_; 32 Capturer* capturer_;
33 scoped_ptr<EventExecutorLinuxPimpl> pimpl_; 33 scoped_ptr<EventExecutorLinuxPimpl> pimpl_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux); 35 DISALLOW_COPY_AND_ASSIGN(EventExecutorLinux);
36 }; 36 };
37 37
38 } // namespace remoting 38 } // namespace remoting
39 39
40 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorLinux); 40 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorLinux);
41 41
42 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_ 42 #endif // REMOTING_HOST_EVENT_EXECUTOR_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698