| 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 "gpu/ipc/common/sync_token.mojom"; | 7 import "gpu/ipc/common/sync_token.mojom"; |
| 8 import "media/mojo/interfaces/media_types.mojom"; | 8 import "media/mojo/interfaces/media_types.mojom"; |
| 9 import "mojo/common/common_custom_types.mojom"; | 9 import "mojo/common/common_custom_types.mojom"; |
| 10 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo
m"; | 10 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo
m"; |
| 11 import "services/video_capture/public/interfaces/video_capture_format.mojom"; | 11 import "services/video_capture/public/interfaces/video_capture_format.mojom"; |
| 12 import "ui/gfx/geometry/mojo/geometry.mojom"; | 12 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 13 | 13 |
| 14 struct VideoCaptureParams { | 14 struct VideoCaptureParams { |
| 15 video_capture.mojom.VideoCaptureFormat requested_format; | 15 video_capture.mojom.VideoCaptureFormat requested_format; |
| 16 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; | 16 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; |
| 17 video_capture.mojom.PowerLineFrequency power_line_frequency; | 17 video_capture.mojom.PowerLineFrequency power_line_frequency; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 struct VideoFrameInfo{ | 20 struct VideoFrameInfo{ |
| 21 mojo.common.mojom.TimeDelta timestamp; | 21 mojo.common.mojom.TimeDelta timestamp; |
| 22 mojo.common.mojom.DictionaryValue metadata; | 22 mojo.common.mojom.DictionaryValue metadata; |
| 23 media.mojom.VideoFormat pixel_format; | 23 media.mojom.VideoPixelFormat pixel_format; |
| 24 video_capture.mojom.VideoPixelStorage storage_type; | 24 video_capture.mojom.VideoPixelStorage storage_type; |
| 25 gfx.mojom.Size coded_size; | 25 gfx.mojom.Size coded_size; |
| 26 gfx.mojom.Rect visible_rect; | 26 gfx.mojom.Rect visible_rect; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 enum VideoCaptureState { | 29 enum VideoCaptureState { |
| 30 STARTED, | 30 STARTED, |
| 31 PAUSED, | 31 PAUSED, |
| 32 RESUMED, | 32 RESUMED, |
| 33 STOPPED, | 33 STOPPED, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 double consumer_resource_utilization); | 77 double consumer_resource_utilization); |
| 78 | 78 |
| 79 // Get the formats supported by a device referenced by |session_id|. | 79 // Get the formats supported by a device referenced by |session_id|. |
| 80 GetDeviceSupportedFormats(int32 device_id, int32 session_id) | 80 GetDeviceSupportedFormats(int32 device_id, int32 session_id) |
| 81 => (array<video_capture.mojom.VideoCaptureFormat> formats_supported); | 81 => (array<video_capture.mojom.VideoCaptureFormat> formats_supported); |
| 82 | 82 |
| 83 // Get the format(s) in use by a device referenced by |session_id|. | 83 // Get the format(s) in use by a device referenced by |session_id|. |
| 84 GetDeviceFormatsInUse(int32 device_id, int32 session_id) | 84 GetDeviceFormatsInUse(int32 device_id, int32 session_id) |
| 85 => (array<video_capture.mojom.VideoCaptureFormat> formats_in_use); | 85 => (array<video_capture.mojom.VideoCaptureFormat> formats_in_use); |
| 86 }; | 86 }; |
| OLD | NEW |