Summary: This feature would allow Web apps to receive orientation events and lock on certain orientations. The screen orientation API was proposed by Mozilla. It's currently in working draft status. It seems that only Gecko has implemented the API.
Spec: http://www.w3.org/TR/screen-orientation/ Affected component: xwalk/runtime Related feature in Jira: https://crosswalk-project.org/jira/browse/XWALK-277 Target Release: Crosswalk-3 Target Platform: Tizen Implementation details: I had already enabled the sensor support on Tizen, and the orientation of UI. The major things need to do is to expose the API in Javascript. Crosswalk should notify callbacks registered by apps when orientation changed. This can be achieved by using xwalk extension and sensor provider. To implement the lock/unlock API, Crosswalk needs to keep the locking status for all apps. Apps may change the status through the API. Each time orientation changing, Crosswalk needs to check the status before action. If the target orientation is not allowed, Crosswalk will not rotate the UI and send notifications. Regards, Zhenyu
_______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
