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

Unified Diff: content/common/video_capture.mojom

Issue 2395163002: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 (Closed)
Patch Set: rockot@s comments on renaming and return types 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/typemaps.gni ('k') | content/common/video_capture.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/video_capture.mojom
diff --git a/content/common/video_capture.mojom b/content/common/video_capture.mojom
index 6b9a08dc91ac346dcc425df76efff9a8678747e1..ca0301403b46d5b6ab0b61748982729d75869a70 100644
--- a/content/common/video_capture.mojom
+++ b/content/common/video_capture.mojom
@@ -4,15 +4,30 @@
module content.mojom;
+import "services/video_capture/public/interfaces/video_capture_device_proxy.mojom";
+import "services/video_capture/public/interfaces/video_capture_format.mojom";
+
+struct VideoCaptureParams {
+ video_capture.mojom.VideoCaptureFormat requested_format;
+ video_capture.mojom.ResolutionChangePolicy resolution_change_policy;
+ video_capture.mojom.PowerLineFrequency power_line_frequency;
+};
interface VideoCaptureHost {
// TODO(mcasas): Migrate the rest of the messages, https://crbug.com/651897.
+ // Start the |session_id| session with |params|. The video capture will be
+ // identified as |device_id|, a new id picked by the renderer process.
+ Start(int32 device_id, int32 session_id, VideoCaptureParams params);
+
// Closes the video capture specified by |device_id|.
Stop(int32 device_id);
// Pauses the video capture specified by |device_id|.
Pause(int32 device_id);
+ // Resume |device_id| video capture, in |session_id| and with |params|.
+ Resume(int32 device_id, int32 session_id, VideoCaptureParams params);
+
// Requests that the video capturer send a frame "soon" (e.g., to resolve
// picture loss or quality issues).
RequestRefreshFrame(int32 device_id);
« no previous file with comments | « content/common/typemaps.gni ('k') | content/common/video_capture.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698