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

Unified Diff: remoting/host/event_executor_mac.cc

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/event_executor_mac.cc
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc
index 7e6432487e564d999e85905d9ff093ec885cd06d..553222a5884183eb7ffcb846e959686b7171b606 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

Powered by Google App Engine
This is Rietveld 408576698