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

Unified Diff: device/generic_sensor/public/cpp/sensor_reading.h

Issue 2668173003: [Sensors] Remove SensorReading interfaces (Closed)
Patch Set: updated global-interface-listing.html Created 3 years, 11 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
Index: device/generic_sensor/public/cpp/sensor_reading.h
diff --git a/device/generic_sensor/public/cpp/sensor_reading.h b/device/generic_sensor/public/cpp/sensor_reading.h
index bd1f7d08057a76eb0c5d5d314dd28b4c8dfb0b09..90848d7a6adf532b424c2e61e37dbadd4c828370 100644
--- a/device/generic_sensor/public/cpp/sensor_reading.h
+++ b/device/generic_sensor/public/cpp/sensor_reading.h
@@ -45,7 +45,8 @@ struct DEVICE_GENERIC_SENSOR_PUBLIC_EXPORT SensorReading {
~SensorReading();
SensorReading(const SensorReading& other);
SensorReadingField<double> timestamp;
- SensorReadingField<double> values[3];
+ constexpr static int kValuesCount = 3;
+ SensorReadingField<double> values[kValuesCount];
};
// This structure represents sensor reading buffer: sensor reading and seqlock

Powered by Google App Engine
This is Rietveld 408576698