I plan to implement as an extension, it’s easy to maintain when chromium or 
spec changes.

Zhenyu

From: Kenneth Rohde Christiansen [mailto:[email protected]]
Sent: Monday, November 18, 2013 6:03 PM
To: Liang, Zhenyu
Cc: [email protected]
Subject: Re: [Crosswalk-dev] Intent to Implement - The Screen Orientation API

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]<mailto:[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/

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]<mailto:[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