W3C home > Mailing lists > Public > public-web-notification@w3.org > March 2012

Re: static permission functions on Notification (was Feedback from Safari on Web Notifications)

From: Jon Lee <jonlee@apple.com>
Date: Tue, 13 Mar 2012 23:16:47 -0700
Cc: Marcos Caceres <w3c@marcosc.com>, public-web-notification@w3.org
Message-id: <20613FBF-90DA-4CD0-B599-3FFF5A046D31@apple.com>
To: John Gregg <johnnyg@google.com>
On Mar 13, 2012, at 9:30 AM, John Gregg wrote:

> Either way we go we are setting the example of how we think it should be done, so we should settle the API discussion rather than just choosing the shortest path to implementation.

On this point, did anyone have any thoughts about the API proposal? Briefly:

1) permissionLevel() returns a string describing the permission.
2) Three values: granted/denied/default. "default" means to deny, but the user never made a decision.
3) Request permission callback includes the string value as a parameter.

Jon
Received on Wednesday, 14 March 2012 06:17:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 December 2012 14:48:28 GMT