Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Default Sensor concept #279

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

pozdnyakov
Copy link

@pozdnyakov pozdnyakov commented Sep 21, 2017

  • Move the dedicated text from the 'Background' to the 'Concepts' section
  • Cleanup

Preview | Diff

@pozdnyakov
Copy link
Author

This solves an inline issue. PTAL.

Copy link

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments.

index.bs Outdated
<pre highlight="js">
let sensor = new GeolocationSensor({ accuracy: "high" });

sensor.onreading = function(event) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can remove event? Wdyt?

index.bs Outdated
while still enabling more complex use cases.

Most of devices deployed today do not carry more than one
[=device sensor=] corresponding to the same [=sensor type|sensor types=].

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of the same sensor type?

index.bs Outdated
[=device sensor=] corresponding to the same [=sensor type|sensor types=].
The use cases which require a set of similar [=device sensors=] are rare
and generally limited to specific [=sensor types=],
such as proximity sensors.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really, accelerometers are better example, especially for 2-in-1 or convertible devices. Maybe change proximity to accelerometer?

index.bs Outdated
the <dfn export>default sensor</dfn> is chosen.

<div class="example">
Listening to geolocation changes:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to use sensors that are actually specified, implemented.

index.bs Outdated
Note: extension to this specification may choose not to define a default sensor
when doing so wouldn't make sense.
For example, it might be difficult to agree on an obvious default [=device sensor|sensor=] for
proximity [=device sensor|sensors=].

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change proximity to geolocation.

@pozdnyakov pozdnyakov force-pushed the Introduce_default_sensor_concept branch from 396b6c2 to e0e88e7 Compare September 22, 2017 13:47
@pozdnyakov
Copy link
Author

@alexshalamov ptal

Copy link

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks much better, thanks!

@pozdnyakov
Copy link
Author

@anssiko could you PTAL?

@anssiko
Copy link
Member

anssiko commented Sep 25, 2017

- Move the dedicated text from the 'Background' to the 'Concepts' section
- Cleanup
@pozdnyakov pozdnyakov force-pushed the Introduce_default_sensor_concept branch from e0e88e7 to b918749 Compare September 26, 2017 05:49
@pozdnyakov pozdnyakov merged commit 2b5132b into w3c:master Sep 26, 2017
@pozdnyakov pozdnyakov deleted the Introduce_default_sensor_concept branch November 29, 2017 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants