Chromium Code Reviews| 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 05c7c446b6f7d8a58ec576cd661ee3a616593ddb..fbc3a8a4ccc5497652c51b0ba873d085e103c32e 100644 |
| --- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h |
| +++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h |
| @@ -67,6 +67,8 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>, |
| const device::mojom::blink::SensorConfiguration* defaultConfig() const; |
| + double maximumFrequency() const; |
|
timvolodine
2016/11/03 17:32:56
nit: maybe inline?
Mikhail
2016/11/04 21:17:45
indeed, thanks
|
| + |
| // Updates internal reading from shared buffer. |
| void updateInternalReading(); |
| @@ -106,6 +108,7 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>, |
| mojo::ScopedSharedBufferMapping m_sharedBuffer; |
| Reading m_reading; |
| bool m_suspended; |
| + double m_maximumFrequency; |
| using ReadingBuffer = device::SensorReadingSharedBuffer; |
| static_assert( |
| sizeof(ReadingBuffer) == |