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

Unified Diff: remoting/protocol/host_control_dispatcher.cc

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.cc
diff --git a/remoting/protocol/host_control_dispatcher.cc b/remoting/protocol/host_control_dispatcher.cc
index 1932cac076cc84c935c479061a99f58d615421fb..42887ab12e89a08af1d63e00a513d229c20939a8 100644
--- a/remoting/protocol/host_control_dispatcher.cc
+++ b/remoting/protocol/host_control_dispatcher.cc
@@ -40,6 +40,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_);

Powered by Google App Engine
This is Rietveld 408576698