Marco Chen於 2013年10月9日星期三UTC+8上午11時59分53秒寫道:
> 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.
> 
> 
> 


Hi,

(Let us discuss "before webidl" topic for now.)
When I searched "nsIDOMDevicexxxEvent" in the source. I only found 3 events 
which are nsIDOMDeviceMotionEvent.idl, nsIDOMDeviceOrientationEvent.idl and 
nsIDOMDeviceStorage.idl. I assume these are not related to the light sensor 
event which will not play a role for receiving the data from nsDeviceSensors 
and send it to the app layer (please correct me if i am wrong here). In this 
file (event_impl_gen.conf.in), I also did not find any clue about the light 
sensor. 

so here is a notice and a quesion

1. In page 5 of the pdf you refer to, nsDOMDevicexxxEvent should be changed to 
nsIDOMDevicexxxEvent.

2. In page 5, I still dont understand who played the role of 
"nsDOMDevicexxxEvent" in light sensor case.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to