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

Unified Diff: mojo/dart/packages/mojo_services/lib/contacts/contacts.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master 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_services/lib/contacts/contacts.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/contacts/contacts.mojom.dart b/mojo/dart/packages/mojo_services/lib/contacts/contacts.mojom.dart
index 8824f1c74fa5c5926a7d364a0a5f27226243d5a5..bc36320308911c445fad6216e28222ae2f5413d3 100644
--- a/mojo/dart/packages/mojo_services/lib/contacts/contacts.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/contacts/contacts.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;
@@ -87,6 +89,8 @@ class Contact extends bindings.Struct {
}
+
+
class _ContactsServiceGetCountParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -154,6 +158,8 @@ class _ContactsServiceGetCountParams extends bindings.Struct {
}
+
+
class ContactsServiceGetCountResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -221,6 +227,8 @@ class ContactsServiceGetCountResponseParams extends bindings.Struct {
}
+
+
class _ContactsServiceGetParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -306,6 +314,8 @@ class _ContactsServiceGetParams extends bindings.Struct {
}
+
+
class ContactsServiceGetResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -390,6 +400,8 @@ class ContactsServiceGetResponseParams extends bindings.Struct {
}
+
+
class _ContactsServiceGetEmailsParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -457,6 +469,8 @@ class _ContactsServiceGetEmailsParams extends bindings.Struct {
}
+
+
class ContactsServiceGetEmailsResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -540,6 +554,8 @@ class ContactsServiceGetEmailsResponseParams extends bindings.Struct {
}
+
+
class _ContactsServiceGetPhotoParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -616,6 +632,8 @@ class _ContactsServiceGetPhotoParams extends bindings.Struct {
}
+
+
class ContactsServiceGetPhotoResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -682,11 +700,24 @@ class ContactsServiceGetPhotoResponseParams extends bindings.Struct {
}
}
+
+
+
const int _ContactsService_getCountName = 0;
const int _ContactsService_getName = 1;
const int _ContactsService_getEmailsName = 2;
const int _ContactsService_getPhotoName = 3;
+
+
+class _ContactsServiceServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class ContactsService {
static const String serviceName = "contacts::ContactsService";
dynamic getCount(String filter,[Function responseFactory = null]);
@@ -711,6 +742,9 @@ class _ContactsServiceProxyImpl extends bindings.Proxy {
return new _ContactsServiceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ContactsServiceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _ContactsService_getCountName:
@@ -1067,6 +1101,10 @@ class ContactsServiceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ContactsServiceServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698