[webkit-dev] Looking forward to get an advice about event listeners for navigator.battery.

Kihong Kwon kihong.kwon at samsung.com
Mon Mar 5 00:35:29 PST 2012

I'm implementing Battery Status API.

I have an issue which would need your comments.

Battery Status API needs to be added under the Navigator class, but there is
not any event handling logic there.
Therefore, because I have no other choice, I have implemented the necessary
event handling logic in the BatteryManager.
I, however, think it may not look good to add the event listener in the
Batter Status API itself.

IMHO, the Navigator class would need some sort of event listener handling
logic similar to DOMWindow.
I would like to have your comments how you think this.

Thank you.

Best Regards.

More information about the webkit-dev mailing list