| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/renderer/media/media_stream_constraints_util.h" | 11 #include "content/renderer/media/media_stream_constraints_util.h" |
| 12 #include "third_party/webrtc/base/optional.h" | 12 #include "third_party/webrtc/base/optional.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 class WebMediaConstraints; | 15 class WebMediaConstraints; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 CONTENT_EXPORT extern const int kMinScreenCastDimension; | 20 CONTENT_EXPORT extern const int kMinScreenCastDimension; |
| 21 CONTENT_EXPORT extern const int kMaxScreenCastDimension; | 21 CONTENT_EXPORT extern const int kMaxScreenCastDimension; |
| 22 CONTENT_EXPORT extern const int kDefaultScreenCastWidth; | 22 CONTENT_EXPORT extern const int kDefaultScreenCastWidth; |
| 23 CONTENT_EXPORT extern const int kDefaultScreenCastHeight; | 23 CONTENT_EXPORT extern const int kDefaultScreenCastHeight; |
| 24 CONTENT_EXPORT extern const double kDefaultScreenCastAspectRatio; | 24 CONTENT_EXPORT extern const double kDefaultScreenCastAspectRatio; |
| 25 | 25 |
| 26 CONTENT_EXPORT extern const double kMinScreenCastFrameRate; |
| 26 CONTENT_EXPORT extern const double kMaxScreenCastFrameRate; | 27 CONTENT_EXPORT extern const double kMaxScreenCastFrameRate; |
| 27 CONTENT_EXPORT extern const double kDefaultScreenCastFrameRate; | 28 CONTENT_EXPORT extern const double kDefaultScreenCastFrameRate; |
| 28 | 29 |
| 29 // This function performs source, source-settings and track-settings selection | 30 // This function performs source, source-settings and track-settings selection |
| 30 // for content video capture based on the given |constraints|. | 31 // for content video capture based on the given |constraints|. |
| 31 VideoCaptureSettings CONTENT_EXPORT | 32 VideoCaptureSettings CONTENT_EXPORT |
| 32 SelectSettingsVideoContentCapture(const blink::WebMediaConstraints& constraints, | 33 SelectSettingsVideoContentCapture(const blink::WebMediaConstraints& constraints, |
| 33 const std::string& stream_source); | 34 const std::string& stream_source); |
| 34 | 35 |
| 35 } // namespace content | 36 } // namespace content |
| 36 | 37 |
| 37 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ | 38 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
| OLD | NEW |