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..4b8ea0df01df9f20fda140640ca00c5f4bd29016 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,9 +154,11 @@ class LocationServiceGetNextLocationResponseParams extends bindings.Struct { |
} |
} |
+ |
+ |
+ |
const int _LocationService_getNextLocationName = 0; |
- |
-class LocationServiceUpdatePriority extends bindings.MojoEnum { |
+ class LocationServiceUpdatePriority extends bindings.MojoEnum { |
static const LocationServiceUpdatePriority priorityBalancedPowerAccuracy = const LocationServiceUpdatePriority._(0); |
static const LocationServiceUpdatePriority priorityHighAccuracy = const LocationServiceUpdatePriority._(1); |
static const LocationServiceUpdatePriority priorityLowPower = const LocationServiceUpdatePriority._(2); |
@@ -210,12 +216,27 @@ 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]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) => |
+ null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => 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,11 @@ class LocationServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _LocationServiceServiceDescription(); |
} |
+ |
+ |