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

Unified Diff: remoting/host/event_executor_linux.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.h ('k') | remoting/host/event_executor_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index b1829ec987a93091471ee9ddd379b8bed185001f..bf2d518e8a25e7911002a242399c370136074a3f 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -20,8 +20,9 @@
namespace remoting {
-using protocol::MouseEvent;
+using protocol::ClipboardEvent;
using protocol::KeyEvent;
+using protocol::MouseEvent;
namespace {
@@ -37,6 +38,11 @@ class EventExecutorLinux : public EventExecutor {
bool Init();
+ // Clipboard stub interface.
+ virtual void InjectClipboardEvent(const ClipboardEvent& event)
+ OVERRIDE;
+
+ // InputStub interface.
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
@@ -314,6 +320,10 @@ bool EventExecutorLinux::Init() {
return true;
}
+void EventExecutorLinux::InjectClipboardEvent(const ClipboardEvent& event) {
+ // TODO(simonmorris): Implement clipboard injection.
+}
+
void EventExecutorLinux::InjectKeyEvent(const KeyEvent& event) {
if (MessageLoop::current() != message_loop_) {
message_loop_->PostTask(
@@ -453,14 +463,14 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent& event) {
} // namespace
-scoped_ptr<protocol::InputStub> EventExecutor::Create(MessageLoop* message_loop,
- Capturer* capturer) {
+scoped_ptr<protocol::HostEventStub> EventExecutor::Create(
+ MessageLoop* message_loop, Capturer* capturer) {
scoped_ptr<EventExecutorLinux> executor(
new EventExecutorLinux(message_loop, capturer));
if (!executor->Init()) {
executor.reset(NULL);
}
- return executor.PassAs<protocol::InputStub>();
+ return executor.PassAs<protocol::HostEventStub>();
}
} // namespace remoting
« no previous file with comments | « remoting/host/event_executor.h ('k') | remoting/host/event_executor_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698