mirror of
https://github.com/servo/servo.git
synced 2025-07-02 04:53:39 +01:00
19 lines
823 B
Text
19 lines
823 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the Battery Status API spec.
|
|
// See https://w3c.github.io/battery/
|
|
|
|
partial interface Navigator {
|
|
Promise<BatteryManager> getBattery();
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface BatteryManager : EventTarget {
|
|
readonly attribute boolean charging;
|
|
readonly attribute unrestricted double chargingTime;
|
|
readonly attribute unrestricted double dischargingTime;
|
|
readonly attribute double level;
|
|
attribute EventHandler onchargingchange;
|
|
attribute EventHandler onchargingtimechange;
|
|
attribute EventHandler ondischargingtimechange;
|
|
attribute EventHandler onlevelchange;
|
|
};
|