Contact email:
mlam...@chromium.org
Spec:
https://w3c.github.io/screen-orientation/
Summary:
The Screen Orientation API provides the ability to read the screen
orientation type and angle, to be informed when the screen orientation
state changes, and be able to lock the screen orientation to a specific
state.
Intent to Implement:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/lgUq8K9IGlU/PTPKKkKHOeUJ
Is this feature supported on all five Blink platforms (Windows, Mac,
Linux, Chrome OS and Android)?
There are two parts for this feature:
* Reading the screen orientation and getting an event what it changes:
Yes in all platforms with a possible No for Android API Level before 17
(depends on API OWNERS decision). Also, Win8 Metro has a bug being
worked on (ash fully ignores the native screen for the moment).
* Locking the screen orientation: Yes. However, the specification allows
us to reject the request which is what we do in all platforms but
Android (in which you need to be fullscreen unless you have been added
to homescreen). Windows 8 support _might_ happen before shipping. Chrome
OS support will happen later.
Demo link:
http://oldworld.fr/google/screenorientation.html (very basic, meant for
testing/debugging)
Debuggability:
There isn't much need for debuggability tools but we could include
easily something in the Emulator part of the DevTools to help developers
change their device orientation angle.
Compatibility Risk:
I have been working closely with Mozilla on the specification. They are
happy with the current document (and are now co-editing it). Microsoft
expressed positive feedback during the lastest WebApps F2F. Both Mozilla
and Microsoft are shipping a prefixed API that is matching an older
version of the specification. There have been a few changes in the API
since the "Intent to Implement" to match a lot of feedback we got. I am
fairly confident there should not be major changes coming now as far as
compatibility is concerned.
OWP launch tracking bug:
http://crbug.com/162827
Link to entry on the feature dashboard:
http://www.chromestatus.com/features/6191285283061760
Cheers,
-- Mounir