diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-28 15:46:41 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-28 15:47:07 +0000 |
commit | 08fb2f306856948ecc71974dd98c0a6d78df25aa (patch) | |
tree | dd008594a9e130c8f2f916de398915cd7e54ad90 /hal/Hal.h | |
parent | 15ed0691f6fe6e558c7e733af9fca0586c4d554b (diff) | |
download | uxp-08fb2f306856948ecc71974dd98c0a6d78df25aa.tar.gz |
Issue #1391 - Remove the DOM battery API
Diffstat (limited to 'hal/Hal.h')
-rw-r--r-- | hal/Hal.h | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -10,7 +10,6 @@ #include "base/basictypes.h" #include "base/platform_thread.h" #include "nsTArray.h" -#include "mozilla/dom/battery/Types.h" #include "mozilla/dom/MozPowerManagerBinding.h" #include "mozilla/dom/network/Types.h" #include "mozilla/dom/power/Types.h" @@ -88,29 +87,6 @@ void CancelVibrate(nsPIDOMWindowInner* aWindow); void CancelVibrate(const hal::WindowIdentifier &id); /** - * Inform the battery backend there is a new battery observer. - * @param aBatteryObserver The observer that should be added. - */ -void RegisterBatteryObserver(BatteryObserver* aBatteryObserver); - -/** - * Inform the battery backend a battery observer unregistered. - * @param aBatteryObserver The observer that should be removed. - */ -void UnregisterBatteryObserver(BatteryObserver* aBatteryObserver); - -/** - * Returns the current battery information. - */ -void GetCurrentBatteryInformation(hal::BatteryInformation* aBatteryInfo); - -/** - * Notify of a change in the battery state. - * @param aBatteryInfo The new battery information. - */ -void NotifyBatteryChange(const hal::BatteryInformation& aBatteryInfo); - -/** * Determine whether the device's screen is currently enabled. */ bool GetScreenEnabled(); |