| Index: mojo/dart/packages/mojo_services/lib/mojo/location_service.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/location_service.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/location_service.mojom.dart
|
| index b2592b40ca0430106dcc2b6b80ae69103d5d6202..6cd6bc82f7868e8341d8c492d0e0d49cd53512e5 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/location_service.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/location_service.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/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/mojo/location.mojom.dart' as location_mojom;
|
|
|
|
|
| @@ -83,6 +85,8 @@ class _LocationServiceGetNextLocationParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class LocationServiceGetNextLocationResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -150,6 +154,9 @@ class LocationServiceGetNextLocationResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _LocationService_getNextLocationName = 0;
|
|
|
| class LocationServiceUpdatePriority extends bindings.MojoEnum {
|
| @@ -210,12 +217,26 @@ class LocationServiceUpdatePriority extends bindings.MojoEnum {
|
| return 'LocationServiceUpdatePriority.priorityLowPower';
|
| case priorityNoPower:
|
| return 'LocationServiceUpdatePriority.priorityNoPower';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +
|
| +
|
| +
|
| +
|
| +class _LocationServiceServiceDescription implements service_describer.ServiceDescription {
|
| + dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class LocationService {
|
| static const String serviceName = "mojo::LocationService";
|
| dynamic getNextLocation(LocationServiceUpdatePriority priority,[Function responseFactory = null]);
|
| @@ -237,6 +258,9 @@ class _LocationServiceProxyImpl extends bindings.Proxy {
|
| return new _LocationServiceProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _LocationServiceServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _LocationService_getNextLocationName:
|
| @@ -422,6 +446,10 @@ class LocationServiceStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _LocationServiceServiceDescription();
|
| }
|
|
|
|
|
| +
|
|
|