[mediacapture-main] Update WebIDL definition(s) to use new mixin syntax

tobie has just created a new issue for https://github.com/w3c/mediacapture-main:

== Update WebIDL definition(s) to use new mixin syntax ==
Hi all!

WebIDL recently introduced [dedicated syntax for mixins][0].

This syntax replaces the `[NoInterfaceObject]` extended attribute and `implements statement` which have been deprecated (except for a few [legacy uses cases][1] explicitely mentioned in the spec).

You can read more about it [here][2].

In most cases, the changes should be relatively straightforward. The now deprecated:

```webidl
interface Foo { };

[NoInterfaceObject]  // (Mostly) DEPRECATED
interface Bar { };
Foo implementes Bar; // DEPRECATED
```

should just be rewritten as:

```webidl
interface Foo { };

interface mixin Bar { };
Foo includes Bar;
```

Additonaly, a section on [when to use partials and mixins][3] has been added to the spec. It's short and might be worth a read.

It seems the following interfaces in the [Media Capture and Streams](https://www.w3.org/TR/mediacapture-streams/) spec are impacted by this change:

- [ ] NavigatorUserMedia

We're sorry for the inconvenience this causes, but our hope is that this ultimately makes things simpler and clearer for everybody.

As always, please feel free to reach out if you have any questions.

Thanks!

[0]: https://github.com/heycam/webidl/commit/45e8173d40ddff8dcf81697326e094bcf8b92920
[1]: https://heycam.github.io/webidl/#NoInterfaceObject
[2]: https://heycam.github.io/webidl/#idl-interface-mixins
[3]: https://heycam.github.io/webidl/#using-mixins-and-partials

***

*Tracked in: heycam/webidl#472* | *Original pull-request: heycam/webidl#433*


Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/497 using your GitHub account

Received on Friday, 3 November 2017 14:58:25 UTC