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

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

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backup Created 10 years, 1 month 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_MAC_H_ 5 #ifndef REMOTING_HOST_EVENT_EXECUTOR_MAC_H_
6 #define REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ 6 #define REMOTING_HOST_EVENT_EXECUTOR_MAC_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "remoting/host/event_executor.h" 10 #include "base/ref_counted.h"
awong 2010/11/12 01:40:10 ordering
11 #include "base/basictypes.h"
12 #include "remoting/protocol/input_stub.h"
13
14 namespace base {
15 class MessageLoopProxy;
16 } // namespace base
11 17
12 namespace remoting { 18 namespace remoting {
13 19
20 class Capturer;
21 class ChromotingClientMessage;
22
14 // A class to generate events on Mac. 23 // A class to generate events on Mac.
15 class EventExecutorMac : public EventExecutor { 24 class EventExecutorMac : public protocol::InputStub {
16 public: 25 public:
17 EventExecutorMac(Capturer* capturer); 26 EventExecutorMac(scoped_refptr<base::MessageLoopProxy> message_loop,
27 Capturer* capturer);
18 virtual ~EventExecutorMac(); 28 virtual ~EventExecutorMac();
19 29
20 virtual void HandleInputEvent(ChromotingClientMessage* message); 30 virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
31 virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
21 32
22 private: 33 private:
34 scoped_refptr<base::MessageLoopProxy> message_loop_;
35 Capturer* capturer_;
36
23 DISALLOW_COPY_AND_ASSIGN(EventExecutorMac); 37 DISALLOW_COPY_AND_ASSIGN(EventExecutorMac);
24 }; 38 };
25 39
26 } // namespace remoting 40 } // namespace remoting
27 41
28 #endif // REMOTING_HOST_EVENT_EXECUTOR_MAC_H_ 42 #endif // REMOTING_HOST_EVENT_EXECUTOR_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698