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

Unified Diff: device/sensors/sensor_factory.mojom

Issue 2051083002: WIP : Generic Sensor API implementation Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 6 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
« no previous file with comments | « device/sensors/sensor.mojom ('k') | mojo/edk/js/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « device/sensors/sensor.mojom ('k') | mojo/edk/js/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698