|
1305 | 1305 | }
|
1306 | 1306 | </style>
|
1307 | 1307 | <meta content="Bikeshed 1.0.0" name="generator">
|
| 1308 | +<style>svg.drag-handle { display: none; }</style> |
1308 | 1309 | <style>
|
1309 | 1310 | .dfn-panel {
|
1310 | 1311 | display: inline-block;
|
|
1402 | 1403 | <div class="head">
|
1403 | 1404 | <p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
|
1404 | 1405 | <h1 class="p-name no-ref" id="title">Generic Sensor API</h1>
|
1405 |
| - <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-04-14">14 April 2016</time></span></h2> |
| 1406 | + <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-04-28">28 April 2016</time></span></h2> |
1406 | 1407 | <div data-fill-with="spec-metadata">
|
1407 | 1408 | <dl>
|
1408 | 1409 | <dt>This version:
|
@@ -2007,6 +2008,11 @@ <h3 class="heading settled" data-level="8.2" id="the-sensor-reading-interface"><
|
2007 | 2008 | <h4 class="heading settled" data-level="8.2.1" id="sensor-reading-timestamp"><span class="secno">8.2.1. </span><span class="content">SensorReading.timeStamp</span><a class="self-link" href="#sensor-reading-timestamp"></a></h4>
|
2008 | 2009 | <p>Returns a timestamp of the time
|
2009 | 2010 | at which the <a data-link-type="dfn" href="#sensor-readings" id="ref-for-sensor-readings-17">reading</a> was obtained from the <a data-link-type="dfn" href="#concept-sensor" id="ref-for-concept-sensor-34">sensor</a> expressed in milliseconds that passed since the <a data-link-type="dfn" href="http://w3c.github.io/hr-time/#time-origin">time origin</a>.</p>
|
| 2011 | + <div class="issue no-marker" id="issue-d41d8cd9"> |
| 2012 | + <a class="self-link" href="#issue-d41d8cd9"></a><a class="marker" href="https://github.com/w3c/sensors/issues/101">Issue #101 on GitHub: “Eventually rename the SensorReading timeStamp attribute for consistency with DOM events.”</a> |
| 2013 | + <p>The DOM standard wants events to expose a <code>DOMHighResTimestamp</code> time stamp. It's <a href="https://github.com/whatwg/dom/issues/23">up for debate</a> right now whether it would be Web-compatible to modify the <code>timeStamp</code> attribute or whether a new attribute needs to be added to the spec instead.</p> |
| 2014 | + <p>For consistency, <code>SensorReading</code> <code>timeStamp</code> attribute, which is a <code>DOMHighResTimestamp</code>, will be renamed to whatever ends up being chosen for events.</p> |
| 2015 | + </div> |
2010 | 2016 | <h3 class="heading settled" data-level="8.3" id="the-sensor-reading-event-interface"><span class="secno">8.3. </span><span class="content">The SensorReadingEvent Interface</span><a class="self-link" href="#the-sensor-reading-event-interface"></a></h3>
|
2011 | 2017 | <pre class="idl def">[<dfn class="idl-code" data-dfn-for="SensorReadingEvent" data-dfn-type="constructor" data-export="" data-lt="SensorReadingEvent(type, eventInitDict)" id="dom-sensorreadingevent-sensorreadingevent">Constructor<a class="self-link" href="#dom-sensorreadingevent-sensorreadingevent"></a></dfn>(DOMString <dfn class="idl-code" data-dfn-for="SensorReadingEvent/SensorReadingEvent(type, eventInitDict)" data-dfn-type="argument" data-export="" id="dom-sensorreadingevent-sensorreadingevent-type-eventinitdict-type">type<a class="self-link" href="#dom-sensorreadingevent-sensorreadingevent-type-eventinitdict-type"></a></dfn>, <a data-link-type="idl-name" href="#dictdef-sensorreadingeventinit" id="ref-for-dictdef-sensorreadingeventinit-1">SensorReadingEventInit</a> <dfn class="idl-code" data-dfn-for="SensorReadingEvent/SensorReadingEvent(type, eventInitDict)" data-dfn-type="argument" data-export="" id="dom-sensorreadingevent-sensorreadingevent-type-eventinitdict-eventinitdict">eventInitDict<a class="self-link" href="#dom-sensorreadingevent-sensorreadingevent-type-eventinitdict-eventinitdict"></a></dfn>)]
|
2012 | 2018 | interface <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export="" data-lt="SensorReadingEvent" id="sensorreadingevent">SensorReadingEvent<span class="dfn-panel" data-deco=""><b><a href="#sensorreadingevent">#sensorreadingevent</a></b><b>Referenced in:</b><span><a href="#ref-for-sensorreadingevent-1">9.10. Update Reading</a></span></span></dfn> : <a data-link-type="idl-name" href="https://dom.spec.whatwg.org/#event">Event</a> {
|
@@ -2565,32 +2571,39 @@ <h3 class="heading settled" data-level="10.5" id="definition-reqs"><span class="
|
2565 | 2571 | </ul>
|
2566 | 2572 | <h3 class="heading settled" data-level="10.6" id="permission-api"><span class="secno">10.6. </span><span class="content">Extending the Permission API</span><a class="self-link" href="#permission-api"></a></h3>
|
2567 | 2573 | <p>Provide guidance on how to extend the Permission API <a data-link-type="biblio" href="#biblio-permissions">[PERMISSIONS]</a> for each <a data-link-type="dfn" href="#sensor-type" id="ref-for-sensor-type-29">sensor types</a>.</p>
|
2568 |
| - <div class="issue no-marker" id="issue-d41d8cd9"> |
2569 |
| - <a class="self-link" href="#issue-d41d8cd9"></a><a class="marker" href="https://github.com/w3c/sensors/issues/22">Issue #22 on GitHub: “Simplify extension of the Permissions API for concrete sensor implementations”</a> |
| 2574 | + <div class="issue no-marker" id="issue-d41d8cd90"> |
| 2575 | + <a class="self-link" href="#issue-d41d8cd90"></a><a class="marker" href="https://github.com/w3c/sensors/issues/22">Issue #22 on GitHub: “Simplify extension of the Permissions API for concrete sensor implementations”</a> |
2570 | 2576 | <p>Accessing sensor data has multiple privacy implications and is therefore subject to permissioning. The <a href="https://w3c.github.io/permissions/">Permission API</a> allows developers to check whether the permission to access a given API was already granted (or denied) by the user on a per origin basis.</p>
|
2571 | 2577 | <p>Currently, exposing that status through the Permissions API requires a modification of the Permission API spec itself. Ideally, we'd want sped editors authoring concrete sensor specs to be able to extend the Permission API within the same document.</p>
|
2572 | 2578 | <p>This needs concertation with the editors of the Permissions API.</p>
|
2573 | 2579 | <p><strong>Actions:</strong></p>
|
2574 | 2580 | <ul class="task-list">
|
2575 | 2581 | <li class="task-list-item">
|
| 2582 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2576 | 2583 | <input checked="" class="task-list-item-checkbox" disabled="" type="checkbox">
|
2577 | 2584 | Liaise with <a class="user-mention" href="https://github.com/mounirlamouri">@mounirlamouri</a> and <a class="user-mention" href="https://github.com/marcoscaceres">@marcoscaceres</a>
|
2578 | 2585 | <li class="task-list-item">
|
| 2586 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2579 | 2587 | <input checked="" class="task-list-item-checkbox" disabled="" type="checkbox">
|
2580 | 2588 | Investigate relationship to <a href="https://w3c.github.io/permissions/">Permissions API</a>.
|
2581 | 2589 | <li class="task-list-item">
|
| 2590 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2582 | 2591 | <input checked="" class="task-list-item-checkbox" disabled="" type="checkbox">
|
2583 | 2592 | Try to find a solution that doesn't imply a <a href="https://w3c.github.io/permissions/">Permissions API</a> update for every concrete Sensor spec.
|
2584 | 2593 | <li class="task-list-item">
|
| 2594 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2585 | 2595 | <input checked="" class="task-list-item-checkbox" disabled="" type="checkbox">
|
2586 | 2596 | Email @public-script-coord about <code>partial enum</code> proposal
|
2587 | 2597 | <li class="task-list-item">
|
| 2598 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2588 | 2599 | <input checked="" class="task-list-item-checkbox" disabled="" type="checkbox">
|
2589 | 2600 | Wait for @public-script-coord feedback
|
2590 | 2601 | <li class="task-list-item">
|
| 2602 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2591 | 2603 | <input class="task-list-item-checkbox" disabled="" type="checkbox">
|
2592 | 2604 | Document current issue as a note in the Extensibility section of the spec.
|
2593 | 2605 | <li class="task-list-item">
|
| 2606 | + <span class="handle js-handle"> <svg aria-hidden="true" class="drag-handle" height="15" version="1.1" viewBox="0 0 16 15" width="16"><path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path></svg> </span> |
2594 | 2607 | <input class="task-list-item-checkbox" disabled="" type="checkbox">
|
2595 | 2608 | Rewrite the permission seeking abstract operations once <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="139764016" data-permission-text="Issue title is private" data-url="https://github.com/w3c/permissions/issues/66" href="https://github.com/w3c/permissions/pull/66">w3c/permissions#66</a> lands..
|
2596 | 2609 | </ul>
|
|
0 commit comments