On Wed, Mar 28, 2012 at 12:03 PM, Anant Narayanan <
an...@mozilla.com> wrote:
> On Mar 28, 2012, at 7:16 PM, Mounir Lamouri wrote:
>> On 03/28/2012 01:21 AM, Anant Narayanan wrote:
>>> On the specific issue of orientation, is there a use case for
>>> portrait-secondary? I don't think there is one for landscape-secondary
>>> either, and I'm not a fan of adding values that would go unused just for
>>> consistency's sake.
>>
>> So basically you want to forbid applications to have a
>> portrait-secondary or landscape-secondary orientations just because you
>> believe there is no use case for that? That seem quite a bit extreme…
>
> No, I said we won't add it until a use-case for it is presented to the list. This approach has been adopted for all other fields in the manifest as well.
I agree, this is the approach we tend to take with web features in
general. To add more details to the use-cases Mounir mentioned:
The use-cases for "portrait" and "landscape" should hopefully be
pretty obvious. They would both allow "either" portrait/landscape
directions. I.e. if you flip your phone/tablet upside down, the screen
would flip around and you'd see things right-side-up again.
However for a game where you are waving your device around a lot, for
example a racing game where you turn the car by turning your device,
you don't want the screen to flip automatically if you turn your car
hard enough. So for these cases we need to support "portrait-primary"
and "landscape-primary" as well.
That leaves "portrait-secondary" and "landscape-secondary". As Mounir
pointed out, these could be useful in a game where two players facing
each other take turns while having the device laying in between them
on a table. I'm less sure there are use-cases for putting these as
static orientations in the manifest file.
However it seems like a benefit to be consistent rather than just
excluding 2 out of 6 orientations. So I think we should support all
orientations in the manifest. And who knows, maybe someone will
develop a absolutely hilarious browser which renders the web
upside-down :)
/ Jonas