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 401ae29b3f59ff6137304899ebbfe06c1d6a02d8..d49e087da0bcbb4775e7de6748aef1f325f2f620 100644 |
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h |
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h |
@@ -49,6 +49,9 @@ public: |
void addConfiguration(device::mojom::blink::SensorConfigurationPtr, std::unique_ptr<Function<void(bool)>>); |
void removeConfiguration(device::mojom::blink::SensorConfigurationPtr, std::unique_ptr<Function<void(bool)>>); |
+ void suspend(); |
+ void resume(); |
+ |
device::mojom::blink::SensorType type() const { return m_type; } |
device::mojom::blink::ReportingMode reportingMode() const { return m_mode; } |
@@ -95,6 +98,7 @@ private: |
mojo::ScopedSharedBufferHandle m_sharedBufferHandle; |
mojo::ScopedSharedBufferMapping m_sharedBuffer; |
Reading m_reading; |
+ bool m_suspended; |
}; |
} // namespace blink |