| Index: device/sensors/sensor_factory.mojom
|
| diff --git a/device/sensors/sensor_factory.mojom b/device/sensors/sensor_factory.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c6f8a79e9ca72b1f888ab5cef16bcf70051893f3
|
| --- /dev/null
|
| +++ b/device/sensors/sensor_factory.mojom
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module device.sensors;
|
| +
|
| +import "sensor.mojom";
|
| +
|
| +enum Result {
|
| + SUCCESS,
|
| + ERROR
|
| +};
|
| +
|
| +enum ReportingMode {
|
| + ON_CHANGE,
|
| + CONTINUOUS
|
| +};
|
| +
|
| +interface SensorFactory {
|
| + CreateSensor(SensorType type, Sensor& sensor_request) =>
|
| + (Result result, handle<shared_buffer>? shmem, uint64 offset, uint64 size, ReportingMode mode);
|
| +};
|
|
|