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_video_capture_device.mojom
"; |
| 8 import "services/video_capture/public/interfaces/video_capture_device_descriptor
.mojom"; |
8 import "services/video_capture/public/interfaces/video_capture_device_factory.mo
jom"; | 9 import "services/video_capture/public/interfaces/video_capture_device_factory.mo
jom"; |
| 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 | 11 |
10 // Entry point to the Video Capture Service API. | 12 // Entry point to the Video Capture Service API. |
11 // The service hosts three VideoCaptureDeviceFactories. The "regular" factory | 13 // The service hosts three VideoCaptureDeviceFactories. The "regular" factory |
12 // 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" |
13 // 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. |
14 // 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 |
15 // client, which are useful for verifying that the service implementation | 17 // client, which are useful for verifying that the service implementation |
16 // operates these devices correctly. | 18 // operates these devices correctly. |
17 interface VideoCaptureService { | 19 interface VideoCaptureService { |
18 ConnectToDeviceFactory(VideoCaptureDeviceFactory& request); | 20 ConnectToDeviceFactory(VideoCaptureDeviceFactory& request); |
19 ConnectToFakeDeviceFactory(VideoCaptureDeviceFactory& request); | 21 ConnectToFakeDeviceFactory(VideoCaptureDeviceFactory& request); |
20 ConnectToMockDeviceFactory(VideoCaptureDeviceFactory& request); | 22 ConnectToMockDeviceFactory(VideoCaptureDeviceFactory& request); |
21 [Sync] AddDeviceToMockFactory(MockVideoCaptureDevice device, | 23 [Sync] AddDeviceToMockFactory(MockVideoCaptureDevice device, |
22 VideoCaptureDeviceDescriptor descriptor) => (); | 24 VideoCaptureDeviceDescriptor descriptor) => (); |
23 }; | 25 }; |
OLD | NEW |