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