Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: content/common/video_capture.mojom

Issue 2400443006: VideoCapture: moar VideoCapture renderer-->host messages to mojo, part 3 (Closed)
Patch Set: minor rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"; 7 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo m";
8 import "services/video_capture/public/interfaces/video_capture_format.mojom"; 8 import "services/video_capture/public/interfaces/video_capture_format.mojom";
9 9
10 struct VideoCaptureParams { 10 struct VideoCaptureParams {
11 video_capture.mojom.VideoCaptureFormat requested_format; 11 video_capture.mojom.VideoCaptureFormat requested_format;
12 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; 12 video_capture.mojom.ResolutionChangePolicy resolution_change_policy;
13 video_capture.mojom.PowerLineFrequency power_line_frequency; 13 video_capture.mojom.PowerLineFrequency power_line_frequency;
14 }; 14 };
15
15 interface VideoCaptureHost { 16 interface VideoCaptureHost {
16 // TODO(mcasas): Migrate the rest of the messages, https://crbug.com/651897. 17 // TODO(mcasas): Migrate the rest of the messages, https://crbug.com/651897.
17 18
18 // Start the |session_id| session with |params|. The video capture will be 19 // 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 // identified as |device_id|, a new id picked by the renderer process.
20 Start(int32 device_id, int32 session_id, VideoCaptureParams params); 21 Start(int32 device_id, int32 session_id, VideoCaptureParams params);
21 22
22 // Closes the video capture specified by |device_id|. 23 // Closes the video capture specified by |device_id|.
23 Stop(int32 device_id); 24 Stop(int32 device_id);
24 25
25 // Pauses the video capture specified by |device_id|. 26 // Pauses the video capture specified by |device_id|.
26 Pause(int32 device_id); 27 Pause(int32 device_id);
27 28
28 // Resume |device_id| video capture, in |session_id| and with |params|. 29 // Resume |device_id| video capture, in |session_id| and with |params|.
29 Resume(int32 device_id, int32 session_id, VideoCaptureParams params); 30 Resume(int32 device_id, int32 session_id, VideoCaptureParams params);
30 31
31 // Requests that the video capturer send a frame "soon" (e.g., to resolve 32 // Requests that the video capturer send a frame "soon" (e.g., to resolve
32 // picture loss or quality issues). 33 // picture loss or quality issues).
33 RequestRefreshFrame(int32 device_id); 34 RequestRefreshFrame(int32 device_id);
35
36 // Get the formats supported by a device referenced by |session_id|.
37 GetDeviceSupportedFormats(int32 device_id, int32 session_id)
38 => (array<video_capture.mojom.VideoCaptureFormat> formats_supported);
39
40 // Get the format(s) in use by a device referenced by |session_id|.
41 GetDeviceFormatsInUse(int32 device_id, int32 session_id)
42 => (array<video_capture.mojom.VideoCaptureFormat> formats_in_use);
34 }; 43 };
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698