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

Side by Side Diff: remoting/protocol/client_control_dispatcher.cc

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused vars. Fix Mac Capturer Unittest. Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/client_control_dispatcher.h ('k') | remoting/protocol/client_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/client_control_dispatcher.h" 5 #include "remoting/protocol/client_control_dispatcher.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "net/socket/stream_socket.h" 10 #include "net/socket/stream_socket.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 void ClientControlDispatcher::OnMessageReceived( 57 void ClientControlDispatcher::OnMessageReceived(
58 scoped_ptr<ControlMessage> message, const base::Closure& done_task) { 58 scoped_ptr<ControlMessage> message, const base::Closure& done_task) {
59 DCHECK(client_stub_); 59 DCHECK(client_stub_);
60 DCHECK(clipboard_stub_); 60 DCHECK(clipboard_stub_);
61 base::ScopedClosureRunner done_runner(done_task); 61 base::ScopedClosureRunner done_runner(done_task);
62 62
63 if (message->has_clipboard_event()) { 63 if (message->has_clipboard_event()) {
64 clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); 64 clipboard_stub_->InjectClipboardEvent(message->clipboard_event());
65 } else if (message->has_cursor_shape()) {
66 client_stub_->SetCursorShape(message->cursor_shape());
65 } else { 67 } else {
66 LOG(WARNING) << "Unknown control message received."; 68 LOG(WARNING) << "Unknown control message received.";
67 } 69 }
68 } 70 }
69 71
70 } // namespace protocol 72 } // namespace protocol
71 } // namespace remoting 73 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/client_control_dispatcher.h ('k') | remoting/protocol/client_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698