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

Unified Diff: mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.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/regression_tests/regression_tests.mojom.dart
diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.mojom.dart
index caf81bb1a75f0876a3e61c304227a7145b36c7f2..12f45d3dc640dd6641a1c6dd1f527141e77e3424 100644
--- a/mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.mojom.dart
+++ b/mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.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;
class EnumWithReference extends bindings.MojoEnum {
static const k_STEREO_AND_KEYBOARD_MIC = const EnumWithReference._(30);
static const k_MAX = const EnumWithReference._(30);
@@ -52,11 +54,25 @@ class EnumWithReference extends bindings.MojoEnum {
return 'EnumWithReference.k_STEREO_AND_KEYBOARD_MIC';
case k_MAX:
return 'EnumWithReference.k_MAX';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _regression_tests_EnumWithReference__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EnumWithReference")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "STEREO_AND_KEYBOARD_MIC")
+ ..enumTypeKey = '_regression_tests_EnumWithReference__'
+ ..intValue = 30,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "MAX")
+ ..enumTypeKey = '_regression_tests_EnumWithReference__'
+ ..intValue = 30,];
+}
class EnumWithLowercase extends bindings.MojoEnum {
static const PlanarF16 = const EnumWithLowercase._(0);
static const PlanarF32 = const EnumWithLowercase._(1);
@@ -101,11 +117,25 @@ class EnumWithLowercase extends bindings.MojoEnum {
return 'EnumWithLowercase.PlanarF16';
case PlanarF32:
return 'EnumWithLowercase.PlanarF32';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _regression_tests_EnumWithLowercase__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EnumWithLowercase")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "PLANAR_F16")
+ ..enumTypeKey = '_regression_tests_EnumWithLowercase__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "PLANAR_F32")
+ ..enumTypeKey = '_regression_tests_EnumWithLowercase__'
+ ..intValue = 1,];
+}
class EnumWithNumbers extends bindings.MojoEnum {
static const k_2_1 = const EnumWithNumbers._(4);
@@ -143,11 +173,22 @@ class EnumWithNumbers extends bindings.MojoEnum {
switch(this) {
case k_2_1:
return 'EnumWithNumbers.k_2_1';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _regression_tests_EnumWithNumbers__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EnumWithNumbers")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "_2_1")
+ ..enumTypeKey = '_regression_tests_EnumWithNumbers__'
+ ..intValue = 4,];
+}
class EnumWithK extends bindings.MojoEnum {
static const K = const EnumWithK._(0);
@@ -185,11 +226,22 @@ class EnumWithK extends bindings.MojoEnum {
switch(this) {
case K:
return 'EnumWithK.K';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _regression_tests_EnumWithK__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EnumWithK")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "K")
+ ..enumTypeKey = '_regression_tests_EnumWithK__'
+ ..intValue = 0,];
+}
class EnumWithInternalAllCaps extends bindings.MojoEnum {
static const STANDARD = const EnumWithInternalAllCaps._(0);
static const FULLSCREEN = const EnumWithInternalAllCaps._(1);
@@ -241,11 +293,28 @@ class EnumWithInternalAllCaps extends bindings.MojoEnum {
return 'EnumWithInternalAllCaps.FULLSCREEN';
case IMMERSIVE:
return 'EnumWithInternalAllCaps.IMMERSIVE';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _regression_tests_EnumWithINTERNALAllCaps__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EnumWithInternalAllCaps")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "STANDARD")
+ ..enumTypeKey = '_regression_tests_EnumWithINTERNALAllCaps__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FULLSCREEN")
+ ..enumTypeKey = '_regression_tests_EnumWithINTERNALAllCaps__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IMMERSIVE")
+ ..enumTypeKey = '_regression_tests_EnumWithINTERNALAllCaps__'
+ ..intValue = 2,];
+}
class NormalEnum extends bindings.MojoEnum {
static const FIRST = const NormalEnum._(0);
static const SECOND = const NormalEnum._(1);
@@ -290,12 +359,26 @@ class NormalEnum extends bindings.MojoEnum {
return 'NormalEnum.FIRST';
case SECOND:
return 'NormalEnum.SECOND';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _regression_tests_NormalEnum__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "NormalEnum")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FIRST")
+ ..enumTypeKey = '_regression_tests_NormalEnum__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "SECOND")
+ ..enumTypeKey = '_regression_tests_NormalEnum__'
+ ..intValue = 1,];
+}
+
class Edge extends bindings.Struct {
@@ -365,6 +448,23 @@ class Edge extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_Edge__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Edge')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'V')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_regression_tests_Vertex__'
+ ..typeKey = '_regression_tests_Vertex__'
+ )),
+ ];
+}
+
class Vertex extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -433,6 +533,23 @@ class Vertex extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_Vertex__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Vertex')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_regression_tests_EmptyStruct__'
+ ..typeKey = '_regression_tests_EmptyStruct__'
+ )),
+ ];
+}
+
class EmptyStruct extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -491,6 +608,12 @@ class EmptyStruct extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_EmptyStruct__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'EmptyStruct')
+ ..fields = <mojom_types.StructField>[];
+}
+
class A extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -559,6 +682,23 @@ class A extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_A__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_regression_tests_B__'
+ ..typeKey = '_regression_tests_B__'
+ )),
+ ];
+}
+
class B extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -627,6 +767,23 @@ class B extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_B__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_regression_tests_A__'
+ ..typeKey = '_regression_tests_A__'
+ )),
+ ];
+}
+
class StructWithHandleCalledHandles extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -693,6 +850,19 @@ class StructWithHandleCalledHandles extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_StructWithHandleCalledHandles__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructWithHandleCalledHandles')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Handles')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.UNSPECIFIED
+..nullable = false)),
+ ];
+}
+
class StructWithArrayOfHandlesCalledHandles extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -759,6 +929,20 @@ class StructWithArrayOfHandlesCalledHandles extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_StructWithArrayOfHandlesCalledHandles__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructWithArrayOfHandlesCalledHandles')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Handles')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.UNSPECIFIED
+..nullable = false)))),
+ ];
+}
+
class StructWithInterfaceCalledHandles extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -825,6 +1009,21 @@ class StructWithInterfaceCalledHandles extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_StructWithInterfaceCalledHandles__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructWithInterfaceCalledHandles')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Handles')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_regression_tests_TestInterface__'
+ ..typeKey = '_regression_tests_TestInterface__'
+ )),
+ ];
+}
+
class ContainsArrayOfEnum extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -904,6 +1103,22 @@ class ContainsArrayOfEnum extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_ContainsArrayOfEnum__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ContainsArrayOfEnum')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ArrayOfEnums')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_regression_tests_NormalEnum__'
+ ..typeKey = '_regression_tests_NormalEnum__'
+ )))),
+ ];
+}
+
class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -962,6 +1177,12 @@ class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams extends
}
}
+mojom_types.MojomStruct _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams')
+ ..fields = <mojom_types.StructField>[];
+}
+
class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1020,6 +1241,12 @@ class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams
}
}
+mojom_types.MojomStruct _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams')
+ ..fields = <mojom_types.StructField>[];
+}
+
class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1087,6 +1314,16 @@ class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams extends bi
}
}
+mojom_types.MojomStruct _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+ ];
+}
+
class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1145,6 +1382,12 @@ class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams ex
}
}
+mojom_types.MojomStruct _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams')
+ ..fields = <mojom_types.StructField>[];
+}
+
class CheckNameCollisionWithNameCollisionParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1221,6 +1464,20 @@ class CheckNameCollisionWithNameCollisionParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_CheckNameCollision_WithNameCollision_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckNameCollisionWithNameCollisionParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Message')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+ ];
+}
+
class CheckNameCollisionWithNameCollisionResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1297,6 +1554,20 @@ class CheckNameCollisionWithNameCollisionResponseParams extends bindings.Struct
}
}
+mojom_types.MojomStruct _regression_tests_CheckNameCollision_WithNameCollision_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckNameCollisionWithNameCollisionResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Message')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+ ];
+}
+
class CheckEnumCapsSetEnumWithInternalAllCapsParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1368,6 +1639,21 @@ class CheckEnumCapsSetEnumWithInternalAllCapsParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_CheckEnumCaps_SetEnumWithINTERNALAllCaps_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CheckEnumCapsSetEnumWithInternalAllCapsParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_regression_tests_EnumWithINTERNALAllCaps__'
+ ..typeKey = '_regression_tests_EnumWithINTERNALAllCaps__'
+ )),
+ ];
+}
+
class TestInterfaceSomeMessageParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1426,6 +1712,12 @@ class TestInterfaceSomeMessageParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_TestInterface_SomeMessage_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TestInterfaceSomeMessageParams')
+ ..fields = <mojom_types.StructField>[];
+}
+
class Regression551GetParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1509,6 +1801,18 @@ class Regression551GetParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_Regression551_Get_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Regression551GetParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyPrefixes')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)))),
+ ];
+}
+
class Regression551GetResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1576,12 +1880,52 @@ class Regression551GetResponseParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _regression_tests_Regression551_Get_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Regression551GetResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
+ ];
+}
+
+
const int kCheckMethodWithEmptyResponse_withoutParameterAndEmptyResponse_name = 0;
const int kCheckMethodWithEmptyResponse_withParameterAndEmptyResponse_name = 1;
const String CheckMethodWithEmptyResponseName =
'regression_tests::CheckMethodWithEmptyResponse';
+mojom_types.MojomInterface _regression_tests_CheckMethodWithEmptyResponse__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CheckMethodWithEmptyResponse")
+ ..interfaceName = "CheckMethodWithEmptyResponse"
+ ..methods = <int, mojom_types.MojomMethod>{
+kCheckMethodWithEmptyResponse_withoutParameterAndEmptyResponse_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "WithoutParameterAndEmptyResponse")
+ ..ordinal = kCheckMethodWithEmptyResponse_withoutParameterAndEmptyResponse_name
+ ..responseParams = _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_ResponseParams__()..parameters = _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_Params__(),kCheckMethodWithEmptyResponse_withParameterAndEmptyResponse_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "WithParameterAndEmptyResponse")
+ ..ordinal = kCheckMethodWithEmptyResponse_withParameterAndEmptyResponse_name
+ ..responseParams = _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_ResponseParams__()..parameters = _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_Params__(),
+ };
+}
+
+class _CheckMethodWithEmptyResponseServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _regression_tests_CheckMethodWithEmptyResponse__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CheckMethodWithEmptyResponse {
dynamic withoutParameterAndEmptyResponse([Function responseFactory = null]);
dynamic withParameterAndEmptyResponse(bool b,[Function responseFactory = null]);
@@ -1606,6 +1950,9 @@ class CheckMethodWithEmptyResponseProxyImpl extends bindings.Proxy {
String get name => CheckMethodWithEmptyResponseName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckMethodWithEmptyResponseServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kCheckMethodWithEmptyResponse_withoutParameterAndEmptyResponse_name:
@@ -1845,6 +2192,9 @@ class CheckMethodWithEmptyResponseStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckMethodWithEmptyResponseServiceDescription();
}
const int kCheckNameCollision_withNameCollision_name = 0;
@@ -1852,6 +2202,32 @@ const int kCheckNameCollision_withNameCollision_name = 0;
const String CheckNameCollisionName =
'regression_tests::CheckNameCollision';
+mojom_types.MojomInterface _regression_tests_CheckNameCollision__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CheckNameCollision")
+ ..interfaceName = "CheckNameCollision"
+ ..methods = <int, mojom_types.MojomMethod>{
+kCheckNameCollision_withNameCollision_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "WithNameCollision")
+ ..ordinal = kCheckNameCollision_withNameCollision_name
+ ..responseParams = _regression_tests_CheckNameCollision_WithNameCollision_ResponseParams__()..parameters = _regression_tests_CheckNameCollision_WithNameCollision_Params__(),
+ };
+}
+
+class _CheckNameCollisionServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _regression_tests_CheckNameCollision__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CheckNameCollision {
dynamic withNameCollision(bool message,bool response,[Function responseFactory = null]);
@@ -1875,6 +2251,9 @@ class CheckNameCollisionProxyImpl extends bindings.Proxy {
String get name => CheckNameCollisionName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckNameCollisionServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kCheckNameCollision_withNameCollision_name:
@@ -2063,6 +2442,9 @@ class CheckNameCollisionStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckNameCollisionServiceDescription();
}
const int kCheckEnumCaps_setEnumWithInternalAllCaps_name = 0;
@@ -2070,6 +2452,31 @@ const int kCheckEnumCaps_setEnumWithInternalAllCaps_name = 0;
const String CheckEnumCapsName =
'regression_tests::CheckEnumCaps';
+mojom_types.MojomInterface _regression_tests_CheckEnumCaps__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CheckEnumCaps")
+ ..interfaceName = "CheckEnumCaps"
+ ..methods = <int, mojom_types.MojomMethod>{
+kCheckEnumCaps_setEnumWithInternalAllCaps_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "SetEnumWithInternalAllCaps")
+ ..ordinal = kCheckEnumCaps_setEnumWithInternalAllCaps_name..parameters = _regression_tests_CheckEnumCaps_SetEnumWithINTERNALAllCaps_Params__(),
+ };
+}
+
+class _CheckEnumCapsServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _regression_tests_CheckEnumCaps__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class CheckEnumCaps {
void setEnumWithInternalAllCaps(EnumWithInternalAllCaps e);
@@ -2093,6 +2500,9 @@ class CheckEnumCapsProxyImpl extends bindings.Proxy {
String get name => CheckEnumCapsName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckEnumCapsServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -2238,6 +2648,9 @@ class CheckEnumCapsStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _CheckEnumCapsServiceDescription();
}
const int kTestInterface_someMessage_name = 0;
@@ -2245,6 +2658,31 @@ const int kTestInterface_someMessage_name = 0;
const String TestInterfaceName =
'regression_tests::TestInterface';
+mojom_types.MojomInterface _regression_tests_TestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "TestInterface")
+ ..interfaceName = "TestInterface"
+ ..methods = <int, mojom_types.MojomMethod>{
+kTestInterface_someMessage_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "SomeMessage")
+ ..ordinal = kTestInterface_someMessage_name..parameters = _regression_tests_TestInterface_SomeMessage_Params__(),
+ };
+}
+
+class _TestInterfaceServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _regression_tests_TestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class TestInterface {
void someMessage();
@@ -2268,6 +2706,9 @@ class TestInterfaceProxyImpl extends bindings.Proxy {
String get name => TestInterfaceName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _TestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -2412,6 +2853,9 @@ class TestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _TestInterfaceServiceDescription();
}
const int kRegression551_get_name = 0;
@@ -2419,6 +2863,32 @@ const int kRegression551_get_name = 0;
const String Regression551Name =
'regression_tests::Regression551';
+mojom_types.MojomInterface _regression_tests_Regression551__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Regression551")
+ ..interfaceName = "Regression551"
+ ..methods = <int, mojom_types.MojomMethod>{
+kRegression551_get_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Get")
+ ..ordinal = kRegression551_get_name
+ ..responseParams = _regression_tests_Regression551_Get_ResponseParams__()..parameters = _regression_tests_Regression551_Get_Params__(),
+ };
+}
+
+class _Regression551ServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _regression_tests_Regression551__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class Regression551 {
dynamic get(List<String> keyPrefixes,[Function responseFactory = null]);
@@ -2442,6 +2912,9 @@ class Regression551ProxyImpl extends bindings.Proxy {
String get name => Regression551Name;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _Regression551ServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kRegression551_get_name:
@@ -2628,6 +3101,228 @@ class Regression551Stub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _Regression551ServiceDescription();
+}
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<String, mojom_types.UserDefinedType>();
+
+ map["_regression_tests_EnumWithReference__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_EnumWithReference__();
+
+
+ map["_regression_tests_EnumWithLowercase__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_EnumWithLowercase__();
+
+
+ map["_regression_tests_EnumWithNumbers__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_EnumWithNumbers__();
+
+
+ map["_regression_tests_EnumWithK__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_EnumWithK__();
+
+
+ map["_regression_tests_EnumWithINTERNALAllCaps__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_EnumWithINTERNALAllCaps__();
+
+
+ map["_regression_tests_NormalEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _regression_tests_NormalEnum__();
+
+
+ map["_regression_tests_Edge__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_Edge__();
+
+
+ map["_regression_tests_Vertex__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_Vertex__();
+
+
+ map["_regression_tests_EmptyStruct__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_EmptyStruct__();
+
+
+
+
+
+
+
+
+
+ map["_regression_tests_A__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_A__();
+
+
+ map["_regression_tests_B__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_B__();
+
+
+
+
+
+
+
+
+ map["_regression_tests_StructWithHandleCalledHandles__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_StructWithHandleCalledHandles__();
+
+
+
+
+
+ map["_regression_tests_StructWithArrayOfHandlesCalledHandles__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_StructWithArrayOfHandlesCalledHandles__();
+
+
+
+
+
+ map["_regression_tests_StructWithInterfaceCalledHandles__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_StructWithInterfaceCalledHandles__();
+
+
+ map["_regression_tests_TestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _regression_tests_TestInterface__();
+
+
+
+
+ map["_regression_tests_ContainsArrayOfEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_ContainsArrayOfEnum__();
+
+
+
+
+
+ map["_regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_Params__();
+
+
+
+ map["_regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyResponse_ResponseParams__();
+
+
+
+ map["_regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_Params__();
+
+
+
+
+
+ map["_regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyResponse_ResponseParams__();
+
+
+
+ map["_regression_tests_CheckNameCollision_WithNameCollision_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckNameCollision_WithNameCollision_Params__();
+
+
+
+
+
+
+
+ map["_regression_tests_CheckNameCollision_WithNameCollision_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckNameCollision_WithNameCollision_ResponseParams__();
+
+
+
+
+
+
+
+ map["_regression_tests_CheckEnumCaps_SetEnumWithINTERNALAllCaps_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_CheckEnumCaps_SetEnumWithINTERNALAllCaps_Params__();
+
+
+
+
+
+ map["_regression_tests_TestInterface_SomeMessage_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_TestInterface_SomeMessage_Params__();
+
+
+
+ map["_regression_tests_Regression551_Get_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_Regression551_Get_Params__();
+
+
+
+
+
+ map["_regression_tests_Regression551_Get_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _regression_tests_Regression551_Get_ResponseParams__();
+
+
+
+
+
+ map["_regression_tests_CheckMethodWithEmptyResponse__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _regression_tests_CheckMethodWithEmptyResponse__();
+
+
+ map["_regression_tests_CheckNameCollision__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _regression_tests_CheckNameCollision__();
+
+
+ map["_regression_tests_CheckEnumCaps__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _regression_tests_CheckEnumCaps__();
+
+
+
+ map["_regression_tests_Regression551__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _regression_tests_Regression551__();
+
+ return map;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
}

Powered by Google App Engine
This is Rietveld 408576698