Index: device/generic_sensor/platform_sensor.h |
diff --git a/device/generic_sensor/platform_sensor.h b/device/generic_sensor/platform_sensor.h |
index 0a2948ffb48b63989dd92509b602b730ebf7735c..0805a723a2af5df211ae6e38d61a672671346cf4 100644 |
--- a/device/generic_sensor/platform_sensor.h |
+++ b/device/generic_sensor/platform_sensor.h |
@@ -41,6 +41,11 @@ class DEVICE_GENERIC_SENSOR_EXPORT PlatformSensor |
virtual mojom::ReportingMode GetReportingMode() = 0; |
virtual PlatformSensorConfiguration GetDefaultConfiguration() = 0; |
+ // Can be overriden to return the sensor maximum sampling frequency |
+ // value obtained from the platfrom (if available). |
+ // The default implementation returns default frequency. |
+ virtual double GetMaximumSupportedFrequency(); |
+ |
mojom::SensorType GetType() const; |
bool StartListening(Client* client, |