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

Unified Diff: content/common/media/media_devices.mojom

Issue 2380793002: Migrate MediaDevices.enumerateDevices to Mojo (Closed)
Patch Set: add missing file Created 4 years, 3 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: content/common/media/media_devices.mojom
diff --git a/content/common/media/media_devices.mojom b/content/common/media/media_devices.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..d0d92d26df3264ff9bc7dd2b6b6573e475ed6b35
--- /dev/null
+++ b/content/common/media/media_devices.mojom
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojom;
+
+import "url/mojo/origin.mojom";
+
+[Native]
+enum MediaDeviceType;
+
+[Native]
+struct MediaDeviceInfo;
+
+// This object lives in the browser and takes care processing device enumeration
+// requests. TODO(guidou): Add support for device-change notifications.
hta - Chromium 2016/09/30 08:38:12 Style: TODO on separate line.
Guido Urdaneta 2016/10/07 17:07:13 Done.
+interface MediaDevicesDispatcherHost {
+ // The reply always contains NUM_MEDIA_DEVICE_TYPES elements.
+ // Use MediaDeviceType values to index the result.
hta - Chromium 2016/09/30 08:38:12 Would it be more correct to say "The result is ind
Guido Urdaneta 2016/10/07 17:07:13 Done.
+ EnumerateDevices(
+ bool request_audio_input,
+ bool request_video_input,
+ bool request_audio_output,
+ url.mojom.Origin security_origin) => (array<array<MediaDeviceInfo>> enumeration);
+};

Powered by Google App Engine
This is Rietveld 408576698