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

Unified Diff: remoting/host/event_executor_mac.h

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.h
diff --git a/remoting/host/event_executor_mac.h b/remoting/host/event_executor_mac.h
index f8934b1411d455e932234104138063ee57ddd7fd..052ca487e5292254ad930cf96a78e66d36f616cc 100644
--- a/remoting/host/event_executor_mac.h
+++ b/remoting/host/event_executor_mac.h
@@ -7,19 +7,29 @@
#include <vector>
-#include "remoting/host/event_executor.h"
+#include "base/basictypes.h"
+#include "remoting/protocol/input_stub.h"
+
+class MessageLoop;
namespace remoting {
+class Capturer;
+class ChromotingClientMessage;
+
// A class to generate events on Mac.
-class EventExecutorMac : public EventExecutor {
+class EventExecutorMac : public protocol::InputStub {
public:
- EventExecutorMac(Capturer* capturer);
+ EventExecutorMac(MessageLoop* message_loop, Capturer* capturer);
virtual ~EventExecutorMac();
- virtual void HandleInputEvent(ChromotingClientMessage* message);
+ virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
+ virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
private:
+ MessageLoop* message_loop_;
+ Capturer* capturer_;
+
DISALLOW_COPY_AND_ASSIGN(EventExecutorMac);
};

Powered by Google App Engine
This is Rietveld 408576698