Index: mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart |
index 42390b3085fd9b206bd33a350e1351513c12aecb..21a8ee9d8ebb2b3ad5704a8014879d09d70aedcf 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart |
@@ -5,9 +5,12 @@ |
library rate_control_mojom; |
import 'dart:async'; |
+import 'dart:collection'; |
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; |
@@ -103,6 +106,29 @@ class TimelineQuad extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_TimelineQuad__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'TimelineQuad' |
+ ..fullIdentifier = 'mojo.media.TimelineQuad') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceOffset') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetOffset') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class TimelineTransform extends bindings.Struct { |
@@ -191,6 +217,30 @@ class TimelineTransform extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_TimelineTransform__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'TimelineTransform' |
+ ..fullIdentifier = 'mojo.media.TimelineTransform') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Quad') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_rate_control_TimelineQuad__' |
+ ..typeKey = '_rate_control_TimelineQuad__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceTimelineId') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetTimelineId') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class _RateControlGetCurrentTransformParams extends bindings.Struct { |
@@ -249,6 +299,13 @@ class _RateControlGetCurrentTransformParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_GetCurrentTransform_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlGetCurrentTransformParams' |
+ ..fullIdentifier = 'mojo.media._RateControlGetCurrentTransformParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
class RateControlGetCurrentTransformResponseParams extends bindings.Struct { |
@@ -317,6 +374,22 @@ class RateControlGetCurrentTransformResponseParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_GetCurrentTransform_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'RateControlGetCurrentTransformResponseParams' |
+ ..fullIdentifier = 'mojo.media.RateControlGetCurrentTransformResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Trans') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_rate_control_TimelineTransform__' |
+ ..typeKey = '_rate_control_TimelineTransform__' |
+ )), |
+ ]; |
+} |
class _RateControlSetCurrentQuadParams extends bindings.Struct { |
@@ -385,6 +458,22 @@ class _RateControlSetCurrentQuadParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_SetCurrentQuad_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlSetCurrentQuadParams' |
+ ..fullIdentifier = 'mojo.media._RateControlSetCurrentQuadParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Quad') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_rate_control_TimelineQuad__' |
+ ..typeKey = '_rate_control_TimelineQuad__' |
+ )), |
+ ]; |
+} |
class _RateControlSetTargetTimelineIdParams extends bindings.Struct { |
@@ -452,6 +541,17 @@ class _RateControlSetTargetTimelineIdParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_SetTargetTimelineID_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlSetTargetTimelineIdParams' |
+ ..fullIdentifier = 'mojo.media._RateControlSetTargetTimelineIdParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class _RateControlSetRateParams extends bindings.Struct { |
@@ -528,6 +628,21 @@ class _RateControlSetRateParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_SetRate_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlSetRateParams' |
+ ..fullIdentifier = 'mojo.media._RateControlSetRateParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class _RateControlSetRateAtReferenceTimeParams extends bindings.Struct { |
@@ -613,6 +728,25 @@ class _RateControlSetRateAtReferenceTimeParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_SetRateAtReferenceTime_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlSetRateAtReferenceTimeParams' |
+ ..fullIdentifier = 'mojo.media._RateControlSetRateAtReferenceTimeParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceTime') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64), |
+ ]; |
+} |
class _RateControlSetRateAtTargetTimeParams extends bindings.Struct { |
@@ -698,6 +832,25 @@ class _RateControlSetRateAtTargetTimeParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_SetRateAtTargetTime_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlSetRateAtTargetTimeParams' |
+ ..fullIdentifier = 'mojo.media._RateControlSetRateAtTargetTimeParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ReferenceDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetDelta') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetTime') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64), |
+ ]; |
+} |
class _RateControlCancelPendingChangesParams extends bindings.Struct { |
@@ -756,6 +909,14 @@ class _RateControlCancelPendingChangesParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _rate_control_RateControl_CancelPendingChanges_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_RateControlCancelPendingChangesParams' |
+ ..fullIdentifier = 'mojo.media._RateControlCancelPendingChangesParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
const int _RateControl_getCurrentTransformName = 0; |
const int _RateControl_setCurrentQuadName = 1; |
@@ -765,6 +926,44 @@ const int _RateControl_setRateAtReferenceTimeName = 4; |
const int _RateControl_setRateAtTargetTimeName = 5; |
const int _RateControl_cancelPendingChangesName = 6; |
+mojom_types.MojomInterface _rate_control_RateControl__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'RateControl' |
+ ..fullIdentifier = 'mojo.media.RateControl') |
+ ..interfaceName = 'RateControl' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_RateControl_getCurrentTransformName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'GetCurrentTransform') |
+ ..ordinal = _RateControl_getCurrentTransformName |
+ ..responseParams = _rate_control_RateControl_GetCurrentTransform_ResponseParams__()..parameters = _rate_control_RateControl_GetCurrentTransform_Params__(),_RateControl_setCurrentQuadName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetCurrentQuad') |
+ ..ordinal = _RateControl_setCurrentQuadName..parameters = _rate_control_RateControl_SetCurrentQuad_Params__(),_RateControl_setTargetTimelineIdName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetTargetTimelineId') |
+ ..ordinal = _RateControl_setTargetTimelineIdName..parameters = _rate_control_RateControl_SetTargetTimelineID_Params__(),_RateControl_setRateName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetRate') |
+ ..ordinal = _RateControl_setRateName..parameters = _rate_control_RateControl_SetRate_Params__(),_RateControl_setRateAtReferenceTimeName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetRateAtReferenceTime') |
+ ..ordinal = _RateControl_setRateAtReferenceTimeName..parameters = _rate_control_RateControl_SetRateAtReferenceTime_Params__(),_RateControl_setRateAtTargetTimeName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetRateAtTargetTime') |
+ ..ordinal = _RateControl_setRateAtTargetTimeName..parameters = _rate_control_RateControl_SetRateAtTargetTime_Params__(),_RateControl_cancelPendingChangesName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CancelPendingChanges') |
+ ..ordinal = _RateControl_cancelPendingChangesName..parameters = _rate_control_RateControl_CancelPendingChanges_Params__(), |
+ }; |
+} |
+ |
+class _RateControlServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _rate_control_RateControl__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class RateControl { |
static const String serviceName = null; |
dynamic getCurrentTransform([Function responseFactory = null]); |
@@ -792,6 +991,9 @@ class _RateControlProxyImpl extends bindings.Proxy { |
return new _RateControlProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _RateControlServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _RateControl_getCurrentTransformName: |
@@ -1064,6 +1266,62 @@ class RateControlStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _RateControlServiceDescription(); |
} |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_rate_control_TimelineQuad__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_TimelineQuad__(); |
+map["_rate_control_TimelineTransform__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_TimelineTransform__(); |
+map["_rate_control_RateControl_GetCurrentTransform_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_GetCurrentTransform_Params__(); |
+map["_rate_control_RateControl_GetCurrentTransform_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_GetCurrentTransform_ResponseParams__(); |
+map["_rate_control_RateControl_SetCurrentQuad_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_SetCurrentQuad_Params__(); |
+map["_rate_control_RateControl_SetTargetTimelineID_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_SetTargetTimelineID_Params__(); |
+map["_rate_control_RateControl_SetRate_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_SetRate_Params__(); |
+map["_rate_control_RateControl_SetRateAtReferenceTime_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_SetRateAtReferenceTime_Params__(); |
+map["_rate_control_RateControl_SetRateAtTargetTime_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_SetRateAtTargetTime_Params__(); |
+map["_rate_control_RateControl_CancelPendingChanges_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _rate_control_RateControl_CancelPendingChanges_Params__(); |
+map["_rate_control_RateControl__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _rate_control_RateControl__(); |
+ |
+ return map; |
+} |
+ |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |
+ |