Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1477)

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/location_service.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
+
+

Powered by Google App Engine
This is Rietveld 408576698