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

Side by Side Diff: remoting/client/chromoting_client.cc

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ClientStub instead of CursorShapeStub 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
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/client/chromoting_client.h" 5 #include "remoting/client/chromoting_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "remoting/client/chromoting_view.h" 8 #include "remoting/client/chromoting_view.h"
9 #include "remoting/client/client_context.h" 9 #include "remoting/client/client_context.h"
10 #include "remoting/client/rectangle_update_decoder.h" 10 #include "remoting/client/rectangle_update_decoder.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 ChromotingStats* ChromotingClient::GetStats() { 106 ChromotingStats* ChromotingClient::GetStats() {
107 return &stats_; 107 return &stats_;
108 } 108 }
109 109
110 void ChromotingClient::InjectClipboardEvent( 110 void ChromotingClient::InjectClipboardEvent(
111 const protocol::ClipboardEvent& event) { 111 const protocol::ClipboardEvent& event) {
112 view_->GetClipboardStub()->InjectClipboardEvent(event); 112 view_->GetClipboardStub()->InjectClipboardEvent(event);
113 } 113 }
114 114
115 void ChromotingClient::SetCursorShape(
116 const protocol::CursorShapeInfo& cursor_shape) {
117 view_->GetCursorShapeStub()->SetCursorShape(cursor_shape);
118 }
119
115 void ChromotingClient::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, 120 void ChromotingClient::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
116 const base::Closure& done) { 121 const base::Closure& done) {
117 DCHECK(message_loop()->BelongsToCurrentThread()); 122 DCHECK(message_loop()->BelongsToCurrentThread());
118 123
119 // If the video packet is empty then drop it. Empty packets are used to 124 // If the video packet is empty then drop it. Empty packets are used to
120 // maintain activity on the network. 125 // maintain activity on the network.
121 if (!packet->has_data() || packet->data().size() == 0) { 126 if (!packet->has_data() || packet->data().size() == 0) {
122 done.Run(); 127 done.Run();
123 return; 128 return;
124 } 129 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 thread_proxy_.PostTask(FROM_HERE, base::Bind( 224 thread_proxy_.PostTask(FROM_HERE, base::Bind(
220 &ChromotingClient::Initialize, base::Unretained(this))); 225 &ChromotingClient::Initialize, base::Unretained(this)));
221 return; 226 return;
222 } 227 }
223 228
224 // Initialize the decoder. 229 // Initialize the decoder.
225 rectangle_decoder_->Initialize(connection_->config()); 230 rectangle_decoder_->Initialize(connection_->config());
226 } 231 }
227 232
228 } // namespace remoting 233 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698