- From: Mercurial notifier <cvsmail@w3.org>
- Date: Fri, 06 Jun 2014 11:35:18 +0000
- To: public-dap-commits@w3.org
changeset: 522:77dbe211ed07 user: Mounir Lamouri <mounir@lamouri.fr> date: Fri Jun 06 12:34:01 2014 +0100 files: battery/Overview.src.html description: multiple batteries support diff -r f9fb2068c558 -r 77dbe211ed07 battery/Overview.src.html --- a/battery/Overview.src.html Fri Jun 06 12:25:15 2014 +0100 +++ b/battery/Overview.src.html Fri Jun 06 12:34:01 2014 +0100 @@ -352,6 +352,31 @@ </code> events are fired is left to the implementation. </div> <section> + <h2>Multiple batteries</h2> + <p> + If a hosting device contains more than one battery, + <a>BatteryManager</a> SHOULD expose an unified view of the batteries. + </p> + <p> + The <code>charging</code> attribute MUST be set to true if at least + one battery's <code>charging</code> state as described above is true. + Otherwise, it MUST be set to false. + </p> + <p> + The <code>level</code> attribute MUST be set to the sum of the + individual battery's <code>level</code> attributes divided by the + number of batteries. + </p> + <p> + The <code>chargingTime</code> attribute MUST be set to the max of all + the individual batteries <code>chargingTime</code>. + </p> + <p> + The <code>dischargingTime</code> attribute MUST be set to the max of + all the individual batteries <code>dischargingTime</code>. + </p> + </section> + <section> <h2>Event handlers</h2> <p> The following are the <a>event handlers</a> (and their corresponding
Received on Friday, 6 June 2014 11:35:19 UTC