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

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

Issue 112453002: Remove dependency on skia from remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/host/client_session.h ('k') | remoting/host/client_session_control.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/host/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "remoting/base/capabilities.h" 10 #include "remoting/base/capabilities.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 DCHECK(CalledOnValidThread()); 390 DCHECK(CalledOnValidThread());
391 DCHECK(connection_.get()); 391 DCHECK(connection_.get());
392 392
393 max_duration_timer_.Stop(); 393 max_duration_timer_.Stop();
394 394
395 // This triggers OnConnectionClosed(), and the session may be destroyed 395 // This triggers OnConnectionClosed(), and the session may be destroyed
396 // as the result, so this call must be the last in this method. 396 // as the result, so this call must be the last in this method.
397 connection_->Disconnect(); 397 connection_->Disconnect();
398 } 398 }
399 399
400 void ClientSession::OnLocalMouseMoved(const SkIPoint& position) { 400 void ClientSession::OnLocalMouseMoved(const webrtc::DesktopVector& position) {
401 DCHECK(CalledOnValidThread()); 401 DCHECK(CalledOnValidThread());
402 remote_input_filter_.LocalMouseMoved(position); 402 remote_input_filter_.LocalMouseMoved(position);
403 } 403 }
404 404
405 void ClientSession::SetDisableInputs(bool disable_inputs) { 405 void ClientSession::SetDisableInputs(bool disable_inputs) {
406 DCHECK(CalledOnValidThread()); 406 DCHECK(CalledOnValidThread());
407 407
408 if (disable_inputs) 408 if (disable_inputs)
409 input_tracker_.ReleaseAll(); 409 input_tracker_.ReleaseAll();
410 410
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim()); 444 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim());
445 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { 445 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) {
446 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus()); 446 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus());
447 } 447 }
448 448
449 NOTREACHED(); 449 NOTREACHED();
450 return scoped_ptr<AudioEncoder>(); 450 return scoped_ptr<AudioEncoder>();
451 } 451 }
452 452
453 } // namespace remoting 453 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698