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

Side by Side Diff: remoting/host/chromoting_host.cc

Issue 12220092: Rename ClientDimensions to ClientResolution and add pixel-size and DPI fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typos in ChromotingInstance. Created 7 years, 10 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/host/chromoting_host.h" 5 #include "remoting/host/chromoting_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 void ChromotingHost::OnSessionRouteChange( 259 void ChromotingHost::OnSessionRouteChange(
260 ClientSession* session, 260 ClientSession* session,
261 const std::string& channel_name, 261 const std::string& channel_name,
262 const protocol::TransportRoute& route) { 262 const protocol::TransportRoute& route) {
263 DCHECK(network_task_runner_->BelongsToCurrentThread()); 263 DCHECK(network_task_runner_->BelongsToCurrentThread());
264 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, 264 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
265 OnClientRouteChange(session->client_jid(), channel_name, 265 OnClientRouteChange(session->client_jid(), channel_name,
266 route)); 266 route));
267 } 267 }
268 268
269 void ChromotingHost::OnClientDimensionsChanged(ClientSession* session, 269 void ChromotingHost::OnClientResolutionChanged(ClientSession* session,
270 const SkISize& size) { 270 const SkISize& size,
271 const SkIPoint& dpi) {
271 DCHECK(network_task_runner_->BelongsToCurrentThread()); 272 DCHECK(network_task_runner_->BelongsToCurrentThread());
272 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_, 273 FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
273 OnClientDimensionsChanged(session->client_jid(), size)); 274 OnClientResolutionChanged(session->client_jid(),
275 size, dpi));
274 } 276 }
275 277
276 void ChromotingHost::OnSessionManagerReady() { 278 void ChromotingHost::OnSessionManagerReady() {
277 DCHECK(network_task_runner_->BelongsToCurrentThread()); 279 DCHECK(network_task_runner_->BelongsToCurrentThread());
278 // Don't need to do anything here, just wait for incoming 280 // Don't need to do anything here, just wait for incoming
279 // connections. 281 // connections.
280 } 282 }
281 283
282 void ChromotingHost::OnIncomingSession( 284 void ChromotingHost::OnIncomingSession(
283 protocol::Session* session, 285 protocol::Session* session,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 OnShutdown()); 405 OnShutdown());
404 406
405 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); 407 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin();
406 it != shutdown_tasks_.end(); ++it) { 408 it != shutdown_tasks_.end(); ++it) {
407 it->Run(); 409 it->Run();
408 } 410 }
409 shutdown_tasks_.clear(); 411 shutdown_tasks_.clear();
410 } 412 }
411 413
412 } // namespace remoting 414 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698