summaryrefslogtreecommitdiffstats
path: root/remoting/host/basic_desktop_environment.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 18:34:40 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 18:34:40 +0000
commitb167a7bc288a14b10f95a7ccb3fcbb2937f35d1c (patch)
tree7460281b5f45799c12e93e7594312a382124710e /remoting/host/basic_desktop_environment.cc
parent89c42ab7cf12cbc07af1fc0e0921527e3e8b323c (diff)
downloadchromium_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/basic_desktop_environment.cc')
-rw-r--r--remoting/host/basic_desktop_environment.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/remoting/host/basic_desktop_environment.cc b/remoting/host/basic_desktop_environment.cc
index e6d57b7..21d6600 100644
--- a/remoting/host/basic_desktop_environment.cc
+++ b/remoting/host/basic_desktop_environment.cc
@@ -10,6 +10,7 @@
#include "remoting/host/audio_capturer.h"
#include "remoting/host/client_session_control.h"
#include "remoting/host/input_injector.h"
+#include "remoting/host/local_input_monitor.h"
#include "remoting/host/screen_controls.h"
namespace remoting {
@@ -54,6 +55,12 @@ BasicDesktopEnvironment::BasicDesktopEnvironment(
input_task_runner_(input_task_runner),
ui_task_runner_(ui_task_runner) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
+
+ // Create the local input monitor.
+ local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner_,
+ input_task_runner_,
+ ui_task_runner_,
+ client_session_control);
}
BasicDesktopEnvironmentFactory::BasicDesktopEnvironmentFactory(