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

Unified Diff: remoting/host/event_executor_win.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_win.h
diff --git a/remoting/host/event_executor_win.h b/remoting/host/event_executor_win.h
index e9a0269cec3fde5c8a42788ce5b11929f1ae7aa6..b98d7be5d3d1dae1849ce3c1878348bdb1a3ca9a 100644
--- a/remoting/host/event_executor_win.h
+++ b/remoting/host/event_executor_win.h
@@ -7,29 +7,46 @@
#include <vector>
-#include "remoting/host/event_executor.h"
+#include "base/task.h"
awong 2010/11/12 23:29:04 Alphabetical ordering.
+#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
+#include "remoting/protocol/input_stub.h"
+
+class MessageLoop;
namespace remoting {
+class Capturer;
+class KeyEvent;
+class MouseDownEvent;
+class MouseSetPositionEvent;
+class MouseUpEvent;
+class MouseWheelEvent;
+
// A class to generate events on Windows.
-class EventExecutorWin : public EventExecutor {
+class EventExecutorWin : public protocol::InputStub {
public:
- EventExecutorWin(Capturer* capturer);
+ EventExecutorWin(MessageLoop* message_loop, Capturer* capturer);
virtual ~EventExecutorWin();
- virtual void HandleInputEvent(ChromotingClientMessage* message);
+ virtual void InjectKeyEvent(const KeyEvent* event, Task* done);
+ virtual void InjectMouseEvent(const MouseEvent* event, Task* done);
private:
- void HandleMouseSetPosition(ChromotingClientMessage* msg);
- void HandleMouseMove(ChromotingClientMessage* msg);
- void HandleMouseWheel(ChromotingClientMessage* msg);
- void HandleMouseButtonDown(ChromotingClientMessage* msg);
- void HandleMouseButtonUp(ChromotingClientMessage* msg);
- void HandleKey(ChromotingClientMessage* msg);
+ void HandleMouseSetPosition(const MouseSetPositionEvent& event);
+ void HandleMouseWheel(const MouseWheelEvent& event);
+ void HandleMouseButtonDown(const MouseDownEvent& event);
+ void HandleMouseButtonUp(const MouseUpEvent& event);
+ void HandleKey(const KeyEvent& event);
+
+ MessageLoop* message_loop_;
+ Capturer* capturer_;
DISALLOW_COPY_AND_ASSIGN(EventExecutorWin);
};
} // namespace remoting
+DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::EventExecutorWin);
+
#endif // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698