| 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 10bddbaa98389df6a52d72fd8194bb8ba15d536c..da82e0ff707448bd2d5e759d0074597095047a83 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/Sensor.h
|
| +++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
|
| @@ -74,6 +74,9 @@ class Sensor : public EventTargetWithInlineData,
|
| // parameters if needed.
|
| virtual SensorConfigurationPtr createSensorConfig();
|
| double readingValue(int index, bool& isNull) const;
|
| + double readingValueUnchecked(int index) const;
|
| + bool canReturnReadings() const;
|
| + bool isActivated() const { return m_state == SensorState::Activated; }
|
|
|
| private:
|
| void initSensorProxyIfNeeded();
|
| @@ -103,8 +106,6 @@ class Sensor : public EventTargetWithInlineData,
|
| void notifyOnActivate();
|
| void notifyError(DOMException* error);
|
|
|
| - bool canReturnReadings() const;
|
| -
|
| private:
|
| SensorOptions m_sensorOptions;
|
| device::mojom::blink::SensorType m_type;
|
|
|