Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 #ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | |
|
scottmg
2014/08/13 23:39:52
nit; add \n
timvolodine
2014/08/14 15:34:34
Done.
| |
| 5 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | |
| 6 | |
| 7 #include <windows.h> | |
| 8 #include "content/common/content_export.h" | |
| 9 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 enum WinACLineStatus { | |
| 14 WIN_AC_LINE_STATUS_OFFLINE = 0, | |
| 15 WIN_AC_LINE_STATUS_ONLINE = 1, | |
| 16 WIN_AC_LINE_STATUS_UNKNOWN = 255, | |
| 17 }; | |
| 18 | |
| 19 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS. | |
| 20 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus( | |
| 21 const SYSTEM_POWER_STATUS& win_status); | |
|
scottmg
2014/08/13 23:39:52
nit; 4s indent
timvolodine
2014/08/14 15:34:34
Done.
| |
| 22 | |
| 23 } // namespace content | |
| 24 | |
| 25 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_ | |
| OLD | NEW |