dom/battery/nsIDOMBatteryManager.idl
author Nicholas Nethercote <nnethercote@mozilla.com>
Wed, 18 Jul 2012 17:38:10 -0700
changeset 107396 3c589e94b3e00d357ad8d3dba86c439430c47706
parent 103204 9f088e7bd5332c8798205435bd647ea74cea9e26
permissions -rw-r--r--
Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/ (attempt 2). r=luke.

/* 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(03c6dd20-7efd-4640-b958-c0ce11b9aadf)]
interface nsIDOMBatteryManager : nsIDOMEventTarget
{
  readonly attribute double     level;
  readonly attribute boolean    charging;
  readonly attribute double     dischargingTime;
  readonly attribute double     chargingTime;

  attribute nsIDOMEventListener onlevelchange;
  attribute nsIDOMEventListener onchargingchange;
  attribute nsIDOMEventListener ondischargingtimechange;
  attribute nsIDOMEventListener onchargingtimechange;
};