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

Unified Diff: remoting/host/client_session.cc

Issue 12594009: Converted LocalInputMonitor into a SessionController instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 1680e5aca2a52a8afe155e5017a81de3ed6dee71..fc8ff822300d5f08c19e9d65758ad314438d30b8 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -176,7 +176,7 @@ void ClientSession::OnConnectionChannelsConnected(
host_input_filter_.set_input_stub(event_executor_.get());
clipboard_echo_filter_.set_host_stub(event_executor_.get());
- SetDisableInputs(false);
+ PauseSession(false);
// Create a VideoEncoder based on the session's video channel configuration.
scoped_ptr<VideoEncoder> video_encoder =
@@ -283,14 +283,14 @@ void ClientSession::OnLocalMouseMoved(const SkIPoint& position) {
remote_input_filter_.LocalMouseMoved(position);
}
-void ClientSession::SetDisableInputs(bool disable_inputs) {
+void ClientSession::PauseSession(bool pause) {
DCHECK(CalledOnValidThread());
- if (disable_inputs)
+ if (pause)
input_tracker_.ReleaseAll();
- disable_input_filter_.set_enabled(!disable_inputs);
- disable_clipboard_filter_.set_enabled(!disable_inputs);
+ disable_input_filter_.set_enabled(!pause);
+ disable_clipboard_filter_.set_enabled(!pause);
}
scoped_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() {

Powered by Google App Engine
This is Rietveld 408576698