Revision a72a06f7e3d919f8d4f08cb3171291cf6482fd85 authored by Simon Pieters on 08 June 2018, 15:54:45 UTC, committed by Simon Pieters on 08 June 2018, 15:54:45 UTC
Part of https://github.com/whatwg/html/pull/3499.

This does not yet test :heading().
1 parent 7684fe3
Raw File
accelerometer.idl
[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface Accelerometer : Sensor {
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

enum AccelerometerLocalCoordinateSystem { "device", "screen" };

dictionary AccelerometerSensorOptions : SensorOptions {
  AccelerometerLocalCoordinateSystem referenceFrame = "device";
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface GravitySensor : Accelerometer {
};
back to top