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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProxy.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/SensorProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
index faf62de4966b148e868f342539482bb56d1af5f9..4c32534e9ae1a38158f008f63bd99cfdfe4bff11 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
@@ -70,6 +70,8 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
const device::mojom::blink::SensorConfiguration* defaultConfig() const;
+ double maximumFrequency() const { return m_maximumFrequency; }
+
// Updates sensor reading from shared buffer.
void updateSensorReading();
@@ -113,6 +115,7 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
bool m_suspended;
Member<SensorReading> m_reading;
std::unique_ptr<SensorReadingFactory> m_readingFactory;
+ double m_maximumFrequency;
using ReadingBuffer = device::SensorReadingSharedBuffer;
static_assert(
« 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