2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2011-11-02 05:05:09 -07:00
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
|
|
|
|
|
|
|
interface nsIDOMEventListener;
|
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[scriptable, builtinclass, uuid(3d95d773-3c19-4944-8152-ec6ca01a8bde)]
|
2012-07-05 03:05:09 -07:00
|
|
|
interface nsIDOMBatteryManager : nsIDOMEventTarget
|
2011-11-02 05:05:09 -07:00
|
|
|
{
|
2011-11-09 00:56:52 -08:00
|
|
|
readonly attribute double level;
|
2011-11-02 05:05:09 -07:00
|
|
|
readonly attribute boolean charging;
|
2011-11-09 00:57:57 -08:00
|
|
|
readonly attribute double dischargingTime;
|
2011-11-09 00:58:18 -08:00
|
|
|
readonly attribute double chargingTime;
|
2011-11-02 05:05:09 -07:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onlevelchange;
|
|
|
|
[implicit_jscontext] attribute jsval onchargingchange;
|
|
|
|
[implicit_jscontext] attribute jsval ondischargingtimechange;
|
|
|
|
[implicit_jscontext] attribute jsval onchargingtimechange;
|
2011-11-02 05:05:09 -07:00
|
|
|
};
|