| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: |
| 6 // This file contains documentation that is merged into the real source. |
| 7 // Do not make code changes here. |
| 8 |
| 9 /// @domName BatteryManager |
| 10 interface BatteryManager extends EventTarget { |
| 11 |
| 12 /** |
| 13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 14 */ |
| 15 BatteryManagerEvents get on(); |
| 16 |
| 17 /** @domName BatteryManager.charging */ |
| 18 final bool charging; |
| 19 |
| 20 /** @domName BatteryManager.chargingTime */ |
| 21 final num chargingTime; |
| 22 |
| 23 /** @domName BatteryManager.dischargingTime */ |
| 24 final num dischargingTime; |
| 25 |
| 26 /** @domName BatteryManager.level */ |
| 27 final num level; |
| 28 |
| 29 /** @domName BatteryManager.addEventListener */ |
| 30 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 31 |
| 32 /** @domName BatteryManager.dispatchEvent */ |
| 33 bool $dom_dispatchEvent(Event evt); |
| 34 |
| 35 /** @domName BatteryManager.removeEventListener */ |
| 36 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 37 } |
| 38 |
| 39 interface BatteryManagerEvents extends Events { |
| 40 |
| 41 EventListenerList get chargingChange(); |
| 42 |
| 43 EventListenerList get chargingTimeChange(); |
| 44 |
| 45 EventListenerList get dischargingTimeChange(); |
| 46 |
| 47 EventListenerList get levelChange(); |
| 48 } |
| OLD | NEW |