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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
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 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+
add reviewer in comment.
Attachment #832837 - Attachment is obsolete: true
Keywords: checkin-needed
Find a typo in comment :(
Attachment #8338223 - Attachment is obsolete: true
Depends on: 1043102
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: