2011-10-05 22:15:45 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2011-10-20 21:38:39 +00:00
|
|
|
/* vim: set sw=2 ts=8 et ft=cpp : */
|
2012-02-10 10:04:44 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-02-02 06:09:00 +00:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
2012-02-10 10:04:44 +00:00
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-10-05 22:15:45 +00:00
|
|
|
|
|
|
|
#include "Hal.h"
|
2011-11-02 15:14:01 +00:00
|
|
|
#include "mozilla/dom/battery/Constants.h"
|
2011-09-30 07:00:48 +00:00
|
|
|
|
2011-10-05 22:15:45 +00:00
|
|
|
namespace mozilla {
|
|
|
|
namespace hal_impl {
|
|
|
|
|
2011-11-02 15:14:01 +00:00
|
|
|
void
|
|
|
|
EnableBatteryNotifications()
|
|
|
|
{}
|
|
|
|
|
|
|
|
void
|
|
|
|
DisableBatteryNotifications()
|
|
|
|
{}
|
|
|
|
|
|
|
|
void
|
|
|
|
GetCurrentBatteryInformation(hal::BatteryInformation* aBatteryInfo)
|
|
|
|
{
|
|
|
|
aBatteryInfo->level() = dom::battery::kDefaultLevel;
|
|
|
|
aBatteryInfo->charging() = dom::battery::kDefaultCharging;
|
2011-12-04 13:00:21 +00:00
|
|
|
aBatteryInfo->remainingTime() = dom::battery::kDefaultRemainingTime;
|
2011-11-02 15:14:01 +00:00
|
|
|
}
|
|
|
|
|
2011-10-05 22:15:45 +00:00
|
|
|
} // hal_impl
|
|
|
|
} // namespace mozilla
|