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

Remove [NoInterfaceObject] #58

Closed
annevk opened this issue Jan 15, 2019 · 9 comments
Closed

Remove [NoInterfaceObject] #58

annevk opened this issue Jan 15, 2019 · 9 comments

Comments

@annevk
Copy link
Member

annevk commented Jan 15, 2019

Carefully consider with what name to expose these interfaces and then please drop this. We're going to remove it from IDL per whatwg/webidl#430 and whatwg/webidl#609.

@anssiko
Copy link
Member

anssiko commented Jan 15, 2019

@annevk, thanks for the heads up.

All - DeviceAcceleration and DeviceRotationRate are the current names that are not exposed. Any concerns in exposing these interfaces using these names?

Opening the issue for discussion and suggestions.

@kenchris
Copy link

These are also the "deprecated APIs" as they are being replaced with Generic Sensors, so exposing more now seems unfortunately

@kenchris
Copy link

kenchris commented Jan 15, 2019

@reillyeon @slightlyoff

@reillyeon
Copy link
Member

For reference the interfaces are,

interface DeviceAcceleration {
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

interface DeviceRotationRate {
  readonly attribute double? alpha;
  readonly attribute double? beta;
  readonly attribute double? gamma;
};

These are both pretty generic vectors. I wish we could reuse DOMPointReadOnly. Maybe before removing [NoInterfaceObject] we could rename them to something like DeviceMotionEventAcceleration and DeviceMotionEventRotationRate or DeviceAccelerationLegacy and DeviceRotationRateLegacy just to highlight that these types are part of this API.

@anssiko
Copy link
Member

anssiko commented Jan 16, 2019

Thanks @reillyeon, DeviceMotionEventAcceleration and DeviceMotionEventRotationRate seem like good proposals to me.

anssiko added a commit that referenced this issue Jan 31, 2019
Rename exposed interfaces, and *Init dictionaries.

Fix #58
@anssiko
Copy link
Member

anssiko commented Jan 31, 2019

Hearing no further comments, I crafted a PR #63 to fix this issue with names proposed by @reillyeon.

@reillyeon
Copy link
Member

@annevk While it's a pretty minor change shipping this in Blink probably still deserves an Intent to Ship and Ship since we are adding symbols to the global scope. Can I assume that Gecko is in favor of this change?

@cdumez, any feedback from WebKit?

@annevk
Copy link
Member Author

annevk commented Feb 4, 2019

@reillyeon yes, though I believe we only expose these APIs on Android and might put them behind a permission or disable them per #57. That's still under discussion.

@anssiko
Copy link
Member

anssiko commented Feb 6, 2019

@cdumez, we have Google @reillyeon and Mozilla @annevk OK'ing this rather minor PR #63 that fixes this issue. We'll merge the PR unless we hear concerns from you.

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

No branches or pull requests

4 participants