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/message_loop/message_loop.h" | |
5 #include "base/power_monitor/power_monitor.h" | 6 #include "base/power_monitor/power_monitor.h" |
6 #include "base/power_monitor/power_monitor_device_source.h" | 7 #include "base/power_monitor/power_monitor_device_source.h" |
Lei Zhang
2016/07/08 19:21:43
This probably should be first?
fdoray
2016/07/08 19:32:21
Done.
| |
7 #include "base/power_monitor/power_monitor_source.h" | 8 #include "base/power_monitor/power_monitor_source.h" |
8 #include "base/win/wrapped_window_proc.h" | 9 #include "base/win/wrapped_window_proc.h" |
9 | 10 |
10 namespace base { | 11 namespace base { |
11 | 12 |
12 void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) { | 13 void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) { |
13 PowerMonitorSource::ProcessPowerEvent(event); | 14 PowerMonitorSource::ProcessPowerEvent(event); |
14 } | 15 } |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 switch (message) { | 102 switch (message) { |
102 case WM_POWERBROADCAST: | 103 case WM_POWERBROADCAST: |
103 ProcessWmPowerBroadcastMessage(wparam); | 104 ProcessWmPowerBroadcastMessage(wparam); |
104 return TRUE; | 105 return TRUE; |
105 default: | 106 default: |
106 return ::DefWindowProc(hwnd, message, wparam, lparam); | 107 return ::DefWindowProc(hwnd, message, wparam, lparam); |
107 } | 108 } |
108 } | 109 } |
109 | 110 |
110 } // namespace base | 111 } // namespace base |
OLD | NEW |