- From: Andrei Popescu <andreip@google.com>
- Date: Tue, 4 Nov 2008 10:57:43 +0000
- To: Greg Bolsinga <bolsinga@apple.com>
- Cc: Doug Turner <doug.turner@gmail.com>, Chris Butler <cbutler@dash.net>, olli@pettay.fi, public-geolocation@w3.org
On Sun, Nov 2, 2008 at 7:39 PM, Greg Bolsinga <bolsinga@apple.com> wrote:
> On Oct 30, 2008, at 2:29 PM, Doug Turner wrote:
>
>>
>>
>> On Oct 30, 2008, at 2:26 PM, Greg Bolsinga wrote:
>>
>>> On Oct 30, 2008, at 1:58 PM, Andrei Popescu wrote:
>>>
>>>> UNKNOWN_ERROR = 1 (could be 0, but other error interfaces start at 1,
>>>> e.g. http://www.w3.org/html/wg/html5/#mediaerror)
>>>> PERMISSION_DENIED = 2
>>>> POSITION_UNAVAILABLE = 3
>>>> TIMEOUT = 4
>>>
>>> That's fine with me. Will they be named constants as well?
>>
>> How do mean? They are under the PositionError object so that they do not
>> all have to be suffixed with ERROR or something like that.
>
> Basically I'm thinking of something along the lines of XMLHttpRequest:
>
> http://www.w3.org/TR/XMLHttpRequest/#xmlhttprequest
>
> readyState has multiple named constants.
>
> Thanks,
> -- Greg
Ok, so the current agreement seems to be:
interface PositionError {
const unsigned short UNKNOWN_ERROR = 0;
const unsigned short PERMISSION_DENIED = 1;
const unsigned short POSITION_UNAVAILABLE = 2;
const unsigned short TIMEOUT = 3;
(...)
};
Are there any further comments on this? If not, this is what I will
add to the spec.
Thanks,
Andrei
Received on Tuesday, 4 November 2008 10:58:59 UTC