Skip to content

Commit

Permalink
Merge pull request w3c#56 from rakuco/rewrite-model-section
Browse files Browse the repository at this point in the history
Clean up Model section, export permission and policy-controlled feature name
  • Loading branch information
anssiko committed Oct 25, 2023
2 parents 1aa906b + 75a8439 commit 153424c
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,26 @@ inertial sensors are in use and/or require explicit user consent to access [=sen
These mitigation strategies complement the [=generic mitigations=] defined
in the Generic Sensor API [[!GENERIC-SENSOR]].

Model {#model}
=====

The <dfn id="gyroscope-sensor-type">Gyroscope</dfn> <a>sensor type</a>'s associated {{Sensor}} subclass is the {{Gyroscope}} class.
Permissions Policy integration {#permissions-policy-integration}
==============================

The <a>Gyroscope</a> has a <a>default sensor</a>, which is the device's main gyroscope sensor.
This specification defines a [=policy-controlled feature=] identified by the string "<code><dfn data-lt="gyroscope-feature" export>gyroscope</dfn></code>". Its [=default allowlist=] is "`self`".

The <a>Gyroscope</a> is a [=powerful feature=] that is identified by the
[=powerful feature/name=] "gyroscope", which is also its associated
[=sensor permission name=]. Its [=powerful feature/permission revocation algorithm=] is the
result of calling the [=generic sensor permission revocation algorithm=] with
"gyroscope".
Model {#model}
=====

The <a>Gyroscope</a> is a [=policy-controlled feature=] identified by the string "gyroscope". Its [=default allowlist=] is `'self'`.
The <dfn id="gyroscope-sensor-type">Gyroscope</dfn> <a>sensor type</a> has the following associated data:

: [=Extension sensor interface=]
:: {{Gyroscope}}
: [=Sensor permission names=]
:: "<code><dfn permission export>gyroscope</dfn></code>"
: [=Sensor feature names=]
:: "[=gyroscope-feature|gyroscope=]"
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>gyroscope</a></code>".
: [=Default sensor=]
:: The device's main gyroscope sensor.

A [=latest reading=] of a {{Sensor}} of <a>Gyroscope</a> <a>sensor type</a> includes three [=map/entries=]
whose [=map/keys=] are "x", "y", "z" and whose [=map/values=] contain current <a>angular
Expand Down

0 comments on commit 153424c

Please sign in to comment.