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

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

Issue 145583015: MediaStream API: Implement Navigator.getMediaDevices Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/MediaDeviceInfo.idl
diff --git a/Source/modules/mediastream/SourceInfo.idl b/Source/modules/mediastream/MediaDeviceInfo.idl
similarity index 82%
copy from Source/modules/mediastream/SourceInfo.idl
copy to Source/modules/mediastream/MediaDeviceInfo.idl
index 814dd65cc4d4238504d0b3df3bec8085e9a770b2..8e4d06691810482e09ce9eb45a5a720b27d0dc85 100644
--- a/Source/modules/mediastream/SourceInfo.idl
+++ b/Source/modules/mediastream/MediaDeviceInfo.idl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,11 +23,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum MediaDeviceKind { "audioinput", "audiooutput", "videoinput" };
abarth-chromium 2014/01/28 06:49:49 Maybe split these onto separate lines?
Tommy Widenflycht 2014/01/28 22:35:02 Done.
+
[
NoInterfaceObject
-] interface SourceInfo {
- readonly attribute DOMString id;
- readonly attribute DOMString kind;
+] interface MediaDeviceInfo {
+ readonly attribute DOMString deviceId;
+ readonly attribute MediaDeviceKind kind;
readonly attribute DOMString label;
- readonly attribute DOMString facing;
+ readonly attribute DOMString groupId;
};

Powered by Google App Engine
This is Rietveld 408576698