summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/host_control_dispatcher.cc
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-02 22:16:41 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-02 22:16:41 +0000
commitd65e15bdcd7ffe01ec2054177a7e78fa69683a38 (patch)
treefb05d40a5b8bf2dfd943999b19fcb304e088d08e /remoting/protocol/host_control_dispatcher.cc
parent051e71e1b702970eb39302abbe29836239036a3d (diff)
downloadchromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.zip
chromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.tar.gz
chromium_src-d65e15bdcd7ffe01ec2054177a7e78fa69683a38.tar.bz2
[Chromoting] Initial plumbing for cursor shape.
This cl contains: * protocol for sending cursor shape on control channel from host to client * cross-platform (Pepper) client code for rendering host cursor * Linux host support for reading current cursor shape Separate CLs will follow with Mac and Windows host support. BUG=116229 TEST=none Review URL: https://chromiumcodereview.appspot.com/10382184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_control_dispatcher.cc')
-rw-r--r--remoting/protocol/host_control_dispatcher.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/remoting/protocol/host_control_dispatcher.cc b/remoting/protocol/host_control_dispatcher.cc
index 9e6b745..ac6d80f 100644
--- a/remoting/protocol/host_control_dispatcher.cc
+++ b/remoting/protocol/host_control_dispatcher.cc
@@ -38,6 +38,13 @@ void HostControlDispatcher::InjectClipboardEvent(const ClipboardEvent& event) {
writer_.Write(SerializeAndFrameMessage(message), base::Closure());
}
+void HostControlDispatcher::SetCursorShape(
+ const CursorShapeInfo& cursor_shape) {
+ ControlMessage message;
+ message.mutable_cursor_shape()->CopyFrom(cursor_shape);
+ writer_.Write(SerializeAndFrameMessage(message), base::Closure());
+}
+
void HostControlDispatcher::OnMessageReceived(
scoped_ptr<ControlMessage> message, const base::Closure& done_task) {
DCHECK(clipboard_stub_);