OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // http://dev.w3.org/2009/dap/system-info/battery-status.html | |
6 [ | |
7 NoInterfaceObject, | |
8 ActiveDOMObject, | |
9 RuntimeEnabled=BatteryStatus, | |
10 ] interface BatteryManager : EventTarget { | |
11 readonly attribute boolean charging; | |
12 readonly attribute double chargingTime; | |
13 readonly attribute double dischargingTime; | |
14 readonly attribute double level; | |
abarth-chromium
2014/02/28 06:45:14
I suspect we'll want to remove these properties as
| |
15 | |
16 attribute EventHandler onchargingchange; | |
17 attribute EventHandler onchargingtimechange; | |
18 attribute EventHandler ondischargingtimechange; | |
19 attribute EventHandler onlevelchange; | |
20 | |
21 }; | |
22 | |
OLD | NEW |