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

Gyroscope-specific construction operation and construction options #29

Merged

Conversation

pozdnyakov
Copy link

@pozdnyakov pozdnyakov commented Feb 8, 2018

This patch introduces the GyroscopeSensorOptions dictionary
and the "construct a gyroscope object", thus the unneeded references
to the Accelerometer specification are removed.


Preview | Diff

@pozdnyakov
Copy link
Author

@anssiko @alexshalamov PTAL

index.bs Outdated
[Constructor(optional SpatialSensorOptions sensorOptions), SecureContext, Exposed=Window]
enum LocalCoordinateSystem { "device", "screen" };

dictionary GyroscopeSensorOptions : SensorOptions {

Choose a reason for hiding this comment

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

Should the dictionary definition go after interface definition, like in other specs?
@anssiko ?

index.bs Outdated
[Constructor(optional SpatialSensorOptions sensorOptions), SecureContext, Exposed=Window]
enum LocalCoordinateSystem { "device", "screen" };

dictionary GyroscopeSensorOptions : SensorOptions {
Copy link
Member

Choose a reason for hiding this comment

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

The established convention is the dictionary comes after the interface definition. And the enum comes before the interface/dictionary definition where it is referenced. So the order in this case:

interface
enum
dictionary

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@pozdnyakov pozdnyakov force-pushed the class_specific_constructor_params branch from 9ccc26c to d3e511c Compare February 8, 2018 12:34
This patch introduces the `GyroscopeSensorOptions` dictionary
and the "construct a gyroscope object", thus the unneeded references
to the Accelerometer specification are removed.
@pozdnyakov pozdnyakov force-pushed the class_specific_constructor_params branch from d3e511c to 0fb5359 Compare February 8, 2018 12:41
@pozdnyakov pozdnyakov merged commit b1f3668 into w3c:gh-pages Feb 8, 2018
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