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

Unified Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.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_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..300574c090e4992712e817ac9d2c9128e7587182 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
@@ -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;
+
@@ -77,6 +79,16 @@ class Struct1 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct1__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -143,6 +155,19 @@ class Struct2 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct2__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -211,6 +236,21 @@ class Struct3 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct3__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -295,6 +335,22 @@ class Struct4 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct4__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -379,6 +435,22 @@ class Struct5 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct5__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -446,6 +518,17 @@ class Struct6 extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_Struct6__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -529,4 +612,112 @@ class StructOfNullables extends bindings.Struct {
}
}
+mojom_types.MojomStruct _serialization_test_structs_StructOfNullables__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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)),
+ ];
+}
+
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<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;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
+}
+

Powered by Google App Engine
This is Rietveld 408576698