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

Unified Diff: device/generic_sensor/platform_sensor.h

Issue 2704123006: [Sensors] Clamp given sampling frequency to the minimum supported one (Closed)
Patch Set: rebased Created 3 years, 10 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 | « no previous file | device/generic_sensor/platform_sensor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor.h
diff --git a/device/generic_sensor/platform_sensor.h b/device/generic_sensor/platform_sensor.h
index 62320a5c48dba20754d5cd9080b64ef3df70706e..2df4ade2b055c2e295971f9f386437be9f9415dd 100644
--- a/device/generic_sensor/platform_sensor.h
+++ b/device/generic_sensor/platform_sensor.h
@@ -48,6 +48,10 @@ class DEVICE_GENERIC_SENSOR_EXPORT PlatformSensor
// The default implementation returns default frequency.
virtual double GetMaximumSupportedFrequency();
+ // Can be overriden to return the sensor minimum sampling frequency.
+ // The default implementation returns '1.0 / (60 * 60)', i.e. once per hour.
+ virtual double GetMinimumSupportedFrequency();
+
mojom::SensorType GetType() const;
bool StartListening(Client* client,
« no previous file with comments | « no previous file | device/generic_sensor/platform_sensor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698