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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions Created 4 years, 11 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/application.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
index 9f9b9bcb623a63f8cb6861a4c4b7d0efd68d5bad..17b6e476ee51684d9d07fba40f9cf3c4710d7bb2 100644
--- a/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
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;
import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom;
import 'package:mojo/mojo/shell.mojom.dart' as shell_mojom;
@@ -113,6 +115,8 @@ class _ApplicationInitializeParams extends bindings.Struct {
}
+
+
class _ApplicationAcceptConnectionParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(40, 0)
@@ -203,6 +207,8 @@ class _ApplicationAcceptConnectionParams extends bindings.Struct {
}
+
+
class _ApplicationRequestQuitParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -260,10 +266,24 @@ class _ApplicationRequestQuitParams extends bindings.Struct {
}
}
+
+
+
const int _Application_initializeName = 0;
const int _Application_acceptConnectionName = 1;
const int _Application_requestQuitName = 2;
+
+
+class _ApplicationServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
+ null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
+}
+
abstract class Application {
static const String serviceName = null;
void initialize(Object shell, List<String> args, String url);
@@ -287,6 +307,9 @@ class _ApplicationProxyImpl extends bindings.Proxy {
return new _ApplicationProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ApplicationServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -462,6 +485,11 @@ class ApplicationStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ApplicationServiceDescription();
}
+
+

Powered by Google App Engine
This is Rietveld 408576698