Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Cleanup Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
index a77119ee97dc7eac9d18b6dc054e84b876106fba..faa0497541206b463334cfa03552d21f32d86c76 100644
--- a/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
@@ -22,6 +22,12 @@ class _ShellConnectToApplicationParams extends bindings.Struct {
_ShellConnectToApplicationParams() : super(kVersions.last.size);
+ _ShellConnectToApplicationParams.init(
+ String this.applicationUrl,
+ service_provider_mojom.ServiceProviderInterfaceRequest this.services,
+ service_provider_mojom.ServiceProviderInterface this.exposedServices
+ ) : super(kVersions.last.size);
+
static _ShellConnectToApplicationParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -117,6 +123,10 @@ class _ShellCreateApplicationConnectorParams extends bindings.Struct {
_ShellCreateApplicationConnectorParams() : super(kVersions.last.size);
+ _ShellCreateApplicationConnectorParams.init(
+ application_connector_mojom.ApplicationConnectorInterfaceRequest this.applicationConnectorRequest
+ ) : super(kVersions.last.size);
+
static _ShellCreateApplicationConnectorParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -183,14 +193,17 @@ const int _shellMethodConnectToApplicationName = 0;
const int _shellMethodCreateApplicationConnectorName = 1;
class _ShellServiceDescription 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 Shell {
@@ -357,11 +370,11 @@ class _ShellStubControl
- 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");
@@ -381,7 +394,6 @@ class _ShellStubControl
throw new bindings.MojoCodecError("Unexpected message name");
break;
}
- return null;
}
Shell get impl => _impl;

Powered by Google App Engine
This is Rietveld 408576698