| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/power_monitor/power_monitor_device_source.h" |
| 6 |
| 7 #include "base/message_loop/message_loop.h" |
| 5 #include "base/power_monitor/power_monitor.h" | 8 #include "base/power_monitor/power_monitor.h" |
| 6 #include "base/power_monitor/power_monitor_device_source.h" | |
| 7 #include "base/power_monitor/power_monitor_source.h" | 9 #include "base/power_monitor/power_monitor_source.h" |
| 8 #include "base/win/wrapped_window_proc.h" | 10 #include "base/win/wrapped_window_proc.h" |
| 9 | 11 |
| 10 namespace base { | 12 namespace base { |
| 11 | 13 |
| 12 void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) { | 14 void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) { |
| 13 PowerMonitorSource::ProcessPowerEvent(event); | 15 PowerMonitorSource::ProcessPowerEvent(event); |
| 14 } | 16 } |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 switch (message) { | 103 switch (message) { |
| 102 case WM_POWERBROADCAST: | 104 case WM_POWERBROADCAST: |
| 103 ProcessWmPowerBroadcastMessage(wparam); | 105 ProcessWmPowerBroadcastMessage(wparam); |
| 104 return TRUE; | 106 return TRUE; |
| 105 default: | 107 default: |
| 106 return ::DefWindowProc(hwnd, message, wparam, lparam); | 108 return ::DefWindowProc(hwnd, message, wparam, lparam); |
| 107 } | 109 } |
| 108 } | 110 } |
| 109 | 111 |
| 110 } // namespace base | 112 } // namespace base |
| OLD | NEW |