#include "third_party/blink/renderer/modules/battery/battery_manager.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/navigator.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/modules/battery/battery_dispatcher.h"
namespace blink {
const char BatteryManager::kSupplementName[] = …;
ScriptPromise<BatteryManager> BatteryManager::getBattery(
ScriptState* script_state,
Navigator& navigator) { … }
BatteryManager::~BatteryManager() = default;
BatteryManager::BatteryManager(Navigator& navigator)
: … { … }
ScriptPromise<BatteryManager> BatteryManager::StartRequest(
ScriptState* script_state) { … }
bool BatteryManager::charging() { … }
double BatteryManager::chargingTime() { … }
double BatteryManager::dischargingTime() { … }
double BatteryManager::level() { … }
void BatteryManager::DidUpdateData() { … }
void BatteryManager::RegisterWithDispatcher() { … }
void BatteryManager::UnregisterWithDispatcher() { … }
bool BatteryManager::HasLastData() { … }
void BatteryManager::ContextLifecycleStateChanged(
mojom::FrameLifecycleState state) { … }
void BatteryManager::ContextDestroyed() { … }
bool BatteryManager::HasPendingActivity() const { … }
void BatteryManager::Trace(Visitor* visitor) const { … }
}