This source file includes following definitions.
- create
- create
- m_level
- m_level
#include "config.h"
#include "modules/battery/BatteryStatus.h"
#include <limits>
namespace WebCore {
PassOwnPtr<BatteryStatus> BatteryStatus::create()
{
return adoptPtr(new BatteryStatus);
}
PassOwnPtr<BatteryStatus> BatteryStatus::create(bool charging, double chargingTime, double dischargingTime, double level)
{
return adoptPtr(new BatteryStatus(charging, chargingTime, dischargingTime, level));
}
BatteryStatus::BatteryStatus()
: m_charging(true)
, m_chargingTime(0)
, m_dischargingTime(std::numeric_limits<double>::infinity())
, m_level(1)
{
}
BatteryStatus::BatteryStatus(bool charging, double chargingTime, double dischargingTime, double level)
: m_charging(charging)
, m_chargingTime(chargingTime)
, m_dischargingTime(dischargingTime)
, m_level(level)
{
}
}