diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 21:28:52 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 21:28:52 +0000 |
commit | 043e4899a81297f3b88db2984a6eacb87ffa5be6 (patch) | |
tree | 6d5ae79b749ef3199eb300721340ece9dc22fa6f /content/browser/system_message_window_win.h | |
parent | 5db03dd4f3d795d037bfbb50bb9bc52de3b89f17 (diff) | |
download | chromium_src-043e4899a81297f3b88db2984a6eacb87ffa5be6.zip chromium_src-043e4899a81297f3b88db2984a6eacb87ffa5be6.tar.gz chromium_src-043e4899a81297f3b88db2984a6eacb87ffa5be6.tar.bz2 |
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
Diffstat (limited to 'content/browser/system_message_window_win.h')
-rw-r--r-- | content/browser/system_message_window_win.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <windows.h> #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<DeviceNotifications> device_notifications_; DISALLOW_COPY_AND_ASSIGN(SystemMessageWindowWin); }; |