Hi, You can refer to Bug 915813 which transferred some sensor events to GENERATED_EVENTS_WEBIDL_FILES. Before webidl, we declared nsIDOMDeviceXXXEvent then generated simple event by event_impl_gen.conf.in. After webidl, we can remove nsIDOMDeviceXXXEvent and use the way of GENERATED_EVENTS_WEBIDL_FILES.
Sincerely yours. ----- 原始郵件 ----- 寄件者: [email protected] 收件者: [email protected] 寄件備份: 2013 10 月 9 星期三 上午 11:31:26 主旨: Re: [b2g] Sensor data flow for light sensor Marco Chen於 2013年10月9日星期三UTC+8上午10時21分55秒寫道: > Hi, > > > > You can refer to the document here. > > https://docs.google.com/file/d/0BxKpB0y8NZSHSkRxRHdpRkp5bTg/edit?usp=sharing > > > > Thanks, > > Sincerely yours. > > > > ----- 原始郵件 ----- > > 寄件者: [email protected] > > 收件者: [email protected] > > 寄件備份: 2013 10 月 9 星期三 上午 6:14:04 > > 主旨: [b2g] Sensor data flow for light sensor > > > > Is there any dom for Sensor apps (Devicelight sensor for example) to receive > the data? > > > > nsDOMDeviceMotionEvent works for some sensors but for device light sensor. > > > > I am curious to know the data flow about how light value to be received from > > > > nsDeviceSensors.cpp > > > > > > Thanks for any clue. > > _______________________________________________ > > dev-b2g mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-b2g Thanks Marco. I actually went through the document before. I did not find any DOM behind the app layer and above nsDeviceSensors.cpp. I tried to find the nsDOMDevicexxxEvent but only nsDOMDeviceMotionEvent. This DOM should only work for motion related sensors. Do you have any idea about this? Thanks. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
