summaryrefslogtreecommitdiffstats
path: root/chrome/views/widget_win.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-13 20:48:36 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-13 20:48:36 +0000
commit0a30765779382fa4cd46d47dab4db0ad607e7569 (patch)
treeae593d32fc4052115c428382f451bdd110bcf460 /chrome/views/widget_win.h
parenta211dddeb82823e7bf1baa24eb9583f95db7de4e (diff)
downloadchromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.zip
chromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.tar.gz
chromium_src-0a30765779382fa4cd46d47dab4db0ad607e7569.tar.bz2
A new shot at the old system monitor changelist.
Review URL: http://codereview.chromium.org/12883 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/widget_win.h')
-rw-r--r--chrome/views/widget_win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/widget_win.h b/chrome/views/widget_win.h
index 9e402e8..6b4d606 100644
--- a/chrome/views/widget_win.h
+++ b/chrome/views/widget_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/widget.h"
@@ -410,6 +411,9 @@ class WidgetWin : public Widget,
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;
}