OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module video_capture.mojom; | 5 module video_capture.mojom; |
6 | 6 |
7 import "services/video_capture/public/interfaces/mock_video_capture_device.mojom
"; | 7 import "services/video_capture/public/interfaces/mock_device.mojom"; |
8 import "services/video_capture/public/interfaces/video_capture_device_descriptor
.mojom"; | 8 import "services/video_capture/public/interfaces/device_descriptor.mojom"; |
9 import "services/video_capture/public/interfaces/video_capture_device_factory.mo
jom"; | 9 import "services/video_capture/public/interfaces/device_factory.mojom"; |
10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
11 | 11 |
12 // Entry point to the Video Capture Service API. | 12 // Entry point to the Video Capture Service API. |
13 // The service hosts three VideoCaptureDeviceFactories. The "regular" factory | 13 // The service hosts three DeviceFactories. The "regular" factory |
14 // provides access to the capture devices connected to the system. The "fake" | 14 // provides access to the capture devices connected to the system. The "fake" |
15 // factory provides access to a single fake device that generates test frames. | 15 // factory provides access to a single fake device that generates test frames. |
16 // The "mock" factory provides access to a set of mock devices provided by the | 16 // The "mock" factory provides access to a set of mock devices provided by the |
17 // client, which are useful for verifying that the service implementation | 17 // client, which are useful for verifying that the service implementation |
18 // operates these devices correctly. | 18 // operates these devices correctly. |
19 interface VideoCaptureService { | 19 interface Service { |
20 ConnectToDeviceFactory(VideoCaptureDeviceFactory& request); | 20 ConnectToDeviceFactory(DeviceFactory& request); |
21 ConnectToFakeDeviceFactory(VideoCaptureDeviceFactory& request); | 21 ConnectToFakeDeviceFactory(DeviceFactory& request); |
22 ConnectToMockDeviceFactory(VideoCaptureDeviceFactory& request); | 22 ConnectToMockDeviceFactory(DeviceFactory& request); |
23 [Sync] AddDeviceToMockFactory(MockVideoCaptureDevice device, | 23 [Sync] AddDeviceToMockFactory(MockMediaDevice device, |
24 VideoCaptureDeviceDescriptor descriptor) => (); | 24 DeviceDescriptor descriptor) => (); |
25 }; | 25 }; |
OLD | NEW |