| 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 311e0c672eef1dd631b36e0fbc28f051dab5644d..f810a8a225f9efe22f4d18c63eed40f955ef5ba8 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
|
| @@ -867,6 +867,26 @@ class _RateControlServiceDescription implements service_describer.ServiceDescrip
|
|
|
| abstract class RateControl {
|
| static const String serviceName = null;
|
| +
|
| + static service_describer.ServiceDescription _cachedServiceDescription;
|
| + static service_describer.ServiceDescription get serviceDescription {
|
| + if (_cachedServiceDescription == null) {
|
| + _cachedServiceDescription = new _RateControlServiceDescription();
|
| + }
|
| + return _cachedServiceDescription;
|
| + }
|
| +
|
| + static RateControlProxy connectToService(
|
| + bindings.ServiceConnector s, String url, [String serviceName]) {
|
| + RateControlProxy p = new RateControlProxy.unbound();
|
| + String name = serviceName ?? RateControl.serviceName;
|
| + if ((name == null) || name.isEmpty) {
|
| + throw new core.MojoApiError(
|
| + "If an interface has no ServiceName, then one must be provided.");
|
| + }
|
| + s.connectToService(url, p, name);
|
| + return p;
|
| + }
|
| dynamic getCurrentTransform([Function responseFactory = null]);
|
| void setCurrentQuad(TimelineQuad quad);
|
| void setTargetTimelineId(int id);
|
| @@ -876,9 +896,27 @@ abstract class RateControl {
|
| void cancelPendingChanges();
|
| }
|
|
|
| +abstract class RateControlInterface
|
| + implements bindings.MojoInterface<RateControl>,
|
| + RateControl {
|
| + factory RateControlInterface([RateControl impl]) =>
|
| + new RateControlStub.unbound(impl);
|
| + factory RateControlInterface.fromEndpoint(
|
| + core.MojoMessagePipeEndpoint endpoint,
|
| + [RateControl impl]) =>
|
| + new RateControlStub.fromEndpoint(endpoint, impl);
|
| +}
|
| +
|
| +abstract class RateControlInterfaceRequest
|
| + implements bindings.MojoInterface<RateControl>,
|
| + RateControl {
|
| + factory RateControlInterfaceRequest() =>
|
| + new RateControlProxy.unbound();
|
| +}
|
| +
|
| class _RateControlProxyControl
|
| extends bindings.ProxyMessageHandler
|
| - implements bindings.ProxyControl {
|
| + implements bindings.ProxyControl<RateControl> {
|
| _RateControlProxyControl.fromEndpoint(
|
| core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
|
|
|
| @@ -887,9 +925,6 @@ class _RateControlProxyControl
|
|
|
| _RateControlProxyControl.unbound() : super.unbound();
|
|
|
| - service_describer.ServiceDescription get serviceDescription =>
|
| - new _RateControlServiceDescription();
|
| -
|
| String get serviceName => RateControl.serviceName;
|
|
|
| void handleResponse(bindings.ServiceMessage message) {
|
| @@ -921,6 +956,11 @@ class _RateControlProxyControl
|
| }
|
| }
|
|
|
| + RateControl get impl => null;
|
| + set impl(RateControl _) {
|
| + throw new core.MojoApiError("The impl of a Proxy cannot be set.");
|
| + }
|
| +
|
| @override
|
| String toString() {
|
| var superString = super.toString();
|
| @@ -929,8 +969,10 @@ class _RateControlProxyControl
|
| }
|
|
|
| class RateControlProxy
|
| - extends bindings.Proxy
|
| - implements RateControl {
|
| + extends bindings.Proxy<RateControl>
|
| + implements RateControl,
|
| + RateControlInterface,
|
| + RateControlInterfaceRequest {
|
| RateControlProxy.fromEndpoint(
|
| core.MojoMessagePipeEndpoint endpoint)
|
| : super(new _RateControlProxyControl.fromEndpoint(endpoint));
|
| @@ -947,13 +989,6 @@ class RateControlProxy
|
| return new RateControlProxy.fromEndpoint(endpoint);
|
| }
|
|
|
| - factory RateControlProxy.connectToService(
|
| - bindings.ServiceConnector s, String url, [String serviceName]) {
|
| - RateControlProxy p = new RateControlProxy.unbound();
|
| - s.connectToService(url, p, serviceName);
|
| - return p;
|
| - }
|
| -
|
|
|
| dynamic getCurrentTransform([Function responseFactory = null]) {
|
| var params = new _RateControlGetCurrentTransformParams();
|
| @@ -1048,6 +1083,8 @@ class _RateControlStubControl
|
|
|
| _RateControlStubControl.unbound([this._impl]) : super.unbound();
|
|
|
| + String get serviceName => RateControl.serviceName;
|
| +
|
|
|
| RateControlGetCurrentTransformResponseParams _rateControlGetCurrentTransformResponseParamsFactory(TimelineTransform trans) {
|
| var result = new RateControlGetCurrentTransformResponseParams();
|
| @@ -1146,19 +1183,16 @@ class _RateControlStubControl
|
| }
|
|
|
| int get version => 0;
|
| -
|
| - static service_describer.ServiceDescription _cachedServiceDescription;
|
| - static service_describer.ServiceDescription get serviceDescription {
|
| - if (_cachedServiceDescription == null) {
|
| - _cachedServiceDescription = new _RateControlServiceDescription();
|
| - }
|
| - return _cachedServiceDescription;
|
| - }
|
| }
|
|
|
| class RateControlStub
|
| extends bindings.Stub<RateControl>
|
| - implements RateControl {
|
| + implements RateControl,
|
| + RateControlInterface,
|
| + RateControlInterfaceRequest {
|
| + RateControlStub.unbound([RateControl impl])
|
| + : super(new _RateControlStubControl.unbound(impl));
|
| +
|
| RateControlStub.fromEndpoint(
|
| core.MojoMessagePipeEndpoint endpoint, [RateControl impl])
|
| : super(new _RateControlStubControl.fromEndpoint(endpoint, impl));
|
| @@ -1167,18 +1201,12 @@ class RateControlStub
|
| core.MojoHandle handle, [RateControl impl])
|
| : super(new _RateControlStubControl.fromHandle(handle, impl));
|
|
|
| - RateControlStub.unbound([RateControl impl])
|
| - : super(new _RateControlStubControl.unbound(impl));
|
| -
|
| static RateControlStub newFromEndpoint(
|
| core.MojoMessagePipeEndpoint endpoint) {
|
| assert(endpoint.setDescription("For RateControlStub"));
|
| return new RateControlStub.fromEndpoint(endpoint);
|
| }
|
|
|
| - static service_describer.ServiceDescription get serviceDescription =>
|
| - _RateControlStubControl.serviceDescription;
|
| -
|
|
|
| dynamic getCurrentTransform([Function responseFactory = null]) {
|
| return impl.getCurrentTransform(responseFactory);
|
|
|