diff --git a/index.bs b/index.bs index 7882ce3..f5e9af8 100644 --- a/index.bs +++ b/index.bs @@ -1566,12 +1566,35 @@ for each [=sensor types=]: especially when doing so would not make sense. - A set of [=identifying parameters=]. TODO: replace that by an abstract operation. -

Extending the Permission API

-Provide guidance on how to extend the Permission API [[PERMISSIONS]] -for each [=sensor types=]. +{{Sensor}} interface for concrete [=sensor=] must protect it's [=sensor reading|reading=] +by associated {{PermissionName}} or more complex {{PermissionDescriptor}}. +[=Low-level=] {{Sensor|sensor}} may use it's interface name as a {{PermissionName}}, for instance +"gyroscope" or "accelerometer". [=sensor fusion|Fusion sensors=] must +[=request permission to use|request permission to use=] sensors used as a source of fusion. + +Even though, it might be difficult to reconstruct [=low-level=] [=sensor readings=] from +fused data, some of the original information might be inferred. For example, it is easy to +deduce user's orientation in space if absolute or geomagnetic orientation sensors are used, +therefore, those sensors must [=request permission to use|request permission to use=] +"magnetometer" as it provides information about orientation of device in relation to Earth's +magnetic field. In contrast, relative orientation sensor does not expose such information, thus, +does not need to [=request permission to use|request permission to use=] "magnetometer". + +In order to provide fine grained control over the sensor's data, +{{PermissionDescriptor|permission descriptors}} may be used. For example, descriptor can contain +settings for accuracy or [=sampling frequency=]. + +Here is an example of {{PermissionDescriptor}} for a possible extension of the Permission API for +accelerometer sensor. +
+    dictionary AccelerometerPermissionDescriptor : PermissionDescriptor {
+        boolean highAccuracy = false;
+        boolean highFrequency = false;
+    };
+

Example WebIDL

diff --git a/index.html b/index.html index d873deb..73555ae 100644 --- a/index.html +++ b/index.html @@ -1183,7 +1183,7 @@ background-attachment: fixed; } - + +/* This is a weird hack for me not yet following the commonmark spec + regarding paragraph and lists. */ +[data-md] > :first-child { + margin-top: 0; +} +[data-md] > :last-child { + margin-bottom: 0; +} +a.self-link::before { content: "¶"; } +.heading > a.self-link::before { content: "§"; } +dfn > a.self-link::before { content: "#"; } +figcaption { + counter-increment: figure; +} +figcaption:not(.no-marker)::before { + content: "Figure " counter(figure) " "; +} +[data-link-type=biblio] { + white-space: pre; +}