Skip to content

Commit 3b8ea70

Browse files
authored
Merge pull request #391 from w3c/idl-dict
Align with IDL dictionary changes
2 parents e4ddca0 + 3ba8ff8 commit 3b8ea70

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ Here's an example WebIDL for a possible extension of this specification
21842184
for proximity [=device sensor|sensors=].
21852185

21862186
<pre class=example>
2187-
[Constructor(optional ProximitySensorOptions proximitySensorOptions),
2187+
[Constructor(optional ProximitySensorOptions proximitySensorOptions = {}),
21882188
SecureContext, Exposed=Window]
21892189
interface ProximitySensor : Sensor {
21902190
readonly attribute double? distance;

index.html

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@
10301030
}
10311031
/* } */
10321032

1033-
@supports (display:grid) {
1033+
@supports (display:grid) and (display:contents) {
10341034
/* Use #toc over .toc to override non-@supports rules. */
10351035
#toc {
10361036
display: grid;
@@ -1219,9 +1219,9 @@
12191219
background-attachment: fixed;
12201220
}
12211221
</style>
1222-
<meta content="Bikeshed version df1bf04b71c9fb8a3d724e46fc13f9cf7065df60" name="generator">
1222+
<meta content="Bikeshed version 220086d88511a9c99d7a1f9b5447db7e7b99e053" name="generator">
12231223
<link href="https://www.w3.org/TR/generic-sensor/" rel="canonical">
1224-
<meta content="87489306f0161b67f7db025365781946ce2de780" name="document-revision">
1224+
<meta content="e4ddca003bcd5587c0f25b78c62439227d5978b7" name="document-revision">
12251225
<style>
12261226
svg g.edge text {
12271227
font-size: 8px;
@@ -1501,7 +1501,7 @@
15011501
<div class="head">
15021502
<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>
15031503
<h1 class="p-name no-ref" id="title">Generic Sensor API</h1>
1504-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2019-03-19">19 March 2019</time></span></h2>
1504+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2019-08-09">9 August 2019</time></span></h2>
15051505
<div data-fill-with="spec-metadata">
15061506
<dl>
15071507
<dt>This version:
@@ -1556,7 +1556,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content"
15561556
W3C maintains a <a href="https://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
15571557
that page also includes instructions for disclosing a patent.
15581558
An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
1559-
<p> This document is governed by the <a href="https://www.w3.org/2018/Process-20180201/" id="w3c_process_revision">1 February 2018 W3C Process Document</a>. </p>
1559+
<p> This document is governed by the <a href="https://www.w3.org/2019/Process-20190301/" id="w3c_process_revision">1 March 2019 W3C Process Document</a>. </p>
15601560
<p></p>
15611561
</div>
15621562
<div data-fill-with="at-risk"></div>
@@ -1750,7 +1750,7 @@ <h2 class="heading settled" data-level="2" id="scope"><span class="secno">2. </s
17501750
sensor discovery API.
17511751
This is because the limited number of sensors currently available to user agents
17521752
does not warrant such an API.
1753-
Using feature detection, such as described in <a href="#feature-detection">§3 A note on Feature Detection of Hardware Features</a>,
1753+
Using feature detection, such as described in <a href="#feature-detection">§3 A note on Feature Detection of Hardware Features</a>,
17541754
is good enough for now.
17551755
A subsequent version of this specification might specify such an API,
17561756
and the current API has been designed with this in mind.</p>
@@ -2052,7 +2052,7 @@ <h3 class="heading settled" data-level="5.2" id="concepts-sensor-types"><span cl
20522052
A pressure-altimeter would probably fall in the same category,
20532053
while a nondescript altimeter—<wbr>which could get its data from either a barometer or a GPS signal—<wbr>would clearly be categorized as a <a data-link-type="dfn" href="#high-level" id="ref-for-high-level④">high-level</a> <a data-link-type="dfn" href="#sensor-type" id="ref-for-sensor-type①⓪">sensor type</a>.</p>
20542054
<p>Because the distinction is somewhat blurry,
2055-
extensions to this specification (see <a href="#extensibility">§10 Extensibility</a>)
2055+
extensions to this specification (see <a href="#extensibility">§10 Extensibility</a>)
20562056
are encouraged to provide domain-specific definitions of <a data-link-type="dfn" href="#high-level" id="ref-for-high-level⑤">high-level</a> and <a data-link-type="dfn" href="#low-level" id="ref-for-low-level⑥">low-level</a> sensors
20572057
for the given <a data-link-type="dfn" href="#sensor-type" id="ref-for-sensor-type①①">sensor types</a> they are targeting.</p>
20582058
<p><a data-link-type="dfn" href="#sensor-reading" id="ref-for-sensor-reading②⑤">Sensor readings</a> from different <a data-link-type="dfn" href="#sensor-type" id="ref-for-sensor-type①②">sensor types</a> can be combined together
@@ -2472,7 +2472,7 @@ <h4 class="heading settled" data-level="7.1.10" id="sensor-onactivate"><span cla
24722472
<p><code class="idl"><a data-link-type="idl" href="#dom-sensor-onactivate" id="ref-for-dom-sensor-onactivate">onactivate</a></code> is an <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/webappapis.html#eventhandler" id="ref-for-eventhandler④">EventHandler</a></code> which is called when <strong>this</strong>.<code class="idl"><a data-link-type="idl" href="#dom-sensor-state-slot" id="ref-for-dom-sensor-state-slot⑧">[[state]]</a></code> transitions from "activating" to "activated".</p>
24732473
<h4 class="heading settled" data-level="7.1.11" id="sensor-onerror"><span class="secno">7.1.11. </span><span class="content">Sensor.onerror</span><a class="self-link" href="#sensor-onerror"></a></h4>
24742474
<p><code class="idl"><a data-link-type="idl" href="#dom-sensor-onerror" id="ref-for-dom-sensor-onerror">onerror</a></code> is an <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/webappapis.html#eventhandler" id="ref-for-eventhandler⑤">EventHandler</a></code> which is called whenever
2475-
an <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-exception-type" id="ref-for-dfn-exception-type">exception</a> cannot be handled synchronously.</p>
2475+
an <a data-link-type="dfn">exception</a> cannot be handled synchronously.</p>
24762476
<h4 class="heading settled" data-level="7.1.12" id="event-handlers"><span class="secno">7.1.12. </span><span class="content">Event handlers</span><a class="self-link" href="#event-handlers"></a></h4>
24772477
<p>The following are the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers" id="ref-for-event-handlers①">event handlers</a> (and their corresponding <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-event-type" id="ref-for-event-handler-event-type①">event handler event types</a>)
24782478
that must be supported as attributes by the objects implementing the <code class="idl"><a data-link-type="idl" href="#sensor" id="ref-for-sensor①⑧">Sensor</a></code> interface:</p>
@@ -3465,7 +3465,7 @@ <h3 class="heading settled" data-level="10.9" id="feature-policy-api"><span clas
34653465
<h3 class="heading settled" data-level="10.10" id="example-webidl"><span class="secno">10.10. </span><span class="content">Example WebIDL</span><a class="self-link" href="#example-webidl"></a></h3>
34663466
<p>Here’s an example WebIDL for a possible extension of this specification
34673467
for proximity <a data-link-type="dfn" href="#concept-device-sensor" id="ref-for-concept-device-sensor③③">sensors</a>.</p>
3468-
<pre class="example" id="example-457db57a"><a class="self-link" href="#example-457db57a"></a>[Constructor(optional ProximitySensorOptions proximitySensorOptions),
3468+
<pre class="example" id="example-cea89858"><a class="self-link" href="#example-cea89858"></a>[Constructor(optional ProximitySensorOptions proximitySensorOptions = {}),
34693469
SecureContext, Exposed=Window]
34703470
interface ProximitySensor : Sensor {
34713471
readonly attribute double? distance;
@@ -4527,12 +4527,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
45274527
<li><a href="#ref-for-idl-double③">9.1.2. MockSensor dictionary</a> <a href="#ref-for-idl-double④">(2)</a> <a href="#ref-for-idl-double⑤">(3)</a>
45284528
</ul>
45294529
</aside>
4530-
<aside class="dfn-panel" data-for="term-for-dfn-exception-type">
4531-
<a href="https://heycam.github.io/webidl/#dfn-exception-type">https://heycam.github.io/webidl/#dfn-exception-type</a><b>Referenced in:</b>
4532-
<ul>
4533-
<li><a href="#ref-for-dfn-exception-type">7.1.11. Sensor.onerror</a>
4534-
</ul>
4535-
</aside>
45364530
<aside class="dfn-panel" data-for="term-for-dfn-identifier">
45374531
<a href="https://heycam.github.io/webidl/#dfn-identifier">https://heycam.github.io/webidl/#dfn-identifier</a><b>Referenced in:</b>
45384532
<ul>
@@ -4744,7 +4738,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
47444738
<li><span class="dfn-paneled" id="term-for-dfn-dictionary" style="color:initial">dictionary</span>
47454739
<li><span class="dfn-paneled" id="term-for-dfn-dictionary-member" style="color:initial">dictionary members</span>
47464740
<li><span class="dfn-paneled" id="term-for-idl-double" style="color:initial">double</span>
4747-
<li><span class="dfn-paneled" id="term-for-dfn-exception-type" style="color:initial">exception types</span>
47484741
<li><span class="dfn-paneled" id="term-for-dfn-identifier" style="color:initial">identifier</span>
47494742
<li><span class="dfn-paneled" id="term-for-dfn-inherited-dictionaries" style="color:initial">inherited dictionaries</span>
47504743
<li><span class="dfn-paneled" id="term-for-dfn-inherited-interfaces" style="color:initial">inherited interfaces</span>
@@ -4758,17 +4751,17 @@ <h2 class="no-num no-ref heading settled" id="references"><span class="content">
47584751
<h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
47594752
<dl>
47604753
<dt id="biblio-accelerometer">[ACCELEROMETER]
4761-
<dd>Anssi Kostiainen; Alexander Shalamov. <a href="https://w3c.github.io/accelerometer/">Accelerometer</a>. URL: <a href="https://w3c.github.io/accelerometer/">https://w3c.github.io/accelerometer/</a>
4754+
<dd>Anssi Kostiainen. <a href="https://w3c.github.io/accelerometer/">Accelerometer</a>. URL: <a href="https://w3c.github.io/accelerometer/">https://w3c.github.io/accelerometer/</a>
47624755
<dt id="biblio-ambient-light">[AMBIENT-LIGHT]
47634756
<dd>Anssi Kostiainen. <a href="https://w3c.github.io/ambient-light/">Ambient Light Sensor</a>. URL: <a href="https://w3c.github.io/ambient-light/">https://w3c.github.io/ambient-light/</a>
47644757
<dt id="biblio-dom">[DOM]
47654758
<dd>Anne van Kesteren. <a href="https://dom.spec.whatwg.org/">DOM Standard</a>. Living Standard. URL: <a href="https://dom.spec.whatwg.org/">https://dom.spec.whatwg.org/</a>
47664759
<dt id="biblio-feature-policy">[FEATURE-POLICY]
4767-
<dd><a href="https://wicg.github.io/feature-policy/">Feature Policy</a>. Living Standard. URL: <a href="https://wicg.github.io/feature-policy/">https://wicg.github.io/feature-policy/</a>
4760+
<dd>Ian Clelland. <a href="https://w3c.github.io/webappsec-feature-policy/">Feature Policy</a>. URL: <a href="https://w3c.github.io/webappsec-feature-policy/">https://w3c.github.io/webappsec-feature-policy/</a>
47684761
<dt id="biblio-geolocation-sensor">[GEOLOCATION-SENSOR]
47694762
<dd>Anssi Kostiainen; Thomas Steiner. <a href="https://w3c.github.io/geolocation-sensor/">Geolocation Sensor</a>. URL: <a href="https://w3c.github.io/geolocation-sensor/">https://w3c.github.io/geolocation-sensor/</a>
47704763
<dt id="biblio-gyroscope">[GYROSCOPE]
4771-
<dd>Anssi Kostiainen; Mikhail Pozdnyakov. <a href="https://w3c.github.io/gyroscope/">Gyroscope</a>. URL: <a href="https://w3c.github.io/gyroscope/">https://w3c.github.io/gyroscope/</a>
4764+
<dd>Anssi Kostiainen. <a href="https://w3c.github.io/gyroscope/">Gyroscope</a>. URL: <a href="https://w3c.github.io/gyroscope/">https://w3c.github.io/gyroscope/</a>
47724765
<dt id="biblio-hr-time-2">[HR-TIME-2]
47734766
<dd>Ilya Grigorik; James Simonsen; Jatinder Mann. <a href="https://w3c.github.io/hr-time/">High Resolution Time Level 2</a>. URL: <a href="https://w3c.github.io/hr-time/">https://w3c.github.io/hr-time/</a>
47744767
<dt id="biblio-html">[HTML]
@@ -4778,7 +4771,7 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
47784771
<dt id="biblio-magnetometer">[MAGNETOMETER]
47794772
<dd>Anssi Kostiainen; Rijubrata Bhaumik. <a href="https://w3c.github.io/magnetometer/">Magnetometer</a>. URL: <a href="https://w3c.github.io/magnetometer/">https://w3c.github.io/magnetometer/</a>
47804773
<dt id="biblio-orientation-sensor">[ORIENTATION-SENSOR]
4781-
<dd>Mikhail Pozdnyakov; et al. <a href="https://w3c.github.io/orientation-sensor/">Orientation Sensor</a>. URL: <a href="https://w3c.github.io/orientation-sensor/">https://w3c.github.io/orientation-sensor/</a>
4774+
<dd>Kenneth Christiansen; Anssi Kostiainen. <a href="https://w3c.github.io/orientation-sensor/">Orientation Sensor</a>. URL: <a href="https://w3c.github.io/orientation-sensor/">https://w3c.github.io/orientation-sensor/</a>
47824775
<dt id="biblio-page-visibility">[PAGE-VISIBILITY]
47834776
<dd>Jatinder Mann; Arvind Jain. <a href="https://www.w3.org/TR/page-visibility/">Page Visibility (Second Edition)</a>. 29 October 2013. REC. URL: <a href="https://www.w3.org/TR/page-visibility/">https://www.w3.org/TR/page-visibility/</a>
47844777
<dt id="biblio-permissions">[PERMISSIONS]
@@ -4792,7 +4785,7 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
47924785
<dt id="biblio-webdriver">[WebDriver]
47934786
<dd>Simon Stewart; David Burns. <a href="https://w3c.github.io/webdriver/">WebDriver</a>. URL: <a href="https://w3c.github.io/webdriver/">https://w3c.github.io/webdriver/</a>
47944787
<dt id="biblio-webidl">[WebIDL]
4795-
<dd>Cameron McCormack; Boris Zbarsky; Tobie Langel. <a href="https://heycam.github.io/webidl/">Web IDL</a>. URL: <a href="https://heycam.github.io/webidl/">https://heycam.github.io/webidl/</a>
4788+
<dd>Boris Zbarsky. <a href="https://heycam.github.io/webidl/">Web IDL</a>. URL: <a href="https://heycam.github.io/webidl/">https://heycam.github.io/webidl/</a>
47964789
</dl>
47974790
<h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
47984791
<dl>
@@ -4821,7 +4814,7 @@ <h3 class="no-num no-ref heading settled" id="informative"><span class="content"
48214814
<dt id="biblio-rfc6454">[RFC6454]
48224815
<dd>A. Barth. <a href="https://tools.ietf.org/html/rfc6454">The Web Origin Concept</a>. December 2011. Proposed Standard. URL: <a href="https://tools.ietf.org/html/rfc6454">https://tools.ietf.org/html/rfc6454</a>
48234816
<dt id="biblio-security-privacy-questionnaire">[SECURITY-PRIVACY-QUESTIONNAIRE]
4824-
<dd>Mike West. <a href="https://w3ctag.github.io/security-questionnaire/">Self-Review Questionnaire: Security and Privacy</a>. URL: <a href="https://w3ctag.github.io/security-questionnaire/">https://w3ctag.github.io/security-questionnaire/</a>
4817+
<dd>Lukasz Olejnik; Jason Novak. <a href="https://w3ctag.github.io/security-questionnaire/">Self-Review Questionnaire: Security and Privacy</a>. URL: <a href="https://w3ctag.github.io/security-questionnaire/">https://w3ctag.github.io/security-questionnaire/</a>
48254818
<dt id="biblio-si">[SI]
48264819
<dd><a href="http://www.bipm.org/en/publications/si-brochure/">SI Brochure: The International System of Units (SI), 8th edition</a>. 2014. URL: <a href="http://www.bipm.org/en/publications/si-brochure/">http://www.bipm.org/en/publications/si-brochure/</a>
48274820
<dt id="biblio-stealingpinsviasensors">[STEALINGPINSVIASENSORS]

0 commit comments

Comments
 (0)