Chromium Code Reviews| Index: base/system_monitor/system_monitor.h |
| diff --git a/base/system_monitor/system_monitor.h b/base/system_monitor/system_monitor.h |
| index 6620d27b42d109a65ceb86aaefe730f5e75dd07f..919c807ba64309765e727b25e46aaed875d0e4f5 100644 |
| --- a/base/system_monitor/system_monitor.h |
| +++ b/base/system_monitor/system_monitor.h |
| @@ -134,13 +134,6 @@ class BASE_EXPORT SystemMonitor { |
| // be copied. Any significant addition to this class is blocked on |
| // refactoring to improve the state of affairs. See http://crbug.com/149059 |
| -#if defined(OS_WIN) |
| - // Windows-specific handling of a WM_POWERBROADCAST message. |
| - // Embedders of this API should hook their top-level window |
| - // message loop and forward WM_POWERBROADCAST through this call. |
| - void ProcessWmPowerBroadcastMessage(int event_id); |
| -#endif |
| - |
| // Cross-platform handling of a power event. |
| void ProcessPowerMessage(PowerEvent event_id); |
| @@ -153,6 +146,13 @@ class BASE_EXPORT SystemMonitor { |
| void PlatformDestroy(); |
| #endif |
| +#if defined(OS_WIN) |
| + // Represents a message-only window for power message handling on Windows. |
| + // Only allow SystemMonitor to create it. |
| + class PowerMessageWindow; |
|
vandebo (ex-Chrome)
2013/02/23 01:14:53
style guide says this should go on line 144.
Hongbo Min
2013/02/23 03:42:01
Done.
|
| + scoped_ptr<PowerMessageWindow> power_message_window_; |
|
vandebo (ex-Chrome)
2013/02/23 01:14:53
style guide says this should go on line 185.
Hongbo Min
2013/02/23 03:42:01
Done.
|
| +#endif |
| + |
| // Platform-specific method to check whether the system is currently |
| // running on battery power. Returns true if running on batteries, |
| // false otherwise. |