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

Side by Side Diff: content/browser/battery_status/battery_status_manager_win.h

Issue 447853002: Battery Status API: implementation for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/battery_status/battery_status_manager_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
5 #ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
6 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
7
8 #include <windows.h>
9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebBatteryStatus.h"
11
12 namespace content {
13
14 enum WinACLineStatus {
15 WIN_AC_LINE_STATUS_OFFLINE = 0,
16 WIN_AC_LINE_STATUS_ONLINE = 1,
17 WIN_AC_LINE_STATUS_UNKNOWN = 255,
18 };
19
20 // Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS.
21 CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus(
22 const SYSTEM_POWER_STATUS& win_status);
23
24 } // namespace content
25
26 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/battery_status/battery_status_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698