Bug 151394

Summary: MediaStream: Implement MediaDevices.getSupportedConstraints
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 143211    
Attachments:
Description Flags
Patch for the bots.
none
Updated patch for the bots.
none
Another updated patch. bfulgham: review+

Description Eric Carlson 2015-11-18 10:43:39 PST
Implement it.
Comment 1 Radar WebKit Bug Importer 2015-11-18 10:46:02 PST
<rdar://problem/23596124>
Comment 2 Eric Carlson 2015-11-18 11:15:35 PST
Created attachment 265758 [details]
Patch for the bots.
Comment 3 WebKit Commit Bot 2015-11-18 12:03:20 PST
Attachment 265758 [details] did not pass style-queue:


ERROR: Source/WebCore/bindings/js/JSMediaTrackSupportedConstraintsCustom.cpp:55:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:39:  Should have a space between // and comment  [whitespace/comments] [4]
ERROR: Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:41:  Should have a space between // and comment  [whitespace/comments] [4]
ERROR: Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:54:  Should have a space between // and comment  [whitespace/comments] [4]
ERROR: Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:57:  Should have a space between // and comment  [whitespace/comments] [4]
Total errors found: 5 in 20 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Eric Carlson 2015-11-18 12:17:55 PST
Created attachment 265772 [details]
Updated patch for the bots.
Comment 5 WebKit Commit Bot 2015-11-18 12:29:50 PST
Attachment 265772 [details] did not pass style-queue:


ERROR: Source/WebCore/bindings/js/JSMediaTrackSupportedConstraintsCustom.cpp:55:  Multi line control clauses should use braces.  [whitespace/braces] [4]
Total errors found: 1 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Eric Carlson 2015-11-18 14:14:41 PST
Created attachment 265777 [details]
Another updated patch.
Comment 7 WebKit Commit Bot 2015-11-18 14:16:31 PST
Attachment 265777 [details] did not pass style-queue:


ERROR: Source/WebCore/bindings/js/JSMediaTrackSupportedConstraintsCustom.cpp:55:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/PlatformGTK.cmake:687:  Alphabetical sorting problem. "Modules/mediastream/MediaTrackSupportedConstraints.idl" should be before "Modules/mediastream/NavigatorMediaDevices.idl".  [list/order] [5]
Total errors found: 2 in 20 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Brent Fulgham 2015-11-18 17:12:46 PST
Comment on attachment 265777 [details]
Another updated patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=265777&action=review

r=me.

> Source/WebCore/platform/mediastream/RealtimeMediaSourceSupportedConstraints.h:51
> +        , m_supportsGroupId(false)

Why not use C++11 initializers down where you declare these guys?

> Source/WebCore/platform/mock/MockRealtimeMediaSource.cpp:-87
> -

Nice! :-)
Comment 9 Eric Carlson 2015-11-18 17:25:01 PST
(In reply to comment #8)
> Comment on attachment 265777 [details]
> Another updated patch.
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=265777&action=review
> 
> r=me.
> 
> > Source/WebCore/platform/mediastream/RealtimeMediaSourceSupportedConstraints.h:51
> > +        , m_supportsGroupId(false)
> 
> Why not use C++11 initializers down where you declare these guys?
> 
Good idea, done.

Thanks!
Comment 10 Eric Carlson 2015-11-18 17:25:24 PST
Committed r192602: https://trac.webkit.org/r192602