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

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

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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/icu_data/icu_data.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart b/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
index 512bc7916bd2489b4e6672b6186fa9849e0b40d9..cbc95ce02e3ae09bbd349258c6e06f43ff13a3c1 100644
--- a/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.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/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer;
@@ -77,6 +79,17 @@ class IcuDataMapParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _icu_data_ICUData_Map_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IcuDataMapParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Sha1hash')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)),
+ ];
+}
+
class IcuDataMapResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -143,11 +156,51 @@ class IcuDataMapResponseParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _icu_data_ICUData_Map_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IcuDataMapResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IcuData')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.SHARED_BUFFER
+..nullable = true)),
+ ];
+}
+
+
const int kIcuData_map_name = 0;
const String IcuDataName =
'icu_data::ICUData';
+mojom_types.MojomInterface _icu_data_ICUData__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IcuData")
+ ..interfaceName = "IcuData"
+ ..methods = <int, mojom_types.MojomMethod>{
+kIcuData_map_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Map")
+ ..ordinal = kIcuData_map_name
+ ..responseParams = _icu_data_ICUData_Map_ResponseParams__()..parameters = _icu_data_ICUData_Map_Params__(),
+ };
+}
+
+class _IcuDataServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _icu_data_ICUData__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class IcuData {
dynamic map(String sha1hash,[Function responseFactory = null]);
@@ -171,6 +224,9 @@ class IcuDataProxyImpl extends bindings.Proxy {
String get name => IcuDataName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IcuDataServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kIcuData_map_name:
@@ -357,6 +413,48 @@ class IcuDataStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IcuDataServiceDescription();
+}
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<String, mojom_types.UserDefinedType>();
+
+ map["_icu_data_ICUData_Map_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _icu_data_ICUData_Map_Params__();
+
+
+
+
+
+ map["_icu_data_ICUData_Map_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _icu_data_ICUData_Map_ResponseParams__();
+
+
+
+
+
+ map["_icu_data_ICUData__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _icu_data_ICUData__();
+
+ return map;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
}

Powered by Google App Engine
This is Rietveld 408576698