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

Unified Diff: remoting/protocol/host_control_dispatcher.h

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs Created 8 years, 7 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/host_control_dispatcher.h
diff --git a/remoting/protocol/host_control_dispatcher.h b/remoting/protocol/host_control_dispatcher.h
index 0e36ce415a184d239c77d5fad312dbe8ea10da45..e068402f9ea0ec4da00a85e670db6cdf05413416 100644
--- a/remoting/protocol/host_control_dispatcher.h
+++ b/remoting/protocol/host_control_dispatcher.h
@@ -9,6 +9,7 @@
#include "remoting/protocol/channel_dispatcher_base.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/clipboard_stub.h"
+#include "remoting/protocol/cursor_shape_stub.h"
#include "remoting/protocol/message_reader.h"
namespace net {
@@ -26,15 +27,20 @@ class Session;
// HostControlDispatcher dispatches incoming messages on the control
// channel to HostStub or ClipboardStub, and also implements ClientStub and
// ClipboardStub for outgoing messages.
-class HostControlDispatcher : public ChannelDispatcherBase, public ClientStub,
- public ClipboardStub {
+class HostControlDispatcher : public ChannelDispatcherBase,
+ public ClientStub,
+ public ClipboardStub,
+ public CursorShapeStub {
public:
HostControlDispatcher();
virtual ~HostControlDispatcher();
- // ClipboardStub implementation.
+ // ClipboardStub implementation for sending clipboard data to client.
virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
+ // CursorShapeStub implementation for sending cursor shape to client.
+ virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE;
+
// Sets the ClipboardStub that will be called for each incoming clipboard
// message. |clipboard_stub| must outlive this object.
void set_clipboard_stub(ClipboardStub* clipboard_stub) {

Powered by Google App Engine
This is Rietveld 408576698