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

Unified Diff: sky/services/sensors/sensors.mojom

Issue 1093033002: Add sensors application to mojo (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove extra constructor Created 5 years, 8 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 | « sky/services/sensors/org/domokit/sensors/SensorServiceImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/sensors/sensors.mojom
diff --git a/sky/services/sensors/sensors.mojom b/sky/services/sensors/sensors.mojom
deleted file mode 100644
index 0e3b704f51581f65abb3d32371f3abb3d8c7a77a..0000000000000000000000000000000000000000
--- a/sky/services/sensors/sensors.mojom
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 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 sensors;
-
-enum SensorType {
- ACCELEROMETER,
- AMBIENT_TEMPERATURE,
- GAME_ROTATION_VECTOR,
- GEOMAGNETIC_ROTATION_VECTOR,
- GRAVITY,
- GYROSCOPE,
- GYROSCOPE_UNCALIBRATED,
- HEART_RATE,
- LIGHT,
- LINEAR_ACCELERATION,
- MAGNETIC_FIELD,
- MAGNETIC_FIELD_UNCALIBRATED,
- PRESSURE,
- PROXIMITY,
- RELATIVE_HUMIDITY,
- ROTATION_VECTOR,
- SIGNIFICANT_MOTION,
- STEP_COUNTER,
- STEP_DETECTOR,
-};
-
-struct SensorData {
- int32 accuracy;
- int64 time_stamp;
- array<float> values;
-};
-
-interface SensorListener {
- OnAccuracyChanged(int32 accuracy);
- OnSensorChanged(SensorData data);
-};
-
-interface SensorService {
- AddListener(SensorType type, SensorListener listener);
-};
« no previous file with comments | « sky/services/sensors/org/domokit/sensors/SensorServiceImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698