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

Unified Diff: base/power_monitor/power_monitor_device_source.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/port.h ('k') | base/power_monitor/power_monitor_device_source_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/power_monitor/power_monitor_device_source.h
diff --git a/base/power_monitor/power_monitor_device_source.h b/base/power_monitor/power_monitor_device_source.h
index 29f17c2a7d96b95903f43d8be78da5554068bd1b..977bd267e511c43cf92906e2b51f38c51392af6d 100644
--- a/base/power_monitor/power_monitor_device_source.h
+++ b/base/power_monitor/power_monitor_device_source.h
@@ -12,15 +12,7 @@
#include "base/power_monitor/power_monitor_source.h"
#include "base/power_monitor/power_observer.h"
-#if defined(OS_WIN)
-#include <windows.h>
-
-// Windows HiRes timers drain the battery faster so we need to know the battery
-// status. This isn't true for other platforms.
-#define ENABLE_BATTERY_MONITORING 1
-#else
#undef ENABLE_BATTERY_MONITORING
-#endif // !OS_WIN
#if defined(ENABLE_BATTERY_MONITORING)
#include "base/timer/timer.h"
@@ -62,25 +54,6 @@ class BASE_EXPORT PowerMonitorDeviceSource : public PowerMonitorSource {
#endif
private:
-#if defined(OS_WIN)
- // Represents a message-only window for power message handling on Windows.
- // Only allow PowerMonitor to create it.
- class PowerMessageWindow {
- public:
- PowerMessageWindow();
- ~PowerMessageWindow();
-
- private:
- static LRESULT CALLBACK WndProcThunk(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam);
- // Instance of the module containing the window procedure.
- HMODULE instance_;
- // A hidden message-only window.
- HWND message_hwnd_;
- };
-#endif // OS_WIN
#if defined(OS_MACOSX)
void PlatformInit();
@@ -105,10 +78,6 @@ class BASE_EXPORT PowerMonitorDeviceSource : public PowerMonitorSource {
base::OneShotTimer<PowerMonitorDeviceSource> delayed_battery_check_;
#endif
-#if defined(OS_WIN)
- PowerMessageWindow power_message_window_;
-#endif
-
DISALLOW_COPY_AND_ASSIGN(PowerMonitorDeviceSource);
};
« no previous file with comments | « base/port.h ('k') | base/power_monitor/power_monitor_device_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698