DescriptionMinor refactoring of support classes for video-device constraints.
1. Replace "VideoSource" with "VideoDeviceSource" in class and struct names.
In addition to device-capture video sources there are modules in
preparation for content-capture video sources and video tracks.
Since content-capture sources are also sources, the video_source name
is more general than it should be.
2. Replace "video_source" with "video_device" in file names.
Same reason as above. Not using "video_device_source" because it
would result in names that are too long, resulting in #includes
and #defines lines that have more than 80 columns.
3. Fix a minor style violation.
The method has_value should have been HasValue since it is not exactly
an accessor.
4. Move a few general functions to media_stream_constraints_util.h since
they will be used by the upcoming modules.
5. Move the Settings type to the .cc file. Work with modules in follow-up CLs has shown that it is more convenient to return the result in the types that are expected by other content classes rather than introduce a new class that will need to be translated. (e.g., translating from Settings to media::VideoCaptureParams).
BUG=657733
Review-Url: https://codereview.chromium.org/2707203006
Cr-Commit-Position: refs/heads/master@{#452834}
Committed: https://chromium.googlesource.com/chromium/src/+/3badfc1687f2db393cec360febe0dbcf38522447
Patch Set 1 : rebase #Patch Set 2 : move Settings type to .cc file #
Total comments: 2
Patch Set 3 : hbos comment + fix in accessor #Dependent Patchsets: Messages
Total messages: 28 (21 generated)
|