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

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: 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_linux.cc ('k') | remoting/host/event_executor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_mac.cc
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc
index 799b89290ae919c6dce2ef87a3efc23c881a3967..022e13da3187fe419d73563f4321a22e55c86018 100644
--- a/remoting/host/event_executor_mac.cc
+++ b/remoting/host/event_executor_mac.cc
@@ -24,8 +24,9 @@ namespace {
#include "remoting/host/usb_keycode_map.h"
#define INVALID_KEYCODE 0xffff
-using protocol::MouseEvent;
+using protocol::ClipboardEvent;
using protocol::KeyEvent;
+using protocol::MouseEvent;
// A class to generate events on Mac.
class EventExecutorMac : public EventExecutor {
@@ -33,6 +34,10 @@ class EventExecutorMac : public EventExecutor {
EventExecutorMac(MessageLoop* message_loop, Capturer* capturer);
virtual ~EventExecutorMac() {}
+ // 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;
@@ -245,6 +250,10 @@ uint16_t UsbKeycodeToMacKeycode(uint32_t usb_keycode) {
return INVALID_KEYCODE;
}
+void EventExecutorMac::InjectClipboardEvent(const ClipboardEvent& event) {
+ // TODO(simonmorris): Implement clipboard injection.
+}
+
void EventExecutorMac::InjectKeyEvent(const KeyEvent& event) {
int keycode = 0;
if (event.has_usb_keycode() && event.usb_keycode() != INVALID_KEYCODE) {
@@ -331,9 +340,9 @@ void EventExecutorMac::InjectMouseEvent(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 EventExecutorMac(message_loop, capturer));
}
« no previous file with comments | « remoting/host/event_executor_linux.cc ('k') | remoting/host/event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698