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

Unified Diff: Source/modules/mediastream/MediaDevices.idl

Issue 1300833002: Enable MediaDevices.enumerateDevices and let promises-based getUserMedia behind a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update global stable interface listing Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/mediastream/MediaDevices.idl
diff --git a/Source/modules/mediastream/MediaDevices.idl b/Source/modules/mediastream/MediaDevices.idl
index 3052122805405ff36c47f97f68c3bc951bd4c782..265e0dc94bcfccaea0d4707e1cb31e480841f8db 100644
--- a/Source/modules/mediastream/MediaDevices.idl
+++ b/Source/modules/mediastream/MediaDevices.idl
@@ -8,9 +8,9 @@
[
GarbageCollected,
- RuntimeEnabled=EnumerateDevices
+ RuntimeEnabled=MediaDevices
]
interface MediaDevices {
- [RuntimeEnabled=EnumerateDevices, TypeChecking=Interface, CallWith=ScriptState] Promise<sequence<MediaDeviceInfo>> enumerateDevices();
- [CallWith=ScriptState, RaisesException] Promise<MediaStream> getUserMedia(MediaStreamConstraints options);
+ [TypeChecking=Interface, CallWith=ScriptState] Promise<sequence<MediaDeviceInfo>> enumerateDevices();
+ [RuntimeEnabled=GetUserMedia, CallWith=ScriptState, RaisesException] Promise<MediaStream> getUserMedia(MediaStreamConstraints options);
};

Powered by Google App Engine
This is Rietveld 408576698