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

Unified Diff: remoting/host/event_executor_linux.cc

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index 6f3acf222dc8677f2180a1bde45af5b5b0576993..d0479a1385be3c44324e21f93625e0c4426f08a9 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -4,20 +4,28 @@
#include "remoting/host/event_executor_linux.h"
+#include "base/task.h"
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/message_decoder.h"
namespace remoting {
EventExecutorLinux::EventExecutorLinux(Capturer* capturer)
- : EventExecutor(capturer) {
+ : capturer_(capturer) {
}
EventExecutorLinux::~EventExecutorLinux() {
}
-void EventExecutorLinux::HandleInputEvent(ChromotingClientMessage* message) {
- delete message;
+void EventExecutorLinux::InjectKeyEvent(const KeyEvent* event, Task* done) {
+ done->Run();
+ delete done;
+}
+
+void EventExecutorLinux::InjectMouseEvent(const MouseEvent* event,
+ Task* done) {
+ done->Run();
+ delete done;
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698