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

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: Fix remoting_simple_host. 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
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_win.cc
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index 2a1871e245d0b23c5855f794a84bf00707778b16..75ce205ea1cc4a890855d59073b24309172ce54b 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 {
@@ -32,6 +33,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;
@@ -51,6 +56,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(
@@ -194,9 +203,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));
}
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698