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

Side by Side Diff: remoting/host/basic_desktop_environment.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/basic_desktop_environment.cc » ('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 #ifndef REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "remoting/host/desktop_environment.h" 11 #include "remoting/host/desktop_environment.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 class LocalInputMonitor;
16
15 // Used to create audio/video capturers and event executor that work with 17 // Used to create audio/video capturers and event executor that work with
16 // the local console. 18 // the local console.
17 class BasicDesktopEnvironment : public DesktopEnvironment { 19 class BasicDesktopEnvironment : public DesktopEnvironment {
18 public: 20 public:
19 virtual ~BasicDesktopEnvironment(); 21 virtual ~BasicDesktopEnvironment();
20 22
21 // DesktopEnvironment implementation. 23 // DesktopEnvironment implementation.
22 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; 24 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE;
23 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; 25 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
24 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; 26 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE;
(...skipping 23 matching lines...) Expand all
48 // Task runner on which methods of DesktopEnvironment interface should be 50 // Task runner on which methods of DesktopEnvironment interface should be
49 // called. 51 // called.
50 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; 52 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_;
51 53
52 // Used to run input-related tasks. 54 // Used to run input-related tasks.
53 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; 55 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
54 56
55 // Used to run UI code. 57 // Used to run UI code.
56 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 58 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
57 59
60 // Notifies the client session about the local mouse movements.
61 scoped_ptr<LocalInputMonitor> local_input_monitor_;
62
58 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment); 63 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment);
59 }; 64 };
60 65
61 // Used to create |BasicDesktopEnvironment| instances. 66 // Used to create |BasicDesktopEnvironment| instances.
62 class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory { 67 class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
63 public: 68 public:
64 BasicDesktopEnvironmentFactory( 69 BasicDesktopEnvironmentFactory(
65 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 70 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
66 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 71 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
67 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 72 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
(...skipping 27 matching lines...) Expand all
95 100
96 // Used to run UI code. 101 // Used to run UI code.
97 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 102 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
98 103
99 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); 104 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory);
100 }; 105 };
101 106
102 } // namespace remoting 107 } // namespace remoting
103 108
104 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ 109 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/basic_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698