| 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..a6713701a308038f670d519fa08ce4f429b7c937 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/sensors/sensors.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/sensors/sensors.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;
|
|
|
| class SensorType extends bindings.MojoEnum {
|
| static const SensorType accelerometer = const SensorType._(0);
|
| @@ -172,6 +174,8 @@ class SensorType extends bindings.MojoEnum {
|
| return 'SensorType.stepCounter';
|
| case stepDetector:
|
| return 'SensorType.stepDetector';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| @@ -180,6 +184,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 +271,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 +340,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 +410,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 +489,22 @@ 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;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => 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,23 @@ 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;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class SensorService {
|
| static const String serviceName = "sensors::SensorService";
|
| void addListener(SensorType type, Object listener);
|
| @@ -684,6 +725,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 +872,10 @@ class SensorServiceStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _SensorServiceServiceDescription();
|
| }
|
|
|
|
|
| +
|
|
|