Index: third_party/WebKit/Source/modules/sensor/Sensor.idl |
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.idl b/third_party/WebKit/Source/modules/sensor/Sensor.idl |
index 45f02c4944cf3416fee2fdbabeb221aa9a309473..2d8004d6265527cdb1e55de5fcadd479e62b4ff0 100644 |
--- a/third_party/WebKit/Source/modules/sensor/Sensor.idl |
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.idl |
@@ -3,22 +3,14 @@ |
// found in the LICENSE file. |
// Specification at: |
-// https://w3c.github.io/sensors/#sensor0 |
- |
-enum SensorState { |
- "unconnected", |
- "activating", |
- "activated", |
- "idle", |
- "errored" |
-}; |
+// https://w3c.github.io/sensors/#the-sensor-interface |
[ |
ActiveScriptWrappable, |
DependentLifetime, |
RuntimeEnabled=Sensor, |
] interface Sensor : EventTarget { |
- [MeasureAs=GenericSensorState] readonly attribute SensorState state; |
+ [MeasureAs=GenericSensorActivated] readonly attribute boolean activated; |
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp? timestamp; |
[MeasureAs=GenericSensorStart] void start(); |