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_mac.h" | 5 #include "remoting/host/event_executor_mac.h" |
6 | 6 |
| 7 #include "base/message_loop_proxy.h" |
| 8 #include "base/task.h" |
7 #include "remoting/proto/internal.pb.h" | 9 #include "remoting/proto/internal.pb.h" |
8 #include "remoting/protocol/message_decoder.h" | 10 #include "remoting/protocol/message_decoder.h" |
9 | 11 |
10 namespace remoting { | 12 namespace remoting { |
11 | 13 |
12 EventExecutorMac::EventExecutorMac(Capturer* capturer) | 14 EventExecutorMac::EventExecutorMac( |
13 : EventExecutor(capturer) { | 15 scoped_refptr<base::MessageLoopProxy> message_loop, Capturer* capturer) |
| 16 : message_loop_(message_loop), |
| 17 capturer_(capturer) { |
14 } | 18 } |
15 | 19 |
16 EventExecutorMac::~EventExecutorMac() { | 20 EventExecutorMac::~EventExecutorMac() { |
17 } | 21 } |
18 | 22 |
19 void EventExecutorMac::HandleInputEvent(ChromotingClientMessage* message) { | 23 void EventExecutorMac::InjectKeyEvent(const KeyEvent* event, Task* done) { |
20 delete message; | 24 done->Run(); |
| 25 delete done; |
| 26 } |
| 27 |
| 28 void EventExecutorMac::InjectMouseEvent(const MouseEvent* event, Task* done) { |
| 29 done->Run(); |
| 30 delete done; |
21 } | 31 } |
22 | 32 |
23 } // namespace remoting | 33 } // namespace remoting |
OLD | NEW |