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

[whatwg] Feedback on the Mozilla FullScreen API proposal

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 06 Aug 2010 08:15:00 +0200
Message-ID: <op.vgz6bac464w2qv@anne-van-kesterens-macbook-pro.local>
On Fri, 06 Aug 2010 00:17:54 +0200, Simon Fraser <smfr at me.com> wrote:
> or have some constants for behavior:
>
>     const unsigned short ALLOW_KEYBOARD_INPUT = 1;
>     void requestFullScreen(unsigned short behavior)
> This would be extensible, and would allow us to permit other
> behaviors later.

Can't we use a string then -- a space-separated list of tokens? Constants  
are somewhat icky to use in JavaScript and here you would have to use some  
trickery if you would actually want to request several kinds of behaviors  
using a single constant in the future.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 5 August 2010 23:15:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC