hal/fallback/FallbackBattery.cpp
author Gregory Szorc <gps@mozilla.com>
Thu, 09 Nov 2017 22:41:17 -0800
changeset 443570 d05549af9bf7a29140032474fcb1bea293b834cb
parent 97030 cda84ca70452c67a0ec6c544f1b1dfaa1f76f2e8
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1416052 - Remove mkdir of objdir from client.mk; r=nalexander Now that mach is being used to invoke client.mk, we can perform objdir directory creation there. Removing the use of mkdir_deps meant that we could remove some included make files which AFAICT were only used to provide $(mkdir_deps). MozReview-Commit-ID: 4ZRToz8xqZy

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et ft=cpp : */
/* 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 "Hal.h"
#include "mozilla/dom/battery/Constants.h"

namespace mozilla {
namespace hal_impl {

void
EnableBatteryNotifications()
{}

void
DisableBatteryNotifications()
{}

void
GetCurrentBatteryInformation(hal::BatteryInformation* aBatteryInfo)
{
  aBatteryInfo->level() = dom::battery::kDefaultLevel;
  aBatteryInfo->charging() = dom::battery::kDefaultCharging;
  aBatteryInfo->remainingTime() = dom::battery::kDefaultRemainingTime;
}

} // hal_impl
} // namespace mozilla