Closed
Bug 938035
Opened 12 years ago
Closed 12 years ago
the definition of device orientation in firefox is not same as w3c spec
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: viralwang, Assigned: viralwang)
References
Details
Attachments
(1 file, 2 obsolete files)
What we currently do is to get the device orientation data from Android HAL and pass it to gaia. However, the orientation data we get from Android HAL didn't match the W3C spec.
In W3C spec, device orientation data contains alpha, beta, gamma
In Android HAL, it reports azimuth, pitch, and roll.
in Android HAL, azimuth=90 means East but alpha=90 means West in W3C spec
pitch and roll are similar to beta and gamma but with different sign.
One example:
(90, 30, -40) in Android HAL means the same orientation as (270, -30, 40) in W3C
For gonk backend, I would like to transform it in gecko/hal/gonk/GonkSensor.cpp
Also need to check the Android backend since we also found the difference in Android Firefox.
Comment 1•12 years ago
|
||
ref link: http://www.w3.org/TR/orientation-event/
Assignee | ||
Comment 2•12 years ago
|
||
Hi Dong,
This patch include the gonk and android backend to met the w3c spec for device orientation data.
Could you please help review this patch?
Thanks!
Attachment #832837 -
Flags: review?(doug.turner)
Comment 3•12 years ago
|
||
Comment on attachment 832837 [details] [diff] [review]
Bug 938035 - the definition of device orientation in firefox is not same as w3c spec (v1)
lgtm
Attachment #832837 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 4•12 years ago
|
||
add reviewer in comment.
Attachment #832837 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•12 years ago
|
||
Find a typo in comment :(
Attachment #8338223 -
Attachment is obsolete: true
Comment 6•12 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•