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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProxy.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
Index: third_party/WebKit/Source/modules/sensor/SensorProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
index 91434ebf072c9752a682972e0fb2d15347e00864..65baab79d07007162208214bb48d54b5a0d7c56b 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
@@ -81,7 +81,9 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
const device::mojom::blink::SensorConfiguration* defaultConfig() const;
- double maximumFrequency() const { return m_maximumFrequency; }
+ const std::pair<double, double>& frequencyLimits() const {
+ return m_frequencyLimits;
+ }
Document* document() const;
const WTF::Vector<double>& frequenciesUsed() const {
@@ -138,7 +140,7 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
mojo::ScopedSharedBufferMapping m_sharedBuffer;
bool m_suspended;
device::SensorReading m_reading;
- double m_maximumFrequency;
+ std::pair<double, double> m_frequencyLimits;
Member<SensorReadingUpdater> m_readingUpdater;
WTF::Vector<double> m_frequenciesUsed;
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.cpp ('k') | third_party/WebKit/Source/modules/sensor/SensorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698