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

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

Issue 286673003: MediaStream API: Patch #3 of implementing navigator.getMediaDevices (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add WillBeGarbageCollected attribute to MediaDeviceInfo. Created 6 years, 6 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 8913dd5f8fe91a589bb622841c717d30c85f214d..1698fc77a88413d67d559e56f2bfa852c47ffd34 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,12 +23,18 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum MediaDeviceKind {
+ "audioinput",
+ "audiooutput",
+ "videoinput"
+};
+
[
WillBeGarbageCollected,
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;
};
« no previous file with comments | « LayoutTests/fast/mediastream/getMediaDevices-expected.txt ('k') | Source/modules/mediastream/MediaDeviceInfoCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698