W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2014

Re: [whatwg] Proposal: Wake Lock API

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 19 Aug 2014 13:27:43 -0700
Message-ID: <CAAWBYDCF94EZfCW8276+CeAFGqcR+01FRsqoLswJdHYnu27uHQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Mounir Lamouri <mounir@lamouri.fr>, Marcos Caceres <w3c@marcosc.com>
On Tue, Aug 19, 2014 at 11:07 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> On Tue, Aug 19, 2014 at 5:35 AM, Mounir Lamouri <mounir@lamouri.fr> wrote:
>> How would you handle feature detection with this design?
> This is a good question. I don't have a better solution than adding
> separate DisplayWakeLock() and SystemWakeLock() classes.

Which, as others have noted, are what we want to do anyway, beyond the
feature-testing angle.  Different WakeLocks can grow different methods
down the line.

Received on Tuesday, 19 August 2014 20:28:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:22 UTC