| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/protocol/fake_desktop_capturer.h" | 5 #include "remoting/protocol/fake_desktop_capturer.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 if (frame) { | 152 if (frame) { |
| 153 frame->set_capture_time_ms( | 153 frame->set_capture_time_ms( |
| 154 (base::Time::Now() - capture_start_time).InMillisecondsRoundedUp()); | 154 (base::Time::Now() - capture_start_time).InMillisecondsRoundedUp()); |
| 155 } | 155 } |
| 156 callback_->OnCaptureResult( | 156 callback_->OnCaptureResult( |
| 157 frame ? webrtc::DesktopCapturer::Result::SUCCESS | 157 frame ? webrtc::DesktopCapturer::Result::SUCCESS |
| 158 : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY, | 158 : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY, |
| 159 std::move(frame)); | 159 std::move(frame)); |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool FakeDesktopCapturer::GetSourceList(SourceList* sources) { |
| 163 NOTIMPLEMENTED(); |
| 164 return false; |
| 165 } |
| 166 |
| 167 bool FakeDesktopCapturer::SelectSource(SourceId id) { |
| 168 NOTIMPLEMENTED(); |
| 169 return false; |
| 170 } |
| 171 |
| 162 } // namespace protocol | 172 } // namespace protocol |
| 163 } // namespace remoting | 173 } // namespace remoting |
| OLD | NEW |