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

Unified Diff: remoting/protocol/client_event_dispatcher.h

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: 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/protocol/client_event_dispatcher.h
diff --git a/remoting/protocol/client_event_dispatcher.h b/remoting/protocol/client_event_dispatcher.h
index 0b694014f7535ef3f256bbcd129ea85b7127392f..96339cd4e0b255b7ee304da60e13096e319d1db4 100644
--- a/remoting/protocol/client_event_dispatcher.h
+++ b/remoting/protocol/client_event_dispatcher.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "remoting/protocol/channel_dispatcher_base.h"
+#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/input_stub.h"
namespace remoting {
@@ -15,12 +16,18 @@ namespace protocol {
class BufferedSocketWriter;
// ClientEventDispatcher manages the event channel on the client
-// side. It implements InputStub for outgoing input messages.
-class ClientEventDispatcher : public ChannelDispatcherBase, public InputStub {
+// side. It implements InputStub and ClipboardStub for outgoing input and
+// clipboard messages.
+class ClientEventDispatcher : public ChannelDispatcherBase,
+ public ClipboardStub,
+ public InputStub {
public:
ClientEventDispatcher();
virtual ~ClientEventDispatcher();
+ // ClipboardStub implementation.
+ virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
+
// InputStub implementation.
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698