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