Spec
Summary
Add Battery status support, re use much of the existing code and revisit every concern/design/issue with the previous implementation.
http://codereview.chromium.org/10024013/
https://bugs.webkit.org/show_bug.cgi?id=90538
The current implementation take a status-per-view model where as I would like to make it a single client interface on the platform and multiplexing to be on the web core level as suggested over the discussions on the bug. There were a few comments on the spec as well and I expect to
have good discussion on this and want to take it forward in the right direction.
Motivation
The Battery Status API defines a means for developers to determine the battery status of the hosting device to make decisions to whether defer or scale back an operation. It is highly useful in cases of timer based operations like repeated checking for new emails on a timer etc.
Compatibility Risk
Low.
Ongoing technical constraints
None
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes
OWP launch tracking bug?
https://code.google.com/p/chromium/issues/detail?id=122593
Link to entry on the feature dashboard
http://www.chromestatus.com/features/4537134732017664
Requesting approval to ship?
No.
Thanks,
-Srini.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
+blink-dev, chromium-dev to bcc: since this concerns a Blink feature.Hi Srini,Thanks for your interest in implementing this! Please be sure to read this issue which contains quite a bit of discussion on the Battery Status API:Comment 50 has some open questions on the API itself, and I'd be very interested in hearing your take on them.1) What real-life use-cases do you expect the Battery Status API to address?It's a nice-to-have, but most of the use-cases are debatable or ideological at best. I have doubts about whether anyone would *actually* use them, especially since browsers already implement some throttling behavior -- albeit based on the Page Visibility API.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
This api needs promises badly. We should not implement as-is.
How does onlevelchange work though? We don't want to fire an event for ever 1% of battery discharged, that just means the page never sleeps.
On Mon, Jan 6, 2014 at 4:31 PM, Elliott Sprehn <esp...@chromium.org> wrote:
How does onlevelchange work though? We don't want to fire an event for ever 1% of battery discharged, that just means the page never sleeps.On a full battery this would only be 100 events. 100 seems like it would be in the noise compared to all of the extra mouse events we throw on mobile.
+blink-dev, chromium-dev to bcc: since this concerns a Blink feature.Hi Srini,Thanks for your interest in implementing this! Please be sure to read this issue which contains quite a bit of discussion on the Battery Status API:Comment 50 has some open questions on the API itself, and I'd be very interested in hearing your take on them.1) What real-life use-cases do you expect the Battery Status API to address?It's a nice-to-have, but most of the use-cases are debatable or ideological at best. I have doubts about whether anyone would *actually* use them, especially since browsers already implement some throttling behavior -- albeit based on the Page Visibility API.
2) The API specifies a number of properties which have to be synchronously available.What is your plan for implementing support for them? Using synchronous IPCs isn't a very nice solution, and I don't think it's worth continuously monitoring battery status and preemptively informing the renderer about it given the (expected?) low usage. Specifically for Android, supporting the {chargingTime, dischargingTime} properties will be challenging as well.
I am cc'ing the editor Anssi, as this is already a Candidate
Recommendation: http://www.w3.org/TR/battery-status/
How does onlevelchange work though? We don't want to fire an event for ever 1% of battery discharged, that just means the page never sleeps.
+blink-dev, chromium-dev to bcc: since this concerns a Blink feature.Hi Srini,Thanks for your interest in implementing this! Please be sure to read this issue which contains quite a bit of discussion on the Battery Status API:Comment 50 has some open questions on the API itself, and I'd be very interested in hearing your take on them.1) What real-life use-cases do you expect the Battery Status API to address?It's a nice-to-have, but most of the use-cases are debatable or ideological at best. I have doubts about whether anyone would *actually* use them, especially since browsers already implement some throttling behavior -- albeit based on the Page Visibility API.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
> Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?Assuming the issues with the spec itself are cleared will you be
> Yes
providing implementations for all platforms? or are you starting with
a subset of them initially? If the API is finally cleared to go I'd
like to discuss the android support on a parallel thread (in
chromium-dev perhaps unless people think it's too noisy).
Hi Peter, Srini,
On 07 Jan 2014, at 07:58, Venkateswaran, Srinivasa Ragavan <srinivasa.ragav...@intel.com> wrote:
> On Mon, Jan 6, 2014 at 10:57 PM, Peter Beverloo <pe...@chromium.org> wrote:
> +blink-dev, chromium-dev to bcc: since this concerns a Blink feature.
>
> Thanks for your interest in implementing this! Please be sure to read this issue which contains quite a bit of discussion on the Battery Status API:Srini, thanks for starting the thread. And thanks Peter for raising the issues.
> https://code.google.com/p/chromium/issues/detail?id=122593
Hi,On Tue, Jan 7, 2014 at 7:02 PM, Kostiainen, Anssi <anssi.ko...@intel.com> wrote:
Hi Peter, Srini,
On 07 Jan 2014, at 07:58, Venkateswaran, Srinivasa Ragavan <srinivasa.ragav...@intel.com> wrote:
> On Mon, Jan 6, 2014 at 10:57 PM, Peter Beverloo <pe...@chromium.org> wrote:
> +blink-dev, chromium-dev to bcc: since this concerns a Blink feature.
>
> Thanks for your interest in implementing this! Please be sure to read this issue which contains quite a bit of discussion on the Battery Status API:Srini, thanks for starting the thread. And thanks Peter for raising the issues.
> https://code.google.com/p/chromium/issues/detail?id=122593
Thx Anssi for joining and replying to queries on the list. Sorry for creating noise, I wanted to see if there are any other important concerns/issues around this or else I'd like to go ahead to try it and see.