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

Unified Diff: remoting/host/event_executor_mac.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: Move clipboard events to the control channel. 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_mac.cc
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc
index cb6583248df63b643acbd654cfea82aa0146b72b..fbe974249d99f12c4cb983fb979b96d522d0d950 100644
--- a/remoting/host/event_executor_mac.cc
+++ b/remoting/host/event_executor_mac.cc
@@ -19,8 +19,9 @@ namespace remoting {
namespace {
-using protocol::MouseEvent;
+using protocol::ClipboardEvent;
Sergey Ulanov 2012/03/14 20:27:07 nit: Don't need this.
simonmorris 2012/03/14 21:20:21 Done.
using protocol::KeyEvent;
+using protocol::MouseEvent;
// A class to generate events on Mac.
class EventExecutorMac : public EventExecutor {
@@ -28,6 +29,7 @@ class EventExecutorMac : public EventExecutor {
EventExecutorMac(MessageLoop* message_loop, Capturer* capturer);
virtual ~EventExecutorMac() {}
+ virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
@@ -211,6 +213,10 @@ const int kUsVkeyToKeysym[256] = {
/* VKEY_NONAME */ -1, /* VKEY_PA1 */ -1, /* VKEY_OEM_CLEAR */ -1, -1
};
+void EventExecutorMac::InjectClipboardEvent(const ClipboardEvent& event) {
+ // TODO(simonmorris): Implement clipboard injection.
+}
+
void EventExecutorMac::InjectKeyEvent(const KeyEvent& event) {
int key_code = event.keycode();
if (key_code >= 0 && key_code < 256) {

Powered by Google App Engine
This is Rietveld 408576698