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

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

Issue 10447041: Fix Ctrl+Alt+Esc keyboard shortcut in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/host_mock_objects.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/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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 341
342 void ChromotingHost::set_protocol_config( 342 void ChromotingHost::set_protocol_config(
343 protocol::CandidateSessionConfig* config) { 343 protocol::CandidateSessionConfig* config) {
344 DCHECK(context_->network_message_loop()->BelongsToCurrentThread()); 344 DCHECK(context_->network_message_loop()->BelongsToCurrentThread());
345 DCHECK(config); 345 DCHECK(config);
346 DCHECK_EQ(state_, kInitial); 346 DCHECK_EQ(state_, kInitial);
347 protocol_config_.reset(config); 347 protocol_config_.reset(config);
348 } 348 }
349 349
350 void ChromotingHost::LocalMouseMoved(const SkIPoint& new_pos) { 350 void ChromotingHost::OnLocalMouseMoved(const SkIPoint& new_pos) {
351 if (!context_->network_message_loop()->BelongsToCurrentThread()) { 351 if (!context_->network_message_loop()->BelongsToCurrentThread()) {
352 context_->network_message_loop()->PostTask( 352 context_->network_message_loop()->PostTask(
353 FROM_HERE, base::Bind(&ChromotingHost::LocalMouseMoved, this, new_pos)); 353 FROM_HERE, base::Bind(&ChromotingHost::OnLocalMouseMoved,
354 this, new_pos));
354 return; 355 return;
355 } 356 }
356 357
357 ClientList::iterator client; 358 ClientList::iterator client;
358 for (client = clients_.begin(); client != clients_.end(); ++client) { 359 for (client = clients_.begin(); client != clients_.end(); ++client) {
359 (*client)->LocalMouseMoved(new_pos); 360 (*client)->LocalMouseMoved(new_pos);
360 } 361 }
361 } 362 }
362 363
363 void ChromotingHost::PauseSession(bool pause) { 364 void ChromotingHost::PauseSession(bool pause) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 OnShutdown()); 436 OnShutdown());
436 437
437 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); 438 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin();
438 it != shutdown_tasks_.end(); ++it) { 439 it != shutdown_tasks_.end(); ++it) {
439 it->Run(); 440 it->Run();
440 } 441 }
441 shutdown_tasks_.clear(); 442 shutdown_tasks_.clear();
442 } 443 }
443 444
444 } // namespace remoting 445 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698