Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_ | |
| 6 #define REMOTING_PROTOCOL_VIDEO_STREAM_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 | |
| 10 namespace webrtc { | |
| 11 class DesktopSize; | |
| 12 } // namespace webrtc | |
| 13 | |
| 14 namespace remoting { | |
| 15 namespace protocol { | |
| 16 | |
| 17 class VideoStream { | |
| 18 public: | |
| 19 // Callback used to notify about screen size changes. | |
| 20 typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback; | |
| 21 | |
| 22 VideoStream() {} | |
| 23 virtual ~VideoStream() {} | |
| 24 | |
| 25 // Pauses or resumes scheduling of frame captures. Pausing/resuming captures | |
| 26 // only affects capture scheduling and does not stop/start the capturer. | |
| 27 virtual void Pause(bool pause) = 0; | |
| 28 | |
| 29 // Should be called whenever input event is received. | |
|
Jamie
2015/11/25 01:32:46
s/input/an input/
Sergey Ulanov
2015/11/27 22:11:34
Done.
| |
| 30 virtual void OnInputEventReceived(int64_t event_timestamp) = 0; | |
| 31 | |
| 32 // Sets whether the video encoder should be requested to encode losslessly, | |
| 33 // or to use a lossless color space (typically requiring higher bandwidth). | |
| 34 virtual void SetLosslessEncode(bool want_lossless) = 0; | |
| 35 virtual void SetLosslessColor(bool want_lossless) = 0; | |
| 36 | |
| 37 // Sets SizeCallback to be called when screen size is changed. | |
| 38 virtual void SetSizeCallback(const SizeCallback& size_callback) = 0; | |
| 39 }; | |
| 40 | |
| 41 } // namespace protocol | |
| 42 } // namespace remoting | |
| 43 | |
| 44 #endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_ | |
| OLD | NEW |