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

Align Accelerometer interface with the Generic Sensor API #11

Merged
merged 1 commit into from
Feb 2, 2017

Conversation

alexshalamov
Copy link

This patch aligns Accelerometer interface with the latest changes in Generic Sensor API.
AccelerometerReading interface is removed and sensor reading values are exposed on main
Accelerometer interface using "latest reading" terminology from Generic Sensor API [1].

[1] https://w3c.github.io/sensors/#latest-reading

index.bs Outdated

The Accelerometer has a <a>default sensor</a>,
which is the device's main accelerometer sensor.
The accelerometer's associated {{Sensor}} is the {{Accelerometer}} class.
Copy link
Member

Choose a reason for hiding this comment

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

Other specs use this boilerplate definition:

The accelerometer's associated {{Sensor}} subclass is the {{Accelerometer}} class.

Should perhaps align with that.

index.bs Outdated
interface represents the <a>acceleration</a> along Z-axis.
By default, accelerometer sensor provides <a>acceleration</a> information including the effect of the gravity force.
In cases when <a>linear acceleration</a> information is required, {{AccelerometerOptions}} dictionary
must include an [=map/entry=] with a [=map/key=] that is "includesGravity" and its [=map/value=] must be a
Copy link
Member

Choose a reason for hiding this comment

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

A more concise form would be:

[=map/entry=] whose [=map/key=] is "includesGravity" and whose value is false.

"Whose" is commonly used language in specs, type is defined in IDL so can drop that from prose.

@anssiko
Copy link
Member

anssiko commented Feb 2, 2017

LGTM with comments. After @pozdnyakov's review you can merge this.

This patch aligns Accelerometer interface with the latest changes in Generic Sensor API.
AccelerometerReading interface is removed and sensor reading values are exposed on main
Accelerometer interface using "latest reading" terminology from Generic Sensor API [1].

[1] https://w3c.github.io/sensors/#latest-reading
@alexshalamov alexshalamov merged commit 6299247 into w3c:gh-pages Feb 2, 2017
@anssiko
Copy link
Member

anssiko commented Feb 2, 2017

Thanks!

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