| 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 #include "remoting/host/basic_desktop_environment.h" | 5 #include "remoting/host/basic_desktop_environment.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 std::string BasicDesktopEnvironment::GetCapabilities() const { | 58 std::string BasicDesktopEnvironment::GetCapabilities() const { |
| 59 if (supports_touch_events_) | 59 if (supports_touch_events_) |
| 60 return protocol::kTouchEventsCapability; | 60 return protocol::kTouchEventsCapability; |
| 61 | 61 |
| 62 return std::string(); | 62 return std::string(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void BasicDesktopEnvironment::SetCapabilities(const std::string& capabilities) { | 65 void BasicDesktopEnvironment::SetCapabilities(const std::string& capabilities) { |
| 66 } | 66 } |
| 67 | 67 |
| 68 uint32_t BasicDesktopEnvironment::GetDesktopSessionId() const { |
| 69 return UINT32_MAX; |
| 70 } |
| 71 |
| 68 std::unique_ptr<webrtc::DesktopCapturer> | 72 std::unique_ptr<webrtc::DesktopCapturer> |
| 69 BasicDesktopEnvironment::CreateVideoCapturer() { | 73 BasicDesktopEnvironment::CreateVideoCapturer() { |
| 70 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 74 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
| 71 | 75 |
| 72 return base::WrapUnique(new DesktopCapturerProxy(video_capture_task_runner_, | 76 return base::WrapUnique(new DesktopCapturerProxy(video_capture_task_runner_, |
| 73 *desktop_capture_options_)); | 77 *desktop_capture_options_)); |
| 74 } | 78 } |
| 75 | 79 |
| 76 BasicDesktopEnvironment::BasicDesktopEnvironment( | 80 BasicDesktopEnvironment::BasicDesktopEnvironment( |
| 77 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 81 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 105 | 109 |
| 106 BasicDesktopEnvironmentFactory::~BasicDesktopEnvironmentFactory() {} | 110 BasicDesktopEnvironmentFactory::~BasicDesktopEnvironmentFactory() {} |
| 107 | 111 |
| 108 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { | 112 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { |
| 109 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 113 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
| 110 | 114 |
| 111 return AudioCapturer::IsSupported(); | 115 return AudioCapturer::IsSupported(); |
| 112 } | 116 } |
| 113 | 117 |
| 114 } // namespace remoting | 118 } // namespace remoting |
| OLD | NEW |