Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Side by Side Diff: device/battery/battery_status_manager_linux.h

Issue 457933002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_ 4 #ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_LINUX_H_
5 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_ 5 #define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_LINUX_H_
6 6
7 #include "content/common/content_export.h" 7 #include "device/battery/battery_export.h"
8 #include "third_party/WebKit/public/platform/WebBatteryStatus.h" 8 #include "device/battery/battery_status.mojom.h"
9 9
10 namespace base { 10 namespace base {
11 class DictionaryValue; 11 class DictionaryValue;
12 } 12 }
13 13
14 namespace content { 14 namespace device {
15 15
16 // UPowerDeviceState reflects the possible UPower.Device.State values, 16 // UPowerDeviceState reflects the possible UPower.Device.State values,
17 // see upower.freedesktop.org/docs/Device.html#Device:State. 17 // see upower.freedesktop.org/docs/Device.html#Device:State.
18 enum UPowerDeviceState { 18 enum UPowerDeviceState {
19 UPOWER_DEVICE_STATE_UNKNOWN = 0, 19 UPOWER_DEVICE_STATE_UNKNOWN = 0,
20 UPOWER_DEVICE_STATE_CHARGING = 1, 20 UPOWER_DEVICE_STATE_CHARGING = 1,
21 UPOWER_DEVICE_STATE_DISCHARGING = 2, 21 UPOWER_DEVICE_STATE_DISCHARGING = 2,
22 UPOWER_DEVICE_STATE_EMPTY = 3, 22 UPOWER_DEVICE_STATE_EMPTY = 3,
23 UPOWER_DEVICE_STATE_FULL = 4, 23 UPOWER_DEVICE_STATE_FULL = 4,
24 UPOWER_DEVICE_STATE_PENDING_CHARGE = 5, 24 UPOWER_DEVICE_STATE_PENDING_CHARGE = 5,
25 UPOWER_DEVICE_STATE_PENDING_DISCHARGE = 6, 25 UPOWER_DEVICE_STATE_PENDING_DISCHARGE = 6,
26 }; 26 };
27 27
28 // Returns the WebBatteryStatus computed using the provided dictionary. 28 // Returns the BatteryStatus computed using the provided dictionary.
29 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus( 29 DEVICE_BATTERY_EXPORT BatteryStatus ComputeWebBatteryStatus(
30 const base::DictionaryValue& dictionary); 30 const base::DictionaryValue& dictionary);
31 31
32 } // namespace content 32 } // namespace device
33 33
34 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_LINUX_H_ 34 #endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_LINUX_H_
OLDNEW
« no previous file with comments | « device/battery/battery_status_manager_default.cc ('k') | device/battery/battery_status_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698