Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(11)

Issue 1184743002: Implement enumerateDevices() according to spec. (Closed)

Created:
4 years, 10 months ago by Guido Urdaneta
Modified:
4 years, 10 months ago
CC:
blink-reviews, tommyw+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : First round of peter's comments #

Patch Set 3 : Add simple layout test for enumerateDevices #

Patch Set 4 : Use own flag for enumerateDevices() #

Patch Set 5 : rebase #

Patch Set 6 : Fix expected output of global interface listing test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -116 lines) Patch
A LayoutTests/fast/mediastream/MediaDevices-enumerateDevices.html View 1 2 1 chunk +23 lines, -0 lines 1 comment Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
D Source/modules/mediastream/MediaDeviceInfoCallback.h View 1 chunk +0 lines, -43 lines 0 comments Download
D Source/modules/mediastream/MediaDeviceInfoCallback.idl View 1 chunk +0 lines, -29 lines 0 comments Download
A Source/modules/mediastream/MediaDevices.h View 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/mediastream/MediaDevices.cpp View 1 1 chunk +29 lines, -0 lines 0 comments Download
A Source/modules/mediastream/MediaDevices.idl View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaDevicesRequest.h View 3 chunks +7 lines, -7 lines 0 comments Download
M Source/modules/mediastream/MediaDevicesRequest.cpp View 2 chunks +20 lines, -12 lines 1 comment Download
M Source/modules/mediastream/NavigatorMediaStream.cpp View 2 chunks +0 lines, -19 lines 0 comments Download
A Source/modules/mediastream/NavigatorUserMedia.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/mediastream/NavigatorUserMedia.cpp View 1 1 chunk +50 lines, -0 lines 0 comments Download
A + Source/modules/mediastream/NavigatorUserMedia.idl View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 4 chunks +6 lines, -2 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Guido Urdaneta
Hi, Please review.
4 years, 10 months ago (2015-06-12 18:29:19 UTC) #3
Mike West
On 2015/06/12 at 18:29:19, guidou wrote: > Hi, > > Please review. Same question as ...
4 years, 10 months ago (2015-06-15 08:10:54 UTC) #4
Guido Urdaneta
On 2015/06/15 08:10:54, Mike West wrote: > On 2015/06/12 at 18:29:19, guidou wrote: > > ...
4 years, 10 months ago (2015-06-15 08:58:43 UTC) #5
Mike West
On 2015/06/15 at 08:58:43, guidou wrote: > On 2015/06/15 08:10:54, Mike West wrote: > > ...
4 years, 10 months ago (2015-06-15 10:45:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184743002/60001
4 years, 10 months ago (2015-06-15 11:00:04 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66595)
4 years, 10 months ago (2015-06-15 12:33:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184743002/80001
4 years, 10 months ago (2015-06-15 14:20:19 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66621)
4 years, 10 months ago (2015-06-15 16:14:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184743002/80001
4 years, 10 months ago (2015-06-15 19:20:31 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66689)
4 years, 10 months ago (2015-06-15 21:15:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1184743002/100001
4 years, 10 months ago (2015-06-17 00:32:00 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197213
4 years, 10 months ago (2015-06-17 00:37:05 UTC) #23
Henrik Grunell
Took a look after commit. lgtm
4 years, 10 months ago (2015-06-17 10:39:24 UTC) #25
Peter Beverloo
4 years, 10 months ago (2015-06-18 14:28:50 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1184743002/diff/100001/LayoutTests/fast/media...
File LayoutTests/fast/mediastream/MediaDevices-enumerateDevices.html (right):

https://codereview.chromium.org/1184743002/diff/100001/LayoutTests/fast/media...
LayoutTests/fast/mediastream/MediaDevices-enumerateDevices.html:1: <!DOCTYPE
HTML PUBLIC "-//IETF//DTD HTML//EN">
nit: Please use

<!doctype html> (or <!DOCTYPE HTML>) as the doctype.

https://codereview.chromium.org/1184743002/diff/100001/Source/modules/mediast...
File Source/modules/mediastream/MediaDevicesRequest.cpp (right):

https://codereview.chromium.org/1184743002/diff/100001/Source/modules/mediast...
Source/modules/mediastream/MediaDevicesRequest.cpp:74: return
ScriptPromise::rejectWithDOMException(m_resolver->scriptState(),
DOMException::create(NotSupportedError, "No media device controller
available"));
I'd still like to know when this occurs (dito with the rejection in
MediaDevices::enumerateDevices()).

Especially this one feels like it should be an ASSERT() in our code rather than
Web exposed behavior. If I were a Web developer and I received this message,
what would I do with it?

Powered by Google App Engine
This is Rietveld 408576698