W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] Simplify extension of the Permissions API for concrete sensor implementations

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jun 2015 17:02:40 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-110073878-1433782960-sysbot+gh@w3.org>
Chatted with @marcoscaceres over irc. Seems the solution would involve
 the adjunction of partial enums to WebIDL so that extending the 
Permissions API to accommodate a new sensor would be limited to doing:

```
partial enum PermissionName {
    "proximity"
};
``` 

And when needed:

```
dictionary ProximitySensorPermissionDescriptor : PermissionDescriptor 
{
             // ...
};
```


-- 
GitHub Notif of comment by tobie
See https://github.com/w3c/sensors/issues/22#issuecomment-110073878
Received on Monday, 8 June 2015 17:02:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC