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 content.mojom; | 5 module content.mojom; |
6 | 6 |
| 7 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo
m"; |
| 8 import "services/video_capture/public/interfaces/video_capture_format.mojom"; |
| 9 |
| 10 struct VideoCaptureParams { |
| 11 video_capture.mojom.VideoCaptureFormat requested_format; |
| 12 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; |
| 13 video_capture.mojom.PowerLineFrequency power_line_frequency; |
| 14 }; |
7 interface VideoCaptureHost { | 15 interface VideoCaptureHost { |
8 // TODO(mcasas): Migrate the rest of the messages, https://crbug.com/651897. | 16 // TODO(mcasas): Migrate the rest of the messages, https://crbug.com/651897. |
9 | 17 |
| 18 // Start the |session_id| session with |params|. The video capture will be |
| 19 // identified as |device_id|, a new id picked by the renderer process. |
| 20 Start(int32 device_id, int32 session_id, VideoCaptureParams params); |
| 21 |
10 // Closes the video capture specified by |device_id|. | 22 // Closes the video capture specified by |device_id|. |
11 Stop(int32 device_id); | 23 Stop(int32 device_id); |
12 | 24 |
13 // Pauses the video capture specified by |device_id|. | 25 // Pauses the video capture specified by |device_id|. |
14 Pause(int32 device_id); | 26 Pause(int32 device_id); |
15 | 27 |
| 28 // Resume |device_id| video capture, in |session_id| and with |params|. |
| 29 Resume(int32 device_id, int32 session_id, VideoCaptureParams params); |
| 30 |
16 // Requests that the video capturer send a frame "soon" (e.g., to resolve | 31 // Requests that the video capturer send a frame "soon" (e.g., to resolve |
17 // picture loss or quality issues). | 32 // picture loss or quality issues). |
18 RequestRefreshFrame(int32 device_id); | 33 RequestRefreshFrame(int32 device_id); |
19 }; | 34 }; |
OLD | NEW |