/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsIDOMEventTarget.idl" interface nsIDOMEventListener; [scriptable, builtinclass, uuid(3d95d773-3c19-4944-8152-ec6ca01a8bde)] interface nsIDOMBatteryManager : nsIDOMEventTarget { readonly attribute double level; readonly attribute boolean charging; readonly attribute double dischargingTime; readonly attribute double chargingTime; [implicit_jscontext] attribute jsval onlevelchange; [implicit_jscontext] attribute jsval onchargingchange; [implicit_jscontext] attribute jsval ondischargingtimechange; [implicit_jscontext] attribute jsval onchargingtimechange; };