Bug 151394 - MediaStream: Implement MediaDevices.getSupportedConstraints
Summary: MediaStream: Implement MediaDevices.getSupportedConstraints
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks: 143211
  Show dependency treegraph
 
Reported: 2015-11-18 10:43 PST by Eric Carlson
Modified: 2015-11-18 17:25 PST (History)
2 users (show)

See Also:


Attachments
Patch for the bots. (45.76 KB, patch)
2015-11-18 11:15 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Updated patch for the bots. (44.46 KB, patch)
2015-11-18 12:17 PST, Eric Carlson
no flags Details | Formatted Diff | Diff
Another updated patch. (45.02 KB, patch)
2015-11-18 14:14 PST, Eric Carlson
bfulgham: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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