| Index: mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart
|
| index 2929ed410253caf714255142932a9dbdd09e56f8..100d7dbd704a62075d20a8d079c7189208331b23 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/media/media_pipe.mojom.dart
|
| @@ -8,6 +8,8 @@ import 'dart:async';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/mojo/media/media_common.mojom.dart' as media_common_mojom;
|
|
|
|
|
| @@ -88,6 +90,8 @@ class MediaPacketRegion extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class MediaPacket extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(48, 0)
|
| @@ -212,6 +216,8 @@ class MediaPacket extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class MediaPipeState extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -287,6 +293,8 @@ class MediaPipeState extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _MediaPipeGetStateParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -345,6 +353,8 @@ class _MediaPipeGetStateParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class MediaPipeGetStateResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -412,6 +422,8 @@ class MediaPipeGetStateResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _MediaPipeSendPacketParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -480,6 +492,8 @@ class _MediaPipeSendPacketParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class MediaPipeSendPacketResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -551,6 +565,8 @@ class MediaPipeSendPacketResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _MediaPipeFlushParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -609,6 +625,8 @@ class _MediaPipeFlushParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class MediaPipeFlushResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -666,6 +684,9 @@ class MediaPipeFlushResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _MediaPipe_getStateName = 0;
|
| const int _MediaPipe_sendPacketName = 1;
|
| const int _MediaPipe_flushName = 2;
|
| @@ -714,12 +735,26 @@ class MediaPipeSendResult extends bindings.MojoEnum {
|
| return 'MediaPipeSendResult.consumed';
|
| case flushed:
|
| return 'MediaPipeSendResult.flushed';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +
|
| +
|
| +
|
| +
|
| +class _MediaPipeServiceDescription implements service_describer.ServiceDescription {
|
| + dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class MediaPipe {
|
| static const String serviceName = null;
|
| dynamic getState([Function responseFactory = null]);
|
| @@ -743,6 +778,9 @@ class _MediaPipeProxyImpl extends bindings.Proxy {
|
| return new _MediaPipeProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _MediaPipeServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _MediaPipe_getStateName:
|
| @@ -1037,6 +1075,10 @@ class MediaPipeStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _MediaPipeServiceDescription();
|
| }
|
|
|
|
|
| +
|
|
|