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

Side by Side Diff: services/device/battery/battery_status_manager_win.h

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Rebase only Created 3 years, 8 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
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 4
5 #ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ 5 #ifndef SERVICES_DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
6 #define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ 6 #define SERVICES_DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include "device/battery/battery_export.h" 9 #include "services/device/public/interfaces/battery_status.mojom.h"
10 #include "device/battery/battery_status.mojom.h"
11 10
12 namespace device { 11 namespace device {
13 12
14 enum WinACLineStatus { 13 enum WinACLineStatus {
15 WIN_AC_LINE_STATUS_OFFLINE = 0, 14 WIN_AC_LINE_STATUS_OFFLINE = 0,
16 WIN_AC_LINE_STATUS_ONLINE = 1, 15 WIN_AC_LINE_STATUS_ONLINE = 1,
17 WIN_AC_LINE_STATUS_UNKNOWN = 255, 16 WIN_AC_LINE_STATUS_UNKNOWN = 255,
18 }; 17 };
19 18
20 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS. 19 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS.
21 DEVICE_BATTERY_EXPORT mojom::BatteryStatus ComputeWebBatteryStatus( 20 mojom::BatteryStatus ComputeWebBatteryStatus(
timvolodine 2017/05/02 18:19:04 is the DEVICE_BATTERY_EXPORT not needed anymore?
leonhsl(Using Gerrit) 2017/05/03 03:07:02 Yeah, it's only for component build and now batter
22 const SYSTEM_POWER_STATUS& win_status); 21 const SYSTEM_POWER_STATUS& win_status);
23 22
24 } // namespace device 23 } // namespace device
25 24
26 #endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_ 25 #endif // SERVICES_DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698