OLD | NEW |
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 #include "remoting/host/ui_strings.h" | 12 #include "remoting/host/ui_strings.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 class HostWindow; | 16 class HostWindow; |
17 class LocalInputMonitor; | 17 class LocalInputMonitor; |
18 | 18 |
19 // Used to create audio/video capturers and event executor that work with | 19 // Used to create audio/video capturers and event executor that work with |
20 // the local console. | 20 // the local console. |
21 class BasicDesktopEnvironment : public DesktopEnvironment { | 21 class BasicDesktopEnvironment : public DesktopEnvironment { |
22 public: | 22 public: |
23 virtual ~BasicDesktopEnvironment(); | 23 virtual ~BasicDesktopEnvironment(); |
24 | 24 |
25 // DesktopEnvironment implementation. | 25 // DesktopEnvironment implementation. |
26 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 26 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
27 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 27 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
28 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 28 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
29 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; | 29 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; |
| 30 virtual Capabilities GetCapabilities() const OVERRIDE; |
| 31 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE; |
30 | 32 |
31 protected: | 33 protected: |
32 friend class BasicDesktopEnvironmentFactory; | 34 friend class BasicDesktopEnvironmentFactory; |
33 | 35 |
34 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that | 36 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that |
35 // created |this|. |ui_strings| must outlive this object. | 37 // created |this|. |ui_strings| must outlive this object. |
36 BasicDesktopEnvironment( | 38 BasicDesktopEnvironment( |
37 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 39 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
38 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 40 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
39 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 41 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 122 |
121 // Contains a copy of the localized UI strings. | 123 // Contains a copy of the localized UI strings. |
122 const UiStrings ui_strings_; | 124 const UiStrings ui_strings_; |
123 | 125 |
124 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); | 126 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
125 }; | 127 }; |
126 | 128 |
127 } // namespace remoting | 129 } // namespace remoting |
128 | 130 |
129 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 131 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |