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

Unified Diff: device/generic_sensor/public/interfaces/sensor.mojom

Issue 2847253002: [Device Service] Add RELATIVE_ORIENTATION sensor type to //device/generic_sensor (Closed)
Patch Set: fix typo Created 3 years, 7 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/generic_sensor/public/cpp/sensor_reading.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/public/interfaces/sensor.mojom
diff --git a/device/generic_sensor/public/interfaces/sensor.mojom b/device/generic_sensor/public/interfaces/sensor.mojom
index 3a6bfb530c90bf3d9b12c931b8d1eb922e3a61fe..533272a84bab4fa33d767f0b2e897cd8fe7ffc35 100644
--- a/device/generic_sensor/public/interfaces/sensor.mojom
+++ b/device/generic_sensor/public/interfaces/sensor.mojom
@@ -5,6 +5,8 @@
module device.mojom;
// Types of supported sensors
+// When adding new sensor type, update the documentation of sensor data values
+// in SensorReading struct at sensor_reading.h file.
enum SensorType {
FIRST = 1,
AMBIENT_LIGHT = FIRST,
@@ -15,7 +17,8 @@ enum SensorType {
MAGNETOMETER,
PRESSURE,
ABSOLUTE_ORIENTATION,
- LAST = ABSOLUTE_ORIENTATION // Note: LAST is also equal to the types count.
+ RELATIVE_ORIENTATION,
+ LAST = RELATIVE_ORIENTATION // Note: LAST is also equal to the types count.
};
// Reporting mode supported by the Sensor.
« no previous file with comments | « device/generic_sensor/public/cpp/sensor_reading.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698