https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a63ba842d508752da2f65ea507cd1d8baff7840e authored by Stephen McGruer on 10 April 2018, 17:53:52 UTC
Web Animations: Fix bugs in procedure to process a keyframes argument
Tip revision: a63ba84
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