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

Unified Diff: remoting/host/event_executor_win.cc

Issue 9646013: Add the plumbing that will carry a clipboard item from a chromoting client to a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor InputStub, ClipboardStub, and HostEventStub. Created 8 years, 9 months 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.cc
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index af662254e75e6280e6836ecba5144813aa0d36b3..53e98d727888b3cb5477f78589a4577a8a573528 100644
--- a/remoting/host/event_executor_win.cc
+++ b/remoting/host/event_executor_win.cc
@@ -15,8 +15,9 @@
namespace remoting {
-using protocol::MouseEvent;
+using protocol::ClipboardEvent;
using protocol::KeyEvent;
+using protocol::MouseEvent;
namespace {
@@ -26,6 +27,10 @@ class EventExecutorWin : public EventExecutor {
EventExecutorWin(MessageLoop* message_loop, Capturer* capturer);
virtual ~EventExecutorWin() {}
+ // ClipboardStub interface.
+ virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
+
+ // InputStub interface.
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
@@ -45,6 +50,10 @@ EventExecutorWin::EventExecutorWin(MessageLoop* message_loop,
capturer_(capturer) {
}
+void EventExecutorWin::InjectClipboardEvent(const ClipboardEvent& event) {
+ // TODO(simonmorris): Implement clipboard injection.
+}
+
void EventExecutorWin::InjectKeyEvent(const KeyEvent& event) {
if (MessageLoop::current() != message_loop_) {
message_loop_->PostTask(
@@ -167,9 +176,9 @@ void EventExecutorWin::HandleMouse(const MouseEvent& event) {
} // namespace
-scoped_ptr<protocol::InputStub> EventExecutor::Create(MessageLoop* message_loop,
- Capturer* capturer) {
- return scoped_ptr<protocol::InputStub>(
+scoped_ptr<protocol::HostEventStub> EventExecutor::Create(
+ MessageLoop* message_loop, Capturer* capturer) {
+ return scoped_ptr<protocol::HostEventStub>(
new EventExecutorWin(message_loop, capturer));
}

Powered by Google App Engine
This is Rietveld 408576698