Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: content/renderer/media/media_stream_constraints_util_video_source.h

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: videoKind string constants removed from header. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_SOURCE_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const VideoCaptureSourceSettings& other); 45 const VideoCaptureSourceSettings& other);
46 VideoCaptureSourceSettings& operator=(VideoCaptureSourceSettings&& other); 46 VideoCaptureSourceSettings& operator=(VideoCaptureSourceSettings&& other);
47 47
48 // Accessors for easier interaction with blink constraint classes. 48 // Accessors for easier interaction with blink constraint classes.
49 blink::WebString GetFacingMode() const; 49 blink::WebString GetFacingMode() const;
50 long GetPowerLineFrequency() const; 50 long GetPowerLineFrequency() const;
51 long GetWidth() const; 51 long GetWidth() const;
52 long GetHeight() const; 52 long GetHeight() const;
53 double GetFrameRate() const; 53 double GetFrameRate() const;
54 blink::WebString GetDeviceId() const; 54 blink::WebString GetDeviceId() const;
55 blink::WebString GetVideoKind() const;
55 56
56 const media::VideoCaptureFormat& format() const { return format_; } 57 const media::VideoCaptureFormat& format() const { return format_; }
57 const std::string& device_id() const { return device_id_; } 58 const std::string& device_id() const { return device_id_; }
58 ::mojom::FacingMode facing_mode() const { return facing_mode_; } 59 ::mojom::FacingMode facing_mode() const { return facing_mode_; }
59 media::PowerLineFrequency power_line_frequency() const { 60 media::PowerLineFrequency power_line_frequency() const {
60 return power_line_frequency_; 61 return power_line_frequency_;
61 } 62 }
62 63
63 private: 64 private:
64 std::string device_id_; 65 std::string device_id_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // settings that include the device ID, power-line frequency, resolution, and 147 // settings that include the device ID, power-line frequency, resolution, and
147 // frame rate, in that order. Note that there is no default facing mode or 148 // frame rate, in that order. Note that there is no default facing mode or
148 // aspect ratio. 149 // aspect ratio.
149 VideoCaptureSourceSelectionResult CONTENT_EXPORT 150 VideoCaptureSourceSelectionResult CONTENT_EXPORT
150 SelectVideoCaptureSourceSettings(const VideoCaptureCapabilities& capabilities, 151 SelectVideoCaptureSourceSettings(const VideoCaptureCapabilities& capabilities,
151 const blink::WebMediaConstraints& constraints); 152 const blink::WebMediaConstraints& constraints);
152 153
153 } // namespace content 154 } // namespace content
154 155
155 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_SOURCE_H_ 156 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698