Rename Animate as Begin(Main)Frame
[chromium-blink-merge.git] / content / browser / battery_status / battery_status_manager_linux.h
blob5bce494743e35b2d025033113aad26d8c6d725c4
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_
7 #include "content/common/content_export.h"
8 #include "third_party/WebKit/public/platform/WebBatteryStatus.h"
10 namespace base {
11 class DictionaryValue;
14 namespace content {
16 // UPowerDeviceState 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,
28 // Returns the WebBatteryStatus computed using the provided dictionary.
29 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus(
30 const base::DictionaryValue& dictionary);
32 } // namespace content
34 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_