From 322f7f7005061fee5e3b691e6aee318ea93a7eb8 Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Fri, 14 Nov 2008 19:07:32 +0000 Subject: Change to integrate SystemMonitor changes into chrome. This enables the dynamic detection of battery status changes so that we can turn on/off the hi-res timer. Review URL: http://codereview.chromium.org/10264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5489 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/container_win.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/views/container_win.h') 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 #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; } -- cgit v1.1