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

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 12594009: Converted LocalInputMonitor into a SessionController instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « remoting/host/desktop_session_agent.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index be78c87e3672a8bd58a9586b977db408f8cc17b3..8c90842de65307fc4bafefd3ceb17f3ab3f31736 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(
« no previous file with comments | « remoting/host/desktop_session_agent.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698