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 daf1e537a99501a0e55cfc94b01f7ae7edbff8cc..45f02c4944cf3416fee2fdbabeb221aa9a309473 100644 |
--- a/third_party/WebKit/Source/modules/sensor/Sensor.idl |
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.idl |
@@ -18,13 +18,13 @@ enum SensorState { |
DependentLifetime, |
RuntimeEnabled=Sensor, |
] interface Sensor : EventTarget { |
- readonly attribute SensorState state; |
+ [MeasureAs=GenericSensorState] readonly attribute SensorState state; |
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp? timestamp; |
[MeasureAs=GenericSensorStart] void start(); |
[MeasureAs=GenericSensorStop] void stop(); |
- attribute EventHandler onerror; |
- attribute EventHandler onchange; |
- attribute EventHandler onactivate; |
+ [MeasureAs=GenericSensorOnError] attribute EventHandler onerror; |
+ [MeasureAs=GenericSensorOnChange] attribute EventHandler onchange; |
+ [MeasureAs=GenericSensorOnActivate] attribute EventHandler onactivate; |
}; |