| Index: content/browser/battery_status/battery_status_manager_win.h
|
| diff --git a/content/browser/battery_status/battery_status_manager_win.h b/content/browser/battery_status/battery_status_manager_win.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5169e4bf8c8e66193711562010d74e019d0c092f
|
| --- /dev/null
|
| +++ b/content/browser/battery_status/battery_status_manager_win.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
|
| +#define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
|
| +
|
| +#include <windows.h>
|
| +#include "content/common/content_export.h"
|
| +#include "third_party/WebKit/public/platform/WebBatteryStatus.h"
|
| +
|
| +namespace content {
|
| +
|
| +enum WinACLineStatus {
|
| + WIN_AC_LINE_STATUS_OFFLINE = 0,
|
| + WIN_AC_LINE_STATUS_ONLINE = 1,
|
| + WIN_AC_LINE_STATUS_UNKNOWN = 255,
|
| +};
|
| +
|
| +// Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS.
|
| +CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus(
|
| + const SYSTEM_POWER_STATUS& win_status);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
|
|
|