diff options
Diffstat (limited to '')
-rw-r--r-- | test/wpt/tests/interfaces/proximity.idl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/wpt/tests/interfaces/proximity.idl b/test/wpt/tests/interfaces/proximity.idl new file mode 100644 index 0000000..3cbfbd5 --- /dev/null +++ b/test/wpt/tests/interfaces/proximity.idl @@ -0,0 +1,18 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Proximity Sensor (https://w3c.github.io/proximity/) + +[SecureContext, Exposed=Window] +interface ProximitySensor : Sensor { + constructor(optional SensorOptions sensorOptions = {}); + readonly attribute double? distance; + readonly attribute double? max; + readonly attribute boolean? near; +}; + +dictionary ProximityReadingValues { + required double? distance; + required double? max; + required boolean? near; +}; |