| Index: mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
|
| index ab3ebb3e70e3f04d65239af9460cefc31ccad3fc..1e30a1fcb6e814070386806f6d4d39d85ebb5d31 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/net_address.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;
|
| +
|
| class NetAddressFamily extends bindings.MojoEnum {
|
| static const UNSPECIFIED = const NetAddressFamily._(0);
|
| static const IPV4 = const NetAddressFamily._(1);
|
| @@ -59,12 +61,29 @@ class NetAddressFamily extends bindings.MojoEnum {
|
| return 'NetAddressFamily.IPV4';
|
| case IPV6:
|
| return 'NetAddressFamily.IPV6';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => value;
|
| }
|
|
|
| +mojom_types.MojomEnum _net_address_NetAddressFamily__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "NetAddressFamily")
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "UNSPECIFIED")
|
| + ..enumTypeKey = '_net_address_NetAddressFamily__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "IP_V4")
|
| + ..enumTypeKey = '_net_address_NetAddressFamily__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "IP_V6")
|
| + ..enumTypeKey = '_net_address_NetAddressFamily__'
|
| + ..intValue = 2,];
|
| +}
|
| +
|
|
|
|
|
| class NetAddressIPv4 extends bindings.Struct {
|
| @@ -142,6 +161,21 @@ class NetAddressIPv4 extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _net_address_NetAddressIPv4__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NetAddressIPv4')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Port')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT16),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Addr')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 4
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
|
| + ];
|
| +}
|
| +
|
|
|
| class NetAddressIPv6 extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -218,6 +252,21 @@ class NetAddressIPv6 extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _net_address_NetAddressIPv6__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NetAddressIPv6')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Port')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT16),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Addr')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 16
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
|
| + ];
|
| +}
|
| +
|
|
|
| class NetAddress extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -309,4 +358,97 @@ class NetAddress extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _net_address_NetAddress__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NetAddress')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Family')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_net_address_NetAddressFamily__'
|
| + ..typeKey = '_net_address_NetAddressFamily__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Ipv4')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_net_address_NetAddressIPv4__'
|
| + ..typeKey = '_net_address_NetAddressIPv4__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Ipv6')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_net_address_NetAddressIPv6__'
|
| + ..typeKey = '_net_address_NetAddressIPv6__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<String, mojom_types.UserDefinedType>();
|
| +
|
| + map["_net_address_NetAddressFamily__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _net_address_NetAddressFamily__();
|
| +
|
| +
|
| + map["_net_address_NetAddressIPv4__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _net_address_NetAddressIPv4__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_net_address_NetAddressIPv6__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _net_address_NetAddressIPv6__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_net_address_NetAddress__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _net_address_NetAddress__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| +}
|
| +
|
|
|
|
|