W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2012

NavigatorUserMediaError - numeric?

From: Harald Alvestrand <harald@alvestrand.no>
Date: Wed, 22 Aug 2012 14:21:17 +0200
Message-ID: <5034CEBD.5090509@alvestrand.no>
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
Hello,

some time back, an effort was done to get rid of most cases of numeric 
codes from the specs, and replace them with enumerations of strings.

We have one left:

[NoInterfaceObject]
interface NavigatorUserMediaError {
     const unsigned short PERMISSION_DENIED = 1;
     readonly attribute unsigned short code;
};

Is there any reason this shouldn't be an enum with the single value 
"permission denied"?

                      Harald
Received on Wednesday, 22 August 2012 12:21:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:11 UTC