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 #include "remoting/host/fake_desktop_environment.h" | 5 #include "remoting/host/fake_desktop_environment.h" |
6 | 6 |
7 #include "remoting/host/audio_capturer.h" | 7 #include "remoting/host/audio_capturer.h" |
8 #include "remoting/host/fake_screen_capturer.h" | 8 #include "remoting/host/fake_screen_capturer.h" |
9 #include "remoting/host/gnubby_auth_handler.h" | 9 #include "remoting/host/gnubby_auth_handler.h" |
10 #include "remoting/host/input_injector.h" | 10 #include "remoting/host/input_injector.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 scoped_ptr<webrtc::ScreenCapturer> | 58 scoped_ptr<webrtc::ScreenCapturer> |
59 FakeDesktopEnvironment::CreateVideoCapturer() { | 59 FakeDesktopEnvironment::CreateVideoCapturer() { |
60 scoped_ptr<FakeScreenCapturer> result(new FakeScreenCapturer()); | 60 scoped_ptr<FakeScreenCapturer> result(new FakeScreenCapturer()); |
61 if (!frame_generator_.is_null()) | 61 if (!frame_generator_.is_null()) |
62 result->set_frame_generator(frame_generator_); | 62 result->set_frame_generator(frame_generator_); |
63 return result.PassAs<webrtc::ScreenCapturer>(); | 63 return result.PassAs<webrtc::ScreenCapturer>(); |
64 } | 64 } |
65 | 65 |
| 66 scoped_ptr<webrtc::MouseCursorMonitor> |
| 67 FakeDesktopEnvironment::CreateMouseCursorMonitor() { |
| 68 return scoped_ptr<webrtc::MouseCursorMonitor>(new FakeMouseCursorMonitor()); |
| 69 } |
| 70 |
66 std::string FakeDesktopEnvironment::GetCapabilities() const { | 71 std::string FakeDesktopEnvironment::GetCapabilities() const { |
67 return std::string(); | 72 return std::string(); |
68 } | 73 } |
69 | 74 |
70 void FakeDesktopEnvironment::SetCapabilities(const std::string& capabilities) {} | 75 void FakeDesktopEnvironment::SetCapabilities(const std::string& capabilities) {} |
71 | 76 |
72 scoped_ptr<GnubbyAuthHandler> FakeDesktopEnvironment::CreateGnubbyAuthHandler( | 77 scoped_ptr<GnubbyAuthHandler> FakeDesktopEnvironment::CreateGnubbyAuthHandler( |
73 protocol::ClientStub* client_stub) { | 78 protocol::ClientStub* client_stub) { |
74 return scoped_ptr<GnubbyAuthHandler>(); | 79 return scoped_ptr<GnubbyAuthHandler>(); |
75 } | 80 } |
(...skipping 12 matching lines...) Expand all Loading... |
88 void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {} | 93 void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {} |
89 | 94 |
90 bool FakeDesktopEnvironmentFactory::SupportsAudioCapture() const { | 95 bool FakeDesktopEnvironmentFactory::SupportsAudioCapture() const { |
91 return false; | 96 return false; |
92 } | 97 } |
93 | 98 |
94 void FakeDesktopEnvironmentFactory::SetEnableGnubbyAuth(bool enable) {} | 99 void FakeDesktopEnvironmentFactory::SetEnableGnubbyAuth(bool enable) {} |
95 | 100 |
96 | 101 |
97 } // namespace remoting | 102 } // namespace remoting |
OLD | NEW |