diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:07:32 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:07:32 +0000 |
commit | 322f7f7005061fee5e3b691e6aee318ea93a7eb8 (patch) | |
tree | 4d743cbbbee965d8b087171b9ee315f2ffc93865 /chrome/views | |
parent | a618550847f7c09eea7bb27e43bb226f330e5525 (diff) | |
download | chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.zip chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.gz chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.bz2 |
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
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; } |