summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/event_executor_mac.cc')
-rw-r--r--remoting/host/event_executor_mac.cc19
1 files changed, 14 insertions, 5 deletions
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc
index 7e64324..553222a 100644
--- a/remoting/host/event_executor_mac.cc
+++ b/remoting/host/event_executor_mac.cc
@@ -4,20 +4,29 @@
#include "remoting/host/event_executor_mac.h"
-#include "remoting/proto/internal.pb.h"
+#include "base/message_loop.h"
+#include "base/task.h"
#include "remoting/protocol/message_decoder.h"
namespace remoting {
-EventExecutorMac::EventExecutorMac(Capturer* capturer)
- : EventExecutor(capturer) {
+EventExecutorMac::EventExecutorMac(
+ MessageLoop* message_loop, Capturer* capturer)
+ : message_loop_(message_loop),
+ capturer_(capturer) {
}
EventExecutorMac::~EventExecutorMac() {
}
-void EventExecutorMac::HandleInputEvent(ChromotingClientMessage* message) {
- delete message;
+void EventExecutorMac::InjectKeyEvent(const KeyEvent* event, Task* done) {
+ done->Run();
+ delete done;
+}
+
+void EventExecutorMac::InjectMouseEvent(const MouseEvent* event, Task* done) {
+ done->Run();
+ delete done;
}
} // namespace remoting