diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 18:34:40 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 18:34:40 +0000 |
commit | b167a7bc288a14b10f95a7ccb3fcbb2937f35d1c (patch) | |
tree | 7460281b5f45799c12e93e7594312a382124710e /remoting/host/desktop_session_agent.cc | |
parent | 89c42ab7cf12cbc07af1fc0e0921527e3e8b323c (diff) | |
download | chromium_src-b167a7bc288a14b10f95a7ccb3fcbb2937f35d1c.zip chromium_src-b167a7bc288a14b10f95a7ccb3fcbb2937f35d1c.tar.gz chromium_src-b167a7bc288a14b10f95a7ccb3fcbb2937f35d1c.tar.bz2 |
DesktopEnvironment is now responsible for creation of the local input monitor.
LocalInputMonitor instances use the ClientSessionControl interface to pass notification about local mouse movements and to disconnect the client session when the disconnect shortcut (Ctrl+Alt+Esc) is pressed.
This CL also completely removes the MouseMoveObserver interface (along with its implementation in ChromotingHost) since it is not used any more.
BUG=104544
Review URL: https://chromiumcodereview.appspot.com/12594009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/desktop_session_agent.cc')
-rw-r--r-- | remoting/host/desktop_session_agent.cc | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc index be78c87..8c90842 100644 --- a/remoting/host/desktop_session_agent.cc +++ b/remoting/host/desktop_session_agent.cc @@ -17,7 +17,6 @@ #include "remoting/host/desktop_environment.h" #include "remoting/host/disconnect_window.h" #include "remoting/host/input_injector.h" -#include "remoting/host/local_input_monitor.h" #include "remoting/host/remote_input_filter.h" #include "remoting/host/screen_controls.h" #include "remoting/host/screen_resolution.h" @@ -71,7 +70,6 @@ DesktopSessionAgent::~DesktopSessionAgent() { DCHECK(!audio_capturer_); DCHECK(!desktop_environment_); DCHECK(!disconnect_window_); - DCHECK(!local_input_monitor_); DCHECK(!network_channel_); DCHECK(!screen_controls_); DCHECK(!video_capturer_); @@ -198,7 +196,6 @@ void DesktopSessionAgent::OnStartSessionAgent( DCHECK(!desktop_environment_); DCHECK(!disconnect_window_); DCHECK(!input_injector_); - DCHECK(!local_input_monitor_); DCHECK(!screen_controls_); DCHECK(!video_capturer_); @@ -232,19 +229,11 @@ void DesktopSessionAgent::OnStartSessionAgent( input_injector_->Start(clipboard_stub.Pass()); // Create the disconnect window. - base::Closure disconnect_session = - base::Bind(&DesktopSessionAgent::DisconnectSession, this); disconnect_window_ = DisconnectWindow::Create(&ui_strings_); disconnect_window_->Show( - disconnect_session, + base::Bind(&DesktopSessionAgent::DisconnectSession, this), authenticated_jid.substr(0, authenticated_jid.find('/'))); - // Start monitoring local input. - local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner_, - input_task_runner_, - caller_task_runner_); - local_input_monitor_->Start(this, disconnect_session); - // Start the audio capturer. if (delegate_->desktop_environment_factory().SupportsAudioCapture()) { audio_capturer_ = desktop_environment_->CreateAudioCapturer(); @@ -347,19 +336,15 @@ void DesktopSessionAgent::Stop() { control_factory_.InvalidateWeakPtrs(); client_jid_.clear(); - // Stop monitoring to local input. - local_input_monitor_->Stop(); - local_input_monitor_.reset(); - remote_input_filter_.reset(); // Ensure that any pressed keys or buttons are released. input_tracker_->ReleaseAll(); input_tracker_.reset(); + desktop_environment_.reset(); input_injector_.reset(); screen_controls_.reset(); - desktop_environment_.reset(); // Stop the audio capturer. audio_capture_task_runner()->PostTask( |