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

Unified Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms 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_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart
diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart
index fd72d5a72271c1688c8e01879ef1d27855772290..476f4bffdb96695bee3033e0bc1d569332cb571b 100644
--- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart
+++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart
@@ -5,9 +5,12 @@
library serialization_test_structs_mojom;
import 'dart:async';
+import 'dart:collection';
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;
+
@@ -76,6 +79,17 @@ class Struct1 extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct1__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct1'
+ ..fullIdentifier = 'mojo.test.Struct1')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
+ ];
+}
class Struct2 extends bindings.Struct {
@@ -142,6 +156,20 @@ class Struct2 extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct2__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct2'
+ ..fullIdentifier = 'mojo.test.Struct2')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Hdl')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.unspecified
+..nullable = false)),
+ ];
+}
class Struct3 extends bindings.Struct {
@@ -210,6 +238,22 @@ class Struct3 extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct3__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct3'
+ ..fullIdentifier = 'mojo.test.Struct3')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Struct1')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_serialization_test_structs_Struct1__'
+ ..typeKey = '_serialization_test_structs_Struct1__'
+ )),
+ ];
+}
class Struct4 extends bindings.Struct {
@@ -294,6 +338,23 @@ class Struct4 extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct4__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct4'
+ ..fullIdentifier = 'mojo.test.Struct4')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_serialization_test_structs_Struct1__'
+ ..typeKey = '_serialization_test_structs_Struct1__'
+ )))),
+ ];
+}
class Struct5 extends bindings.Struct {
@@ -378,6 +439,23 @@ class Struct5 extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct5__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct5'
+ ..fullIdentifier = 'mojo.test.Struct5')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Pair')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 2
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_serialization_test_structs_Struct1__'
+ ..typeKey = '_serialization_test_structs_Struct1__'
+ )))),
+ ];
+}
class Struct6 extends bindings.Struct {
@@ -445,6 +523,18 @@ class Struct6 extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct6__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'Struct6'
+ ..fullIdentifier = 'mojo.test.Struct6')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)),
+ ];
+}
class StructOfNullables extends bindings.Struct {
@@ -528,5 +618,76 @@ class StructOfNullables extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _serialization_test_structs_StructOfNullables__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructOfNullables'
+ ..fullIdentifier = 'mojo.test.StructOfNullables')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Hdl')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.unspecified
+..nullable = true)),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Struct1')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_serialization_test_structs_Struct1__'
+ ..typeKey = '_serialization_test_structs_Struct1__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = true)),
+ ];
+}
+
+
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_serialization_test_structs_Struct1__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct1__();
+map["_serialization_test_structs_Struct2__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct2__();
+map["_serialization_test_structs_Struct3__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct3__();
+map["_serialization_test_structs_Struct4__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct4__();
+map["_serialization_test_structs_Struct5__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct5__();
+map["_serialization_test_structs_Struct6__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_Struct6__();
+map["_serialization_test_structs_StructOfNullables__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _serialization_test_structs_StructOfNullables__();
+
+ return map;
+}
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}

Powered by Google App Engine
This is Rietveld 408576698