Skip to content

Commit 33ef276

Browse files
authored
Merge pull request #50 from w3c/sensor_permission_name
Use "sensor permission name"
2 parents 2617809 + 3447a13 commit 33ef276

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ urlPrefix: https://w3c.github.io/sensors; spec: GENERIC-SENSOR
4141
text: sensor type
4242
text: sensor readings
4343
text: check sensor policy-controlled features; url: check-sensor-policy-controlled-features
44+
text: sensor permission name; url: sensor-permission-names
4445
</pre>
4546
<pre class=biblio>
4647
{
@@ -208,7 +209,7 @@ subclass is the {{AmbientLightSensor}} class.
208209
The <a>Ambient Light Sensor</a> has a <a>default sensor</a>,
209210
which is the device's main light detector.
210211

211-
The <a>Ambient Light Sensor</a> has an associated {{PermissionName}}
212+
The <a>Ambient Light Sensor</a> has an associated [=sensor permission name=]
212213
which is <a for="PermissionName" enum-value>"ambient-light-sensor"</a>.
213214

214215
The <dfn>current light level</dfn> or <dfn>illuminance</dfn>

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@
11851185
</style>
11861186
<meta content="Bikeshed version 66a76cd06d4fa9e491630583356008a71a166760" name="generator">
11871187
<link href="http://www.w3.org/TR/ambient-light/" rel="canonical">
1188+
<meta content="261780999fcbe190d71b212b326409b8e90c78be" name="document-revision">
11881189
<style>/* style-md-lists */
11891190

11901191
/* This is a weird hack for me not yet following the commonmark spec
@@ -1431,7 +1432,7 @@
14311432
<div class="head">
14321433
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
14331434
<h1 class="p-name no-ref" id="title">Ambient Light Sensor</h1>
1434-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2018-02-28">28 February 2018</time></span></h2>
1435+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2018-03-01">1 March 2018</time></span></h2>
14351436
<div data-fill-with="spec-metadata">
14361437
<dl>
14371438
<dt>This version:
@@ -1655,7 +1656,7 @@ <h2 class="heading settled" data-level="4" id="model"><span class="secno">4. </s
16551656
<p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="ambient-light-sensor">Ambient Light Sensor</dfn> <a data-link-type="dfn" href="https://w3c.github.io/sensors#sensor-type" id="ref-for-sensor-type">sensor type</a>’s associated <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/sensors/#sensor" id="ref-for-sensor">Sensor</a></code> subclass is the <code class="idl"><a data-link-type="idl" href="#ambientlightsensor" id="ref-for-ambientlightsensor">AmbientLightSensor</a></code> class.</p>
16561657
<p>The <a data-link-type="dfn" href="#ambient-light-sensor" id="ref-for-ambient-light-sensor">Ambient Light Sensor</a> has a <a data-link-type="dfn" href="https://w3c.github.io/sensors#default-sensor" id="ref-for-default-sensor">default sensor</a>,
16571658
which is the device’s main light detector.</p>
1658-
<p>The <a data-link-type="dfn" href="#ambient-light-sensor" id="ref-for-ambient-light-sensor①">Ambient Light Sensor</a> has an associated <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/permissions/#enumdef-permissionname" id="ref-for-enumdef-permissionname">PermissionName</a></code> which is <a class="idl-code" data-link-type="enum-value" href="https://w3c.github.io/permissions/#dom-permissionname-ambient-light-sensor" id="ref-for-dom-permissionname-ambient-light-sensor">"ambient-light-sensor"</a>.</p>
1659+
<p>The <a data-link-type="dfn" href="#ambient-light-sensor" id="ref-for-ambient-light-sensor①">Ambient Light Sensor</a> has an associated <a data-link-type="dfn" href="https://w3c.github.io/sensors#sensor-permission-names" id="ref-for-sensor-permission-names">sensor permission name</a> which is <a class="idl-code" data-link-type="enum-value" href="https://w3c.github.io/permissions/#dom-permissionname-ambient-light-sensor" id="ref-for-dom-permissionname-ambient-light-sensor">"ambient-light-sensor"</a>.</p>
16591660
<p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="current-light-level">current light level</dfn> or <dfn data-dfn-type="dfn" data-noexport="" id="illuminance">illuminance<a class="self-link" href="#illuminance"></a></dfn> is a value that represents the ambient light level
16601661
around the hosting device. Its unit is the lux (lx) <a data-link-type="biblio" href="#biblio-si">[SI]</a>.</p>
16611662
<p class="note" role="note"><span>Note:</span> The precise lux value reported by
@@ -1769,14 +1770,14 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
17691770
<li><a href="https://w3c.github.io/sensors#mitigation-strategies">mitigation strategies</a>
17701771
<li><a href="https://w3c.github.io/sensors#reduce-accuracy">reduce accuracy</a>
17711772
<li><a href="https://w3c.github.io/sensors#sampling-frequency">sampling frequency</a>
1773+
<li><a href="https://w3c.github.io/sensors#sensor-permission-names">sensor permission name</a>
17721774
<li><a href="https://w3c.github.io/sensors#sensor-readings">sensor readings</a>
17731775
<li><a href="https://w3c.github.io/sensors#sensor-type">sensor type</a>
17741776
</ul>
17751777
<li>
17761778
<a data-link-type="biblio">[permissions]</a> defines the following terms:
17771779
<ul>
17781780
<li><a href="https://w3c.github.io/permissions/#dom-permissionname-ambient-light-sensor">"ambient-light-sensor"</a>
1779-
<li><a href="https://w3c.github.io/permissions/#enumdef-permissionname">PermissionName</a>
17801781
</ul>
17811782
<li>
17821783
<a data-link-type="biblio">[WEBIDL]</a> defines the following terms:

0 commit comments

Comments
 (0)