OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FAKE_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ |
6 #define REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/single_thread_task_runner.h" |
14 #include "remoting/host/desktop_environment.h" | 16 #include "remoting/host/desktop_environment.h" |
15 #include "remoting/host/fake_mouse_cursor_monitor.h" | 17 #include "remoting/host/fake_mouse_cursor_monitor.h" |
16 #include "remoting/host/input_injector.h" | 18 #include "remoting/host/input_injector.h" |
17 #include "remoting/host/screen_controls.h" | 19 #include "remoting/host/screen_controls.h" |
18 #include "remoting/protocol/fake_desktop_capturer.h" | 20 #include "remoting/protocol/fake_desktop_capturer.h" |
19 | 21 |
20 namespace remoting { | 22 namespace remoting { |
21 | 23 |
22 class FakeInputInjector : public InputInjector, | 24 class FakeInputInjector : public InputInjector, |
23 public base::SupportsWeakPtr<FakeInputInjector> { | 25 public base::SupportsWeakPtr<FakeInputInjector> { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 protocol::FakeDesktopCapturer::FrameGenerator frame_generator_; | 136 protocol::FakeDesktopCapturer::FrameGenerator frame_generator_; |
135 | 137 |
136 base::WeakPtr<FakeDesktopEnvironment> last_desktop_environment_; | 138 base::WeakPtr<FakeDesktopEnvironment> last_desktop_environment_; |
137 | 139 |
138 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory); | 140 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory); |
139 }; | 141 }; |
140 | 142 |
141 } // namespace remoting | 143 } // namespace remoting |
142 | 144 |
143 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ | 145 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |