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

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: Merge Created 4 years, 6 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 d454deb45e53c72606030693139e1aea757392cc..c12dbb09df97aa1e4b7553bc8668f489b1561f73 100644
--- a/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart
@@ -20,6 +20,11 @@ class _ShellConnectToApplicationParams extends bindings.Struct {
_ShellConnectToApplicationParams() : super(kVersions.last.size);
+ _ShellConnectToApplicationParams.init(
+ String this.applicationUrl,
+ service_provider_mojom.ServiceProviderInterfaceRequest this.services
+ ) : super(kVersions.last.size);
+
static _ShellConnectToApplicationParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -103,6 +108,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);
@@ -169,14 +178,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 {
@@ -342,11 +354,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");
@@ -366,7 +378,6 @@ class _ShellStubControl
throw new bindings.MojoCodecError("Unexpected message name");
break;
}
- return null;
}
Shell get impl => _impl;
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart ('k') | mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698