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 "remoting/host/desktop_environment.h" | 8 #include "remoting/host/desktop_environment.h" |
9 #include "remoting/host/fake_desktop_capturer.h" | 9 #include "remoting/host/fake_desktop_capturer.h" |
10 #include "remoting/host/fake_mouse_cursor_monitor.h" | 10 #include "remoting/host/fake_mouse_cursor_monitor.h" |
11 #include "remoting/host/input_injector.h" | 11 #include "remoting/host/input_injector.h" |
12 #include "remoting/host/screen_controls.h" | 12 #include "remoting/host/screen_controls.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 class FakeInputInjector : public InputInjector { | 16 class FakeInputInjector : public InputInjector { |
17 public: | 17 public: |
18 FakeInputInjector(); | 18 FakeInputInjector(); |
19 ~FakeInputInjector() override; | 19 ~FakeInputInjector() override; |
20 | 20 |
21 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; | 21 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; |
22 void InjectKeyEvent(const protocol::KeyEvent& event) override; | 22 void InjectKeyEvent(const protocol::KeyEvent& event) override; |
23 void InjectTextEvent(const protocol::TextEvent& event) override; | 23 void InjectTextEvent(const protocol::TextEvent& event) override; |
24 void InjectMouseEvent(const protocol::MouseEvent& event) override; | 24 void InjectMouseEvent(const protocol::MouseEvent& event) override; |
| 25 void InjectTouchEvent(const protocol::TouchEvent& event) override; |
25 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 26 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
26 }; | 27 }; |
27 | 28 |
28 class FakeScreenControls : public ScreenControls { | 29 class FakeScreenControls : public ScreenControls { |
29 public: | 30 public: |
30 FakeScreenControls(); | 31 FakeScreenControls(); |
31 ~FakeScreenControls() override; | 32 ~FakeScreenControls() override; |
32 | 33 |
33 // ScreenControls implementation. | 34 // ScreenControls implementation. |
34 void SetScreenResolution(const ScreenResolution& resolution) override; | 35 void SetScreenResolution(const ScreenResolution& resolution) override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 85 |
85 private: | 86 private: |
86 FakeDesktopCapturer::FrameGenerator frame_generator_; | 87 FakeDesktopCapturer::FrameGenerator frame_generator_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory); | 89 DISALLOW_COPY_AND_ASSIGN(FakeDesktopEnvironmentFactory); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace remoting | 92 } // namespace remoting |
92 | 93 |
93 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ | 94 #endif // REMOTING_HOST_FAKE_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |