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

Issue 2707203006: Minor refactoring of support classes for video-device constraints. (Closed)

Created:
3 years, 9 months ago by Guido Urdaneta
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minor 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+540 lines, -2760 lines) Patch
M content/renderer/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util.h View 1 chunk +24 lines, -0 lines 0 comments Download
A + content/renderer/media/media_stream_constraints_util_video_device.h View 1 2 3 chunks +43 lines, -61 lines 0 comments Download
A + content/renderer/media/media_stream_constraints_util_video_device.cc View 1 2 11 chunks +106 lines, -106 lines 0 comments Download
A + content/renderer/media/media_stream_constraints_util_video_device_unittest.cc View 1 31 chunks +353 lines, -354 lines 0 comments Download
D content/renderer/media/media_stream_constraints_util_video_source.h View 1 chunk +0 lines, -161 lines 0 comments Download
D content/renderer/media/media_stream_constraints_util_video_source.cc View 1 chunk +0 lines, -752 lines 0 comments Download
D content/renderer/media/media_stream_constraints_util_video_source_unittest.cc View 1 chunk +0 lines, -1313 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/user_media_client_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 4 chunks +7 lines, -6 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (21 generated)
Guido Urdaneta
Hi, PTAL
3 years, 9 months ago (2017-02-24 09:40:16 UTC) #12
hbos_chromium
lgtm https://codereview.chromium.org/2707203006/diff/60001/content/renderer/media/media_stream_constraints_util_video_device.h File content/renderer/media/media_stream_constraints_util_video_device.h (right): https://codereview.chromium.org/2707203006/diff/60001/content/renderer/media/media_stream_constraints_util_video_device.h#newcode66 content/renderer/media/media_stream_constraints_util_video_device.h:66: } Here you use names like Width() but ...
3 years, 9 months ago (2017-02-24 11:28:57 UTC) #13
Guido Urdaneta
https://codereview.chromium.org/2707203006/diff/60001/content/renderer/media/media_stream_constraints_util_video_device.h File content/renderer/media/media_stream_constraints_util_video_device.h (right): https://codereview.chromium.org/2707203006/diff/60001/content/renderer/media/media_stream_constraints_util_video_device.h#newcode66 content/renderer/media/media_stream_constraints_util_video_device.h:66: } On 2017/02/24 11:28:57, hbos_chromium wrote: > Here you ...
3 years, 9 months ago (2017-02-24 13:13:44 UTC) #17
Guido Urdaneta
avi@: can you rs? (Feel free to look at everything, of course).
3 years, 9 months ago (2017-02-24 13:14:46 UTC) #21
Avi (use Gerrit)
lgtm stampity stamp
3 years, 9 months ago (2017-02-24 15:41:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2707203006/80001
3 years, 9 months ago (2017-02-24 15:42:00 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-02-24 15:47:19 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3badfc1687f2db393cec360febe0...

Powered by Google App Engine
This is Rietveld 408576698