Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / battery_status / battery_status_manager_win.h
blob5169e4bf8c8e66193711562010d74e019d0c092f
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 CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
6 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
8 #include <windows.h>
9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebBatteryStatus.h"
12 namespace content {
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 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus(
22 const SYSTEM_POWER_STATUS& win_status);
24 } // namespace content
26 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_