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