diff options
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/container_win.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/container_win.h b/chrome/views/container_win.h index 84309b9..8a9d9a1 100644 --- a/chrome/views/container_win.h +++ b/chrome/views/container_win.h @@ -9,6 +9,7 @@ #include <atlcrack.h> #include "base/message_loop.h" +#include "base/system_monitor.h" #include "chrome/views/focus_manager.h" #include "chrome/views/layout_manager.h" #include "chrome/views/container.h" @@ -416,6 +417,9 @@ class ContainerWin : public Container, virtual LRESULT OnNotify(int w_param, NMHDR* l_param); virtual void OnPaint(HDC dc); virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data) { + base::SystemMonitor* monitor = base::SystemMonitor::Get(); + if (monitor) + monitor->ProcessWmPowerBroadcastMessage(power_event); SetMsgHandled(FALSE); return 0; } |