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

Unified Diff: third_party/WebKit/Source/modules/sensor/Sensor.h

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: Comment from Tim Created 4 years, 1 month 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: third_party/WebKit/Source/modules/sensor/Sensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.h b/third_party/WebKit/Source/modules/sensor/Sensor.h
index 2020d7633eb5887760099a41113172e9033b391e..db803942314c1af8f82f6fea213f54881594da49 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
@@ -71,9 +71,11 @@ class Sensor : public EventTargetWithInlineData,
using SensorConfigurationPtr = device::mojom::blink::SensorConfigurationPtr;
using SensorConfiguration = device::mojom::blink::SensorConfiguration;
- virtual SensorConfigurationPtr createSensorConfig(
- const SensorOptions&,
- const SensorConfiguration& defaultConfiguration) = 0;
+
+ // The default implementation will init frequency configuration parameter,
+ // concrete sensor implementations can override this method to handle other
+ // parameters if needed.
+ virtual SensorConfigurationPtr createSensorConfig();
private:
void initSensorProxyIfNeeded();
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp ('k') | third_party/WebKit/Source/modules/sensor/Sensor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698