LGTM with starting the implementation, but expect that the API might change
as there is ongoing discussions.

Are you implementing this as an extension? or do you intent to implement it
in Blink?

Kenneth


On Tue, Nov 12, 2013 at 7:09 PM, Liang, Zhenyu <[email protected]>wrote:

>  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/*<http://www.w3.org/TR/screen-orientation/>
>
> Affected component: xwalk/runtime
>
> Related feature in Jira:
> *https://crosswalk-project.org/jira/browse/XWALK-277*<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
>
>


-- 
Kenneth Rohde Christiansen
Web Platform Architect, Intel Corporation.
Phone  +45 4294 9458 ﹆﹆﹆
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to