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.

Received on Wednesday, 14 March 2012 06:17:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:13 UTC