From 043e4899a81297f3b88db2984a6eacb87ffa5be6 Mon Sep 17 00:00:00 2001 From: "tommi@chromium.org" Date: Tue, 31 Jul 2012 21:28:52 +0000 Subject: Add support for device removal/arrival detection with device type. For now this allows us to detect when audio and video capture devices are connected/disconnected. TEST=Try connecting and disconnecting USB audio/video devices. You should see notifications in the log about those operations being detected. BUG=137799 Review URL: https://chromiumcodereview.appspot.com/10824086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149279 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/system_message_window_win.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/browser/system_message_window_win.h') diff --git a/content/browser/system_message_window_win.h b/content/browser/system_message_window_win.h index fefb4ce..d4120c9 100644 --- a/content/browser/system_message_window_win.h +++ b/content/browser/system_message_window_win.h @@ -8,6 +8,7 @@ #include #include "base/basictypes.h" +#include "base/memory/scoped_ptr.h" #include "content/common/content_export.h" class CONTENT_EXPORT SystemMessageWindowWin { @@ -16,7 +17,7 @@ class CONTENT_EXPORT SystemMessageWindowWin { virtual ~SystemMessageWindowWin(); - virtual LRESULT OnDeviceChange(UINT event_type, DWORD data); + virtual LRESULT OnDeviceChange(UINT event_type, LPARAM data); private: void Init(); @@ -37,6 +38,8 @@ class CONTENT_EXPORT SystemMessageWindowWin { HMODULE instance_; HWND window_; + class DeviceNotifications; + scoped_ptr device_notifications_; DISALLOW_COPY_AND_ASSIGN(SystemMessageWindowWin); }; -- cgit v1.1