summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/proximity.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/proximity.idl')
-rw-r--r--testing/web-platform/tests/interfaces/proximity.idl18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/proximity.idl b/testing/web-platform/tests/interfaces/proximity.idl
new file mode 100644
index 0000000000..3cbfbd5ad1
--- /dev/null
+++ b/testing/web-platform/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;
+};