tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

generic-sensor.idl (900B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Generic Sensor API (https://w3c.github.io/sensors/)
      5 
      6 [SecureContext, Exposed=(DedicatedWorker, Window)]
      7 interface Sensor : EventTarget {
      8  readonly attribute boolean activated;
      9  readonly attribute boolean hasReading;
     10  readonly attribute DOMHighResTimeStamp? timestamp;
     11  undefined start();
     12  undefined stop();
     13  attribute EventHandler onreading;
     14  attribute EventHandler onactivate;
     15  attribute EventHandler onerror;
     16 };
     17 
     18 dictionary SensorOptions {
     19  double frequency;
     20 };
     21 
     22 [SecureContext, Exposed=(DedicatedWorker, Window)]
     23 interface SensorErrorEvent : Event {
     24  constructor(DOMString type, SensorErrorEventInit errorEventInitDict);
     25  readonly attribute DOMException error;
     26 };
     27 
     28 dictionary SensorErrorEventInit : EventInit {
     29  required DOMException error;
     30 };