Index: mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart b/mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart |
index c0f172ee88f37db5faf6c0a46d24d8a10b0170a9..d39b42a6686f11fe0f93f8a2999440e6ad02776f 100644 |
--- a/mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart |
@@ -8,7 +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; |
class SensorType extends bindings.MojoEnum { |
static const SensorType accelerometer = const SensorType._(0); |
static const SensorType ambientTemperature = const SensorType._(1); |
@@ -172,6 +173,8 @@ class SensorType extends bindings.MojoEnum { |
return 'SensorType.stepCounter'; |
case stepDetector: |
return 'SensorType.stepDetector'; |
+ default: |
+ return null; |
} |
} |
@@ -180,6 +183,8 @@ class SensorType extends bindings.MojoEnum { |
+ |
+ |
class SensorData extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(32, 0) |
@@ -265,6 +270,8 @@ class SensorData extends bindings.Struct { |
} |
+ |
+ |
class _SensorListenerOnAccuracyChangedParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -332,6 +339,8 @@ class _SensorListenerOnAccuracyChangedParams extends bindings.Struct { |
} |
+ |
+ |
class _SensorListenerOnSensorChangedParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -400,6 +409,8 @@ class _SensorListenerOnSensorChangedParams extends bindings.Struct { |
} |
+ |
+ |
class _SensorServiceAddListenerParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -477,9 +488,23 @@ class _SensorServiceAddListenerParams extends bindings.Struct { |
} |
} |
+ |
+ |
+ |
const int _SensorListener_onAccuracyChangedName = 0; |
const int _SensorListener_onSensorChangedName = 1; |
+ |
+ |
+class _SensorListenerServiceDescription 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 SensorListener { |
static const String serviceName = null; |
void onAccuracyChanged(int accuracy); |
@@ -502,6 +527,9 @@ class _SensorListenerProxyImpl extends bindings.Proxy { |
return new _SensorListenerProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SensorListenerServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -659,10 +687,24 @@ class SensorListenerStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SensorListenerServiceDescription(); |
} |
const int _SensorService_addListenerName = 0; |
+ |
+ |
+class _SensorServiceServiceDescription 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 SensorService { |
static const String serviceName = "sensors::SensorService"; |
void addListener(SensorType type, Object listener); |
@@ -684,6 +726,9 @@ class _SensorServiceProxyImpl extends bindings.Proxy { |
return new _SensorServiceProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SensorServiceServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -828,6 +873,11 @@ class SensorServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SensorServiceServiceDescription(); |
} |
+ |
+ |