Skip to content

Commit 4204e40

Browse files
authored
Add a sensor interfaces to sensor features (#2299)
* Add sensor interfaces to all specific sensors * Uncomment/remove sensors except from orientation
1 parent 8c5a474 commit 4204e40

File tree

7 files changed

+63
-78
lines changed

7 files changed

+63
-78
lines changed

features/accelerometer.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ compat_features:
1818
- api.LinearAccelerationSensor.LinearAccelerationSensor
1919
- api.Permissions.permission_accelerometer
2020
- http.headers.Permissions-Policy.accelerometer
21+
# Enable when overlapping keys are allowed, https://github.com/web-platform-dx/web-features/issues/1173
22+
# - api.Sensor
23+
# - api.Sensor.activate_event
24+
# - api.Sensor.activated
25+
# - api.Sensor.error_event
26+
# - api.Sensor.hasReading
27+
# - api.Sensor.reading_event
28+
# - api.Sensor.start
29+
# - api.Sensor.stop
30+
# - api.Sensor.timestamp
31+
# - api.SensorErrorEvent
32+
# - api.SensorErrorEvent.SensorErrorEvent
33+
# - api.SensorErrorEvent.error

features/ambient-light.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ compat_features:
99
- api.Permissions.permission_ambient-light-sensor
1010
- html.elements.iframe.allow.ambient-light-sensor
1111
- http.headers.Permissions-Policy.ambient-light-sensor
12+
# Enable when overlapping keys are allowed, https://github.com/web-platform-dx/web-features/issues/1173
13+
# - api.Sensor
14+
# - api.Sensor.activate_event
15+
# - api.Sensor.activated
16+
# - api.Sensor.error_event
17+
# - api.Sensor.hasReading
18+
# - api.Sensor.reading_event
19+
# - api.Sensor.start
20+
# - api.Sensor.stop
21+
# - api.Sensor.timestamp
22+
# - api.SensorErrorEvent
23+
# - api.SensorErrorEvent.SensorErrorEvent
24+
# - api.SensorErrorEvent.error

features/draft/spec/generic-sensor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

features/draft/spec/generic-sensor.yml.dist

Lines changed: 0 additions & 43 deletions
This file was deleted.

features/gyroscope.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,16 @@ compat_features:
1313
- api.Permissions.permission_gyroscope
1414
- html.elements.iframe.allow.gyroscope
1515
- http.headers.Permissions-Policy.gyroscope
16+
# Enable when overlapping keys are allowed, https://github.com/web-platform-dx/web-features/issues/1173
17+
# - api.Sensor
18+
# - api.Sensor.activate_event
19+
# - api.Sensor.activated
20+
# - api.Sensor.error_event
21+
# - api.Sensor.hasReading
22+
# - api.Sensor.reading_event
23+
# - api.Sensor.start
24+
# - api.Sensor.stop
25+
# - api.Sensor.timestamp
26+
# - api.SensorErrorEvent
27+
# - api.SensorErrorEvent.SensorErrorEvent
28+
# - api.SensorErrorEvent.error

features/orientation-sensor.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@ compat_features:
1212
- api.AbsoluteOrientationSensor.AbsoluteOrientationSensor
1313
- api.RelativeOrientationSensor
1414
- api.RelativeOrientationSensor.RelativeOrientationSensor
15+
- api.Sensor
16+
- api.Sensor.activate_event
17+
- api.Sensor.activated
18+
- api.Sensor.error_event
19+
- api.Sensor.hasReading
20+
- api.Sensor.reading_event
21+
- api.Sensor.start
22+
- api.Sensor.stop
23+
- api.Sensor.timestamp
24+
- api.SensorErrorEvent
25+
- api.SensorErrorEvent.SensorErrorEvent
26+
- api.SensorErrorEvent.error

features/orientation-sensor.yml.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ compat_features:
1515
- api.OrientationSensor.quaternion
1616
- api.RelativeOrientationSensor
1717
- api.RelativeOrientationSensor.RelativeOrientationSensor
18+
- api.Sensor
19+
- api.Sensor.activate_event
20+
- api.Sensor.activated
21+
- api.Sensor.error_event
22+
- api.Sensor.hasReading
23+
- api.Sensor.reading_event
24+
- api.Sensor.start
25+
- api.Sensor.stop
26+
- api.Sensor.timestamp
27+
- api.SensorErrorEvent
28+
- api.SensorErrorEvent.SensorErrorEvent
29+
- api.SensorErrorEvent.error

0 commit comments

Comments
 (0)