[webkit-dev] Adding ENABLE_BATTERY_STATUS to WebCore
zecke at selfish.org
Wed Jun 15 10:08:00 PDT 2011
On 06/15/2011 06:58 PM, Brett Wilson wrote:
> Why would a web page care about whether the battery is being charged
> when the device is plugged in?
aeh, first of all my mind is playing tricks and I could swear that "its
battery is being charged" was not in the isPlugged description so my comment
To answer your question (and leaving aside I am wrong about the isPlugged), in
the example one uses isPlugged + charge level to change the polling
interval. My point was that just because I have a charger attached, doesn't
mean that the device is not emptying the battery (be it I do not have enough
current on the USB outlet, a USB hub...).
PS: "If the device is current plugged in" is needs probably a ly for the current.
More information about the webkit-dev