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

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: Sync, and make InputStub inherit from ClipboardStub. 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_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index b1829ec987a93091471ee9ddd379b8bed185001f..bde0ec43eb11836a380819bc0c297ebe99894033 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -20,8 +20,8 @@
namespace remoting {
-using protocol::MouseEvent;
using protocol::KeyEvent;
+using protocol::MouseEvent;
namespace {
@@ -37,6 +37,11 @@ class EventExecutorLinux : public EventExecutor {
bool Init();
+ // Clipboard stub interface.
+ virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event)
Wez 2012/03/15 01:14:44 nit: Be consist about protocol::ClipboardEvent vs
simonmorris 2012/03/15 16:53:19 I was consistent originally, but another reviewer
+ OVERRIDE;
+
+ // InputStub interface.
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
@@ -314,6 +319,11 @@ bool EventExecutorLinux::Init() {
return true;
}
+void EventExecutorLinux::InjectClipboardEvent(
+ const protocol::ClipboardEvent& event) {
+ // TODO(simonmorris): Implement clipboard injection.
+}
+
void EventExecutorLinux::InjectKeyEvent(const KeyEvent& event) {
if (MessageLoop::current() != message_loop_) {
message_loop_->PostTask(

Powered by Google App Engine
This is Rietveld 408576698