OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module mojom; |
| 6 |
| 7 import "url/mojo/origin.mojom"; |
| 8 |
| 9 [Native] |
| 10 enum MediaDeviceType; |
| 11 |
| 12 [Native] |
| 13 struct MediaDeviceInfo; |
| 14 |
| 15 // This object lives in the browser and is responsible for processing device |
| 16 // enumeration requests. |
| 17 // TODO(guidou): Add support for device-change notifications. |
| 18 interface MediaDevicesDispatcherHost { |
| 19 // The reply always contains NUM_MEDIA_DEVICE_TYPES elements. |
| 20 // The result is indexed by device type as defined in |
| 21 // content/common/media/media_devices.h. |
| 22 EnumerateDevices(bool request_audio_input, |
| 23 bool request_video_input, |
| 24 bool request_audio_output, |
| 25 url.mojom.Origin security_origin) |
| 26 => (array<array<MediaDeviceInfo>> enumeration); |
| 27 }; |
OLD | NEW |