| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/system_message_window_win.h" | 5 #include "content/browser/system_message_window_win.h" |
| 6 | 6 |
| 7 #include <dbt.h> | 7 #include <dbt.h> |
| 8 #include <stddef.h> |
| 8 | 9 |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 10 #include "base/system_monitor/system_monitor.h" | 12 #include "base/system_monitor/system_monitor.h" |
| 11 #include "base/win/wrapped_window_proc.h" | 13 #include "base/win/wrapped_window_proc.h" |
| 12 #include "media/audio/win/core_audio_util_win.h" | 14 #include "media/audio/win/core_audio_util_win.h" |
| 13 | 15 |
| 14 namespace content { | 16 namespace content { |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| 17 const wchar_t kWindowClassName[] = L"Chrome_SystemMessageWindow"; | 19 const wchar_t kWindowClassName[] = L"Chrome_SystemMessageWindow"; |
| 18 | 20 |
| 19 // A static map from a device category guid to base::SystemMonitor::DeviceType. | 21 // A static map from a device category guid to base::SystemMonitor::DeviceType. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 case WM_DEVICECHANGE: | 155 case WM_DEVICECHANGE: |
| 154 return OnDeviceChange(static_cast<UINT>(wparam), lparam); | 156 return OnDeviceChange(static_cast<UINT>(wparam), lparam); |
| 155 default: | 157 default: |
| 156 break; | 158 break; |
| 157 } | 159 } |
| 158 | 160 |
| 159 return ::DefWindowProc(hwnd, message, wparam, lparam); | 161 return ::DefWindowProc(hwnd, message, wparam, lparam); |
| 160 } | 162 } |
| 161 | 163 |
| 162 } // namespace content | 164 } // namespace content |
| OLD | NEW |