https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e2dbf6dc2f45ee245eac9dcbf4deb424c01c9dd1 authored by David Storey on 03 April 2018, 22:37:31 UTC
Add SVGTransformable to list of removed interfaces
Tip revision: e2dbf6d
sensors.idl
[SecureContext, Exposed=Window]
interface Sensor : EventTarget {
  readonly attribute boolean activated;
  readonly attribute boolean hasReading;
  readonly attribute DOMHighResTimeStamp? timestamp;
  void start();
  void stop();
  attribute EventHandler onreading;
  attribute EventHandler onactivate;
  attribute EventHandler onerror;
};

dictionary SensorOptions {
  double frequency;
};

[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
 SecureContext, Exposed=Window]
interface SensorErrorEvent : Event {
  readonly attribute DOMException error;
};

dictionary SensorErrorEventInit : EventInit {
  required DOMException error;
};
back to top