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

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

Issue 1302793002: Refactor "options" argument to getUserMedia to be a dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/MediaStreamConstraints.idl
diff --git a/Source/modules/geolocation/NavigatorGeolocation.idl b/Source/modules/mediastream/MediaStreamConstraints.idl
similarity index 87%
copy from Source/modules/geolocation/NavigatorGeolocation.idl
copy to Source/modules/mediastream/MediaStreamConstraints.idl
index 9b96fd709daafc4a5aab37a63fa8a1bbc0dd4a27..4ccb4ab02ce1c0b29a40516bfe20cac3876e12cd 100644
--- a/Source/modules/geolocation/NavigatorGeolocation.idl
+++ b/Source/modules/mediastream/MediaStreamConstraints.idl
@@ -17,6 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
-partial interface Navigator {
- readonly attribute Geolocation geolocation;
+dictionary MediaStreamConstraints {
+ (boolean or Dictionary) video = false;
+ (boolean or Dictionary) audio = false;
};

Powered by Google App Engine
This is Rietveld 408576698