| Index: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| index b72fe0cbe8ff256a3ec7ddb6c36c593694ea589e..2fa3ee76ab226aee516b16d3539cad7e317b3c46 100644
|
| --- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| +++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.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 Department extends bindings.MojoEnum {
|
| static const SALES = const Department._(0);
|
| static const DEV = const Department._(1);
|
| @@ -52,12 +54,26 @@ class Department extends bindings.MojoEnum {
|
| return 'Department.SALES';
|
| case DEV:
|
| return 'Department.DEV';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => value;
|
| }
|
|
|
| +mojom_types.MojomEnum _versioning_test_client_Department__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Department")
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SALES")
|
| + ..enumTypeKey = '_versioning_test_client_Department__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DEV")
|
| + ..enumTypeKey = '_versioning_test_client_Department__'
|
| + ..intValue = 1,];
|
| +}
|
| +
|
|
|
|
|
| class Employee extends bindings.Struct {
|
| @@ -148,6 +164,30 @@ class Employee extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_Employee__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Employee')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'EmployeeId')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Name')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Department')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_versioning_test_client_Department__'
|
| + ..typeKey = '_versioning_test_client_Department__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseAddEmployeeParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -216,6 +256,21 @@ class HumanResourceDatabaseAddEmployeeParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_AddEmployee_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseAddEmployeeParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Employee')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_versioning_test_client_Employee__'
|
| + ..typeKey = '_versioning_test_client_Employee__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseAddEmployeeResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -283,6 +338,16 @@ class HumanResourceDatabaseAddEmployeeResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_AddEmployee_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseAddEmployeeResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Success')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseQueryEmployeeParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -360,6 +425,20 @@ class HumanResourceDatabaseQueryEmployeeParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_QueryEmployee_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseQueryEmployeeParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Id')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'RetrieveFingerPrint')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseQueryEmployeeResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -438,6 +517,30 @@ class HumanResourceDatabaseQueryEmployeeResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_QueryEmployee_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseQueryEmployeeResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Employee')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_versioning_test_client_Employee__'
|
| + ..typeKey = '_versioning_test_client_Employee__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'FingerPrint')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseAttachFingerPrintParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -514,6 +617,21 @@ class HumanResourceDatabaseAttachFingerPrintParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseAttachFingerPrintParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Id')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'FingerPrint')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseAttachFingerPrintResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -581,6 +699,16 @@ class HumanResourceDatabaseAttachFingerPrintResponseParams extends bindings.Stru
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseAttachFingerPrintResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Success')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
|
| + ];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseListEmployeeIdsParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -639,6 +767,12 @@ class HumanResourceDatabaseListEmployeeIdsParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseListEmployeeIdsParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class HumanResourceDatabaseListEmployeeIdsResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -706,6 +840,20 @@ class HumanResourceDatabaseListEmployeeIdsResponseParams extends bindings.Struct
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'HumanResourceDatabaseListEmployeeIdsResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Ids')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64))),
|
| + ];
|
| +}
|
| +
|
| +
|
| const int kHumanResourceDatabase_addEmployee_name = 0;
|
| const int kHumanResourceDatabase_queryEmployee_name = 1;
|
| const int kHumanResourceDatabase_attachFingerPrint_name = 2;
|
| @@ -714,6 +862,41 @@ const int kHumanResourceDatabase_listEmployeeIds_name = 3;
|
| const String HumanResourceDatabaseName =
|
| 'mojo::test::versioning::HumanResourceDatabase';
|
|
|
| +mojom_types.MojomInterface _versioning_test_client_HumanResourceDatabase__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "HumanResourceDatabase")
|
| + ..interfaceName = "HumanResourceDatabase"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kHumanResourceDatabase_addEmployee_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "AddEmployee")
|
| + ..ordinal = kHumanResourceDatabase_addEmployee_name
|
| + ..responseParams = _versioning_test_client_HumanResourceDatabase_AddEmployee_ResponseParams__()..parameters = _versioning_test_client_HumanResourceDatabase_AddEmployee_Params__(),kHumanResourceDatabase_queryEmployee_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "QueryEmployee")
|
| + ..ordinal = kHumanResourceDatabase_queryEmployee_name
|
| + ..responseParams = _versioning_test_client_HumanResourceDatabase_QueryEmployee_ResponseParams__()..parameters = _versioning_test_client_HumanResourceDatabase_QueryEmployee_Params__(),kHumanResourceDatabase_attachFingerPrint_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "AttachFingerPrint")
|
| + ..ordinal = kHumanResourceDatabase_attachFingerPrint_name
|
| + ..responseParams = _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_ResponseParams__()..parameters = _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_Params__(),kHumanResourceDatabase_listEmployeeIds_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "ListEmployeeIds")
|
| + ..ordinal = kHumanResourceDatabase_listEmployeeIds_name
|
| + ..responseParams = _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_ResponseParams__()..parameters = _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _HumanResourceDatabaseServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _versioning_test_client_HumanResourceDatabase__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class HumanResourceDatabase {
|
| dynamic addEmployee(Employee employee,[Function responseFactory = null]);
|
| dynamic queryEmployee(int id,bool retrieveFingerPrint,[Function responseFactory = null]);
|
| @@ -740,6 +923,9 @@ class HumanResourceDatabaseProxyImpl extends bindings.Proxy {
|
|
|
| String get name => HumanResourceDatabaseName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HumanResourceDatabaseServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case kHumanResourceDatabase_addEmployee_name:
|
| @@ -1096,6 +1282,117 @@ class HumanResourceDatabaseStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 2;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HumanResourceDatabaseServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<String, mojom_types.UserDefinedType>();
|
| +
|
| + map["_versioning_test_client_Department__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _versioning_test_client_Department__();
|
| +
|
| +
|
| + map["_versioning_test_client_Employee__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_Employee__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_AddEmployee_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_AddEmployee_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_AddEmployee_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_AddEmployee_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_QueryEmployee_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_QueryEmployee_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_QueryEmployee_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_QueryEmployee_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_AttachFingerPrint_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_AttachFingerPrint_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_AttachFingerPrint_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_ListEmployeeIds_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_Params__();
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase_ListEmployeeIds_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _versioning_test_client_HumanResourceDatabase_ListEmployeeIds_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_versioning_test_client_HumanResourceDatabase__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _versioning_test_client_HumanResourceDatabase__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|