1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
6 #define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
9 #include "device/battery/battery_export.h"
10 #include "device/battery/battery_status.mojom.h"
14 enum WinACLineStatus
{
15 WIN_AC_LINE_STATUS_OFFLINE
= 0,
16 WIN_AC_LINE_STATUS_ONLINE
= 1,
17 WIN_AC_LINE_STATUS_UNKNOWN
= 255,
20 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS.
21 DEVICE_BATTERY_EXPORT BatteryStatus
ComputeWebBatteryStatus(
22 const SYSTEM_POWER_STATUS
& win_status
);
26 #endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_