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_LINUX_H_ | |
| 5 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_ | |
| 6 | |
| 7 #include "content/browser/battery_status/battery_status_manager.h" | |
| 8 #include "content/common/content_export.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class DictionaryValue; | |
| 12 } | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 // State reflects the possible UPower.Device.State values, | |
| 17 // see upower.freedesktop.org/docs/Device.html#Device:State. | |
| 18 enum UPowerDeviceState { | |
| 19 UPOWER_DEVICE_STATE_UNKNOWN = 0, | |
| 20 UPOWER_DEVICE_STATE_CHARGING = 1, | |
| 21 UPOWER_DEVICE_STATE_DISCHARGING = 2, | |
| 22 UPOWER_DEVICE_STATE_EMPTY = 3, | |
| 23 UPOWER_DEVICE_STATE_FULL = 4, | |
| 24 UPOWER_DEVICE_STATE_PENDING_CHARGE = 5, | |
| 25 UPOWER_DEVICE_STATE_PENDING_DISCHARGE = 6, | |
| 26 }; | |
| 27 | |
| 28 CONTENT_EXPORT void ComputeWebBatteryStatus( | |
|
Michael van Ouwerkerk
2014/08/08 14:54:59
Why does this need CONTENT_EXPORT?
mlamouri (slow - plz ping)
2014/08/08 17:31:00
To be used in the unit test I presume.
timvolodine
2014/08/08 18:46:45
On 2014/08/08 14:54:59, Michael van Ouwerkerk wrot
timvolodine
2014/08/08 18:46:45
yes, unittests are a separate library so need to e
| |
| 29 const base::DictionaryValue& dictionary, blink::WebBatteryStatus& status); | |
|
mlamouri (slow - plz ping)
2014/08/07 16:17:04
Could you add a comment describing what this is do
timvolodine
2014/08/08 18:46:45
Done.
| |
| 30 | |
| 31 } // namespace content | |
| 32 | |
| 33 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_ | |
| OLD | NEW |