| Index: mojo/dart/packages/mojo_services/lib/mojo/geocoder.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/geocoder.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/geocoder.mojom.dart
|
| index 001daf1bd69edebf5eedb1f42144feea90611266..6dac9aa8c7a79db4ea15e905287e2ef8fce62447 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/geocoder.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/geocoder.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;
|
| import 'package:mojo_services/mojo/location.mojom.dart' as location_mojom;
|
|
|
|
|
| @@ -73,6 +75,12 @@ class LocationType extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_LocationType__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'LocationType')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class Bounds extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -151,6 +159,30 @@ class Bounds extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Bounds__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Bounds')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Northeast')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_location_Location__'
|
| + ..typeKey = '_location_Location__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Southwest')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_location_Location__'
|
| + ..typeKey = '_location_Location__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class ComponentRestrictions extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -254,6 +286,37 @@ class ComponentRestrictions extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_ComponentRestrictions__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ComponentRestrictions')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AdministrativeArea')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Country')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Locality')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PostalCode')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Route')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| + ];
|
| +}
|
| +
|
|
|
| class Options extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -341,6 +404,39 @@ class Options extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Options__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Options')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Restrictions')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_geocoder_ComponentRestrictions__'
|
| + ..typeKey = '_geocoder_ComponentRestrictions__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Location')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_location_Location__'
|
| + ..typeKey = '_location_Location__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Region')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = true)),
|
| + ];
|
| +}
|
| +
|
|
|
| class Geometry extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -439,6 +535,50 @@ class Geometry extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Geometry__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Geometry')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Location')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_location_Location__'
|
| + ..typeKey = '_location_Location__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'LocationType')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geocoder_LocationType__'
|
| + ..typeKey = '_geocoder_LocationType__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Viewport')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geocoder_Bounds__'
|
| + ..typeKey = '_geocoder_Bounds__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Bounds')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_geocoder_Bounds__'
|
| + ..typeKey = '_geocoder_Bounds__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class Result extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -550,6 +690,36 @@ class Result extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Result__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PartialMatch')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Geometry')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geocoder_Geometry__'
|
| + ..typeKey = '_geocoder_Geometry__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'FormattedAddress')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Types')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))),
|
| + ];
|
| +}
|
| +
|
|
|
| class Status extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -613,6 +783,12 @@ class Status extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Status__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Status')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class GeocoderAddressToLocationParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -690,6 +866,28 @@ class GeocoderAddressToLocationParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Geocoder_AddressToLocation_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GeocoderAddressToLocationParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Address')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Options')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_geocoder_Options__'
|
| + ..typeKey = '_geocoder_Options__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class GeocoderAddressToLocationResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -785,6 +983,29 @@ class GeocoderAddressToLocationResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Geocoder_AddressToLocation_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GeocoderAddressToLocationResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Status')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Results')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geocoder_Result__'
|
| + ..typeKey = '_geocoder_Result__'
|
| + )))),
|
| + ];
|
| +}
|
| +
|
|
|
| class GeocoderLocationToAddressParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -863,6 +1084,32 @@ class GeocoderLocationToAddressParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Geocoder_LocationToAddress_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GeocoderLocationToAddressParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Location')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_location_Location__'
|
| + ..typeKey = '_location_Location__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Options')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_geocoder_Options__'
|
| + ..typeKey = '_geocoder_Options__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class GeocoderLocationToAddressResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -958,12 +1205,65 @@ class GeocoderLocationToAddressResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _geocoder_Geocoder_LocationToAddress_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GeocoderLocationToAddressResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Status')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Results')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_geocoder_Result__'
|
| + ..typeKey = '_geocoder_Result__'
|
| + )))),
|
| + ];
|
| +}
|
| +
|
| +
|
| const int kGeocoder_addressToLocation_name = 0;
|
| const int kGeocoder_locationToAddress_name = 1;
|
|
|
| const String GeocoderName =
|
| 'mojo::Geocoder';
|
|
|
| +mojom_types.MojomInterface _geocoder_Geocoder__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Geocoder")
|
| + ..interfaceName = "Geocoder"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kGeocoder_addressToLocation_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "AddressToLocation")
|
| + ..ordinal = kGeocoder_addressToLocation_name
|
| + ..responseParams = _geocoder_Geocoder_AddressToLocation_ResponseParams__()..parameters = _geocoder_Geocoder_AddressToLocation_Params__(),kGeocoder_locationToAddress_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "LocationToAddress")
|
| + ..ordinal = kGeocoder_locationToAddress_name
|
| + ..responseParams = _geocoder_Geocoder_LocationToAddress_ResponseParams__()..parameters = _geocoder_Geocoder_LocationToAddress_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _GeocoderServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _geocoder_Geocoder__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class Geocoder {
|
| dynamic addressToLocation(String address,Options options,[Function responseFactory = null]);
|
| dynamic locationToAddress(location_mojom.Location location,Options options,[Function responseFactory = null]);
|
| @@ -988,6 +1288,9 @@ class GeocoderProxyImpl extends bindings.Proxy {
|
|
|
| String get name => GeocoderName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _GeocoderServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case kGeocoder_addressToLocation_name:
|
| @@ -1234,6 +1537,153 @@ class GeocoderStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _GeocoderServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<String, mojom_types.UserDefinedType>();
|
| +
|
| + map["_geocoder_LocationType__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_LocationType__();
|
| +
|
| +
|
| +
|
| + map["_geocoder_Bounds__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Bounds__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_ComponentRestrictions__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_ComponentRestrictions__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Options__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Options__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geometry__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Geometry__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Result__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Result__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Status__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Status__();
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geocoder_AddressToLocation_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Geocoder_AddressToLocation_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geocoder_AddressToLocation_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Geocoder_AddressToLocation_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geocoder_LocationToAddress_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Geocoder_LocationToAddress_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geocoder_LocationToAddress_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _geocoder_Geocoder_LocationToAddress_ResponseParams__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_geocoder_Geocoder__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _geocoder_Geocoder__();
|
| +
|
| +location_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|