summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 00:46:26 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 00:46:26 +0000
commitf9d9fcec85543492808df80b6c422d6d3561eb44 (patch)
tree17e81388cef787f4569e9ecb48892d8f4254b501 /base
parent959d61dc9981e63a3ca3e9901a9faaf275afa28d (diff)
downloadchromium_src-f9d9fcec85543492808df80b6c422d6d3561eb44.zip
chromium_src-f9d9fcec85543492808df80b6c422d6d3561eb44.tar.gz
chromium_src-f9d9fcec85543492808df80b6c422d6d3561eb44.tar.bz2
Update comments and remove bogus DCHECK in windows-specific broadcasted power message status.
Review URL: http://codereview.chromium.org/16220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/system_monitor_win.cc17
1 files changed, 13 insertions, 4 deletions
diff --git a/base/system_monitor_win.cc b/base/system_monitor_win.cc
index 2a42e90..7e07d7e 100644
--- a/base/system_monitor_win.cc
+++ b/base/system_monitor_win.cc
@@ -9,17 +9,26 @@ namespace base {
void SystemMonitor::ProcessWmPowerBroadcastMessage(int event_id) {
PowerEvent power_event;
switch (event_id) {
- case PBT_APMPOWERSTATUSCHANGE:
+ case PBT_APMPOWERSTATUSCHANGE: // The power status changed.
power_event = POWER_STATE_EVENT;
break;
- case PBT_APMRESUMEAUTOMATIC:
+ case PBT_APMRESUMEAUTOMATIC: // Non-user initiated resume from suspend.
+ case PBT_APMRESUMESUSPEND: // User initiated resume from suspend.
power_event = RESUME_EVENT;
break;
- case PBT_APMSUSPEND:
+ case PBT_APMSUSPEND: // System has been suspended.
power_event = SUSPEND_EVENT;
break;
default:
- DCHECK(false);
+ return;
+
+ // Other Power Events:
+ // PBT_APMBATTERYLOW - removed in Vista.
+ // PBT_APMOEMEVENT - removed in Vista.
+ // PBT_APMQUERYSUSPEND - removed in Vista.
+ // PBT_APMQUERYSUSPENDFAILED - removed in Vista.
+ // PBT_APMRESUMECRITICAL - removed in Vista.
+ // PBT_POWERSETTINGCHANGE - user changed the power settings.
}
ProcessPowerMessage(power_event);
}