| 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 "chrome/browser/media_gallery/media_device_notifications_window_win.h" | 5 #include "chrome/browser/system_monitor/media_device_notifications_window_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <dbt.h> | 8 #include <dbt.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/system_monitor/system_monitor.h" | 14 #include "base/system_monitor/system_monitor.h" |
| 15 #include "base/win/wrapped_window_proc.h" | 15 #include "base/win/wrapped_window_proc.h" |
| 16 #include "chrome/browser/media_gallery/media_device_notifications_utils.h" | 16 #include "chrome/browser/system_monitor/media_device_notifications_utils.h" |
| 17 #include "chrome/browser/media_gallery/media_storage_util.h" | 17 #include "chrome/browser/system_monitor/media_storage_util.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 | 19 |
| 20 using base::SystemMonitor; | 20 using base::SystemMonitor; |
| 21 using content::BrowserThread; | 21 using content::BrowserThread; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const wchar_t WindowClassName[] = L"Chrome_MediaDeviceNotificationWindow"; | 25 const wchar_t WindowClassName[] = L"Chrome_MediaDeviceNotificationWindow"; |
| 26 | 26 |
| 27 LRESULT GetVolumeName(LPCWSTR drive, | 27 LRESULT GetVolumeName(LPCWSTR drive, |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 LPARAM lparam) { | 180 LPARAM lparam) { |
| 181 MediaDeviceNotificationsWindowWin* msg_wnd = | 181 MediaDeviceNotificationsWindowWin* msg_wnd = |
| 182 reinterpret_cast<MediaDeviceNotificationsWindowWin*>( | 182 reinterpret_cast<MediaDeviceNotificationsWindowWin*>( |
| 183 GetWindowLongPtr(hwnd, GWLP_USERDATA)); | 183 GetWindowLongPtr(hwnd, GWLP_USERDATA)); |
| 184 if (msg_wnd) | 184 if (msg_wnd) |
| 185 return msg_wnd->WndProc(hwnd, message, wparam, lparam); | 185 return msg_wnd->WndProc(hwnd, message, wparam, lparam); |
| 186 return ::DefWindowProc(hwnd, message, wparam, lparam); | 186 return ::DefWindowProc(hwnd, message, wparam, lparam); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace chrome | 189 } // namespace chrome |
| OLD | NEW |