| Index: mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart
|
| index 53d2053978d3ed646abef1c7f1203448c1dc1f39..e0499f656c7e1fccdfc3885546b3ddd0e0baaea2 100644
|
| --- a/mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart
|
| +++ b/mojo/dart/packages/mojo/lib/mojo/application_connector.mojom.dart
|
| @@ -21,6 +21,12 @@ class _ApplicationConnectorConnectToApplicationParams extends bindings.Struct {
|
|
|
| _ApplicationConnectorConnectToApplicationParams() : super(kVersions.last.size);
|
|
|
| + _ApplicationConnectorConnectToApplicationParams.init(
|
| + String this.applicationUrl,
|
| + service_provider_mojom.ServiceProviderInterfaceRequest this.services,
|
| + service_provider_mojom.ServiceProviderInterface this.exposedServices
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _ApplicationConnectorConnectToApplicationParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -116,6 +122,10 @@ class _ApplicationConnectorDuplicateParams extends bindings.Struct {
|
|
|
| _ApplicationConnectorDuplicateParams() : super(kVersions.last.size);
|
|
|
| + _ApplicationConnectorDuplicateParams.init(
|
| + ApplicationConnectorInterfaceRequest this.applicationConnectorRequest
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _ApplicationConnectorDuplicateParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -182,14 +192,17 @@ const int _applicationConnectorMethodConnectToApplicationName = 0;
|
| const int _applicationConnectorMethodDuplicateName = 1;
|
|
|
| class _ApplicationConnectorServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class ApplicationConnector {
|
| @@ -356,11 +369,11 @@ class _ApplicationConnectorStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -380,7 +393,6 @@ class _ApplicationConnectorStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| ApplicationConnector get impl => _impl;
|
|
|