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

Unified Diff: device/battery/battery_status_manager_win.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/battery/battery_status_manager_mac.cc ('k') | device/battery/battery_status_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_manager_win.h
diff --git a/content/browser/battery_status/battery_status_manager_win.h b/device/battery/battery_status_manager_win.h
similarity index 51%
rename from content/browser/battery_status/battery_status_manager_win.h
rename to device/battery/battery_status_manager_win.h
index 5169e4bf8c8e66193711562010d74e019d0c092f..f0a8f9efa033141fdcfff0a67303206c55ffcaf6 100644
--- a/content/browser/battery_status/battery_status_manager_win.h
+++ b/device/battery/battery_status_manager_win.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
-#define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
+#ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
+#define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
#include <windows.h>
-#include "content/common/content_export.h"
-#include "third_party/WebKit/public/platform/WebBatteryStatus.h"
+#include "device/battery/battery_export.h"
+#include "device/battery/battery_status.mojom.h"
-namespace content {
+namespace device {
enum WinACLineStatus {
WIN_AC_LINE_STATUS_OFFLINE = 0,
@@ -18,9 +18,9 @@ enum WinACLineStatus {
};
// Returns WebBatteryStatus corresponding to the given SYSTEM_POWER_STATUS.
-CONTENT_EXPORT blink::WebBatteryStatus ComputeWebBatteryStatus(
+DEVICE_BATTERY_EXPORT BatteryStatus ComputeWebBatteryStatus(
const SYSTEM_POWER_STATUS& win_status);
-} // namespace content
+} // namespace device
-#endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_WIN_H_
+#endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_WIN_H_
« no previous file with comments | « device/battery/battery_status_manager_mac.cc ('k') | device/battery/battery_status_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698