| 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 <cstdint> |
| 8 #include <memory> | 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "remoting/host/desktop_environment.h" | 15 #include "remoting/host/desktop_environment.h" |
| 15 | 16 |
| 16 namespace webrtc { | 17 namespace webrtc { |
| 17 | 18 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 | 30 |
| 30 // DesktopEnvironment implementation. | 31 // DesktopEnvironment implementation. |
| 31 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; | 32 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; |
| 32 std::unique_ptr<InputInjector> CreateInputInjector() override; | 33 std::unique_ptr<InputInjector> CreateInputInjector() override; |
| 33 std::unique_ptr<ScreenControls> CreateScreenControls() override; | 34 std::unique_ptr<ScreenControls> CreateScreenControls() override; |
| 34 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; | 35 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; |
| 35 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() | 36 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() |
| 36 override; | 37 override; |
| 37 std::string GetCapabilities() const override; | 38 std::string GetCapabilities() const override; |
| 38 void SetCapabilities(const std::string& capabilities) override; | 39 void SetCapabilities(const std::string& capabilities) override; |
| 40 uint32_t GetDesktopSessionId() const override; |
| 39 | 41 |
| 40 protected: | 42 protected: |
| 41 friend class BasicDesktopEnvironmentFactory; | 43 friend class BasicDesktopEnvironmentFactory; |
| 42 | 44 |
| 43 BasicDesktopEnvironment( | 45 BasicDesktopEnvironment( |
| 44 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 46 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 45 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, | 47 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, |
| 46 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 48 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 47 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 49 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 48 bool supports_touch_events); | 50 bool supports_touch_events); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // True if the touch events capability should be offered by the | 151 // True if the touch events capability should be offered by the |
| 150 // DesktopEnvironment instances. | 152 // DesktopEnvironment instances. |
| 151 bool supports_touch_events_; | 153 bool supports_touch_events_; |
| 152 | 154 |
| 153 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); | 155 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } // namespace remoting | 158 } // namespace remoting |
| 157 | 159 |
| 158 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 160 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |