Re: [screen-orientation] Locking to 'current' orientation

2013-12-03 Thread Jonas Sicking
On Tue, Dec 3, 2013 at 2:50 AM, John Mellor wrote: > On Tue, Dec 3, 2013 at 4:52 AM, Jonas Sicking wrote: >> >> The strongest argument that I can think of is that it would be nice to >> keep the manifest spec and the API spec for orientations aligned. So >> if we think this is common enough that

Re: [screen-orientation] Locking to 'current' orientation

2013-12-03 Thread John Mellor
On Tue, Dec 3, 2013 at 4:52 AM, Jonas Sicking wrote: > The strongest argument that I can think of is that it would be nice to > keep the manifest spec and the API spec for orientations aligned. So > if we think this is common enough that apps will want to use it in the > manifest, then allowing

Re: [screen-orientation] Locking to 'current' orientation

2013-12-03 Thread Kenneth Rohde Christiansen
For normal navigation mode (thus inside the browser with chrome) I would agree, but locking to other than current orientation makes sense for apps which are standalone or in combination with the Fullscreen API. Kenneth > The whole point is that the API must not allow locking to a particular > ori

Re: [screen-orientation] Locking to 'current' orientation

2013-12-02 Thread Jonas Sicking
On Mon, Dec 2, 2013 at 9:07 PM, Glenn Maynard wrote: > The whole point is that the API must not allow locking to a particular > orientation at all, only to the current orientation. Allowing web pages to > cause my phone to *switch* orientations is crazy. (You'd end up with half > of the web lock

Re: [screen-orientation] Locking to 'current' orientation

2013-12-02 Thread Glenn Maynard
On Mon, Dec 2, 2013 at 10:52 PM, Jonas Sicking wrote: > On Nov 26, 2013 9:17 AM, "Mounir Lamouri" wrote: > > > > Hi, > > > > I got some requests from different organizations to add the ability to > > lock to the 'current' orientation in the Screen Orientation API. > > > > >From Javascript, that

Re: [screen-orientation] Locking to 'current' orientation

2013-12-02 Thread Jonas Sicking
On Nov 26, 2013 9:17 AM, "Mounir Lamouri" wrote: > > Hi, > > I got some requests from different organizations to add the ability to > lock to the 'current' orientation in the Screen Orientation API. > > >From Javascript, that would allow writing > window.screen.lockOrientation('current'); > inst

Re: [screen-orientation] Locking to 'current' orientation

2013-12-02 Thread Kostiainen, Anssi
On 26 Nov 2013, at 18:49, Mounir Lamouri wrote: [...] > If 'current' is added, I wouldn't say that there is a race condition > issue because if you lock to 'current' you do not really care about the > actual orientation. > > This said, I do not think that 'current' is very useful from the JS AP

Re: [screen-orientation] Locking to 'current' orientation

2013-11-26 Thread Mounir Lamouri
On Wed, Nov 27, 2013, at 2:52, Marcos Caceres wrote: > IMHO, it would be confusing to have an app that when you launch it the > first time locks one way... but when you launch it the next time, locks > another way. > > In the 300 apps we've been cataloguing for orientation [1], there is not > a s

Re: [screen-orientation] Locking to 'current' orientation

2013-11-26 Thread Marcos Caceres
On Tuesday, 26 November 2013 at 15:30, Kenneth Rohde Christiansen wrote: > hi, > > On Tue, Nov 26, 2013 at 4:25 PM, Marcos Caceres (mailto:w...@marcosc.com)> wrote: > > On Tuesday, 26 November 2013 at 15:16, Mounir Lamouri wrote: > > > Hi, > > > > > > I got some requests from different organ

Re: [screen-orientation] Locking to 'current' orientation

2013-11-26 Thread Kenneth Rohde Christiansen
hi, On Tue, Nov 26, 2013 at 4:25 PM, Marcos Caceres wrote: > On Tuesday, 26 November 2013 at 15:16, Mounir Lamouri wrote: >> Hi, >> >> I got some requests from different organizations to add the ability to >> lock to the 'current' orientation in the Screen Orientation API. >> >> > From Javascript

Re: [screen-orientation] Locking to 'current' orientation

2013-11-26 Thread Marcos Caceres
On Tuesday, 26 November 2013 at 15:16, Mounir Lamouri wrote: > Hi, > > I got some requests from different organizations to add the ability to > lock to the 'current' orientation in the Screen Orientation API. > > > From Javascript, that would allow writing > window.screen.lockOrientation('cur

[screen-orientation] Locking to 'current' orientation

2013-11-26 Thread Mounir Lamouri
Hi, I got some requests from different organizations to add the ability to lock to the 'current' orientation in the Screen Orientation API. >From Javascript, that would allow writing window.screen.lockOrientation('current'); instead of window.screen.lockOrientation(window.screen.orientation);