OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | 5 #ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ |
6 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | 6 #define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include "content/common/content_export.h" | 9 #include "device/battery/battery_export.h" |
10 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" | 10 #include "device/battery/battery_status.mojom.h" |
11 | 11 |
12 namespace content { | 12 namespace device { |
13 | 13 |
14 enum WinACLineStatus { | 14 enum WinACLineStatus { |
15 WIN_AC_LINE_STATUS_OFFLINE = 0, | 15 WIN_AC_LINE_STATUS_OFFLINE = 0, |
16 WIN_AC_LINE_STATUS_ONLINE = 1, | 16 WIN_AC_LINE_STATUS_ONLINE = 1, |
17 WIN_AC_LINE_STATUS_UNKNOWN = 255, | 17 WIN_AC_LINE_STATUS_UNKNOWN = 255, |
18 }; | 18 }; |
19 | 19 |
20 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS. | 20 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS. |
21 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus( | 21 DEVICE_BATTERY_EXPORT BatteryStatus ComputeWebBatteryStatus( |
22 const SYSTEM_POWER_STATUS& win_status); | 22 const SYSTEM_POWER_STATUS& win_status); |
23 | 23 |
24 } // namespace content | 24 } // namespace device |
25 | 25 |
26 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | 26 #endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ |
OLD | NEW |