Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 8523021: Send WM_DEVICECHANGE message through SystemMonitor (Closed)

Created:
9 years, 1 month ago by scottmg
Modified:
9 years, 1 month ago
CC:
chromium-reviews, dhollowa, tfarina, Paweł Hajdan Jr., brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Send WM_DEVICECHANGE message through SystemMonitor WM_DEVICECHANGE is sent when there's been a change to devices or the computer; specifically when a USB device is connected or disconnected. This is intended for use in support of Gamepads for more performant polling and connect/disconnect testing. Currently only on Windows, though seems reasonable to add for other platforms in the future. BUG=79050 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109960 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110014

Patch Set 1 #

Total comments: 18

Patch Set 2 : fixes per review #

Patch Set 3 : move hookup to RWHVW #

Patch Set 4 : add new window to handle system-level messages #

Total comments: 1

Patch Set 5 : remove unnecessary define #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -16 lines) Patch
M base/system_monitor/system_monitor.h View 1 3 chunks +20 lines, -3 lines 0 comments Download
M base/system_monitor/system_monitor.cc View 1 2 chunks +29 lines, -8 lines 0 comments Download
M base/system_monitor/system_monitor_unittest.cc View 1 2 chunks +46 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
A content/browser/system_message_window_win.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/system_message_window_win.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M content/common/hi_res_timer_manager_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
scottmg
9 years, 1 month ago (2011-11-11 00:13:28 UTC) #1
sky
http://codereview.chromium.org/8523021/diff/1/base/system_monitor/system_monitor.h File base/system_monitor/system_monitor.h (right): http://codereview.chromium.org/8523021/diff/1/base/system_monitor/system_monitor.h#newcode96 base/system_monitor/system_monitor.h:96: virtual void OnDeviceChange() {} OnDevicesChanged? http://codereview.chromium.org/8523021/diff/1/base/system_monitor/system_monitor.h#newcode97 base/system_monitor/system_monitor.h:97: protected: newline ...
9 years, 1 month ago (2011-11-11 02:32:59 UTC) #2
sky
One point worth mentioning. The reason I suggest DevicesChanged instead of DeviceChange is that the ...
9 years, 1 month ago (2011-11-11 02:34:57 UTC) #3
Ben Goodger (Google)
I don't think NWW is the right place for this. If this is intended to ...
9 years, 1 month ago (2011-11-11 04:30:31 UTC) #4
scottmg
http://codereview.chromium.org/8523021/diff/1/base/system_monitor/system_monitor.h File base/system_monitor/system_monitor.h (right): http://codereview.chromium.org/8523021/diff/1/base/system_monitor/system_monitor.h#newcode96 base/system_monitor/system_monitor.h:96: virtual void OnDeviceChange() {} On 2011/11/11 02:32:59, sky wrote: ...
9 years, 1 month ago (2011-11-11 05:06:08 UTC) #5
scottmg
On 2011/11/11 04:30:31, Ben Goodger (Google) wrote: > I don't think NWW is the right ...
9 years, 1 month ago (2011-11-11 05:13:18 UTC) #6
Ben Goodger (Google)
Can we put it in the msg window that Chrome has instead? I think that'd ...
9 years, 1 month ago (2011-11-11 16:53:01 UTC) #7
scottmg
Sorry, I'm new(-ish) here. Do you mean all the way down to ProcessSingleton::WndProc? Or is ...
9 years, 1 month ago (2011-11-11 17:06:48 UTC) #8
Ben Goodger (Google)
I think that may in fact be the window we're thinking of. -Ben On Fri, ...
9 years, 1 month ago (2011-11-11 17:15:17 UTC) #9
scottmg
On 2011/11/11 17:15:17, Ben Goodger (Google) wrote: > I think that may in fact be ...
9 years, 1 month ago (2011-11-11 17:57:25 UTC) #10
Ben Goodger (Google)
Seems like we should make a new message window then. Seems also like it should ...
9 years, 1 month ago (2011-11-11 18:06:11 UTC) #11
willchan no longer on Chromium
base/ and net/ LGTM On 2011/11/11 18:06:11, Ben Goodger (Google) wrote: > Seems like we ...
9 years, 1 month ago (2011-11-11 19:05:27 UTC) #12
scottmg
On 2011/11/11 18:06:11, Ben Goodger (Google) wrote: > Seems like we should make a new ...
9 years, 1 month ago (2011-11-11 19:36:15 UTC) #13
Ben Goodger (Google)
+jam@
9 years, 1 month ago (2011-11-11 20:04:07 UTC) #14
jam
On 2011/11/11 19:36:15, scottmg wrote: > On 2011/11/11 18:06:11, Ben Goodger (Google) wrote: > > ...
9 years, 1 month ago (2011-11-11 20:32:53 UTC) #15
scottmg
+thestig, +jschuh for nearby changes Hmm, I was wrong about ProcessSingleton. The reason it's not ...
9 years, 1 month ago (2011-11-11 21:46:54 UTC) #16
Ben Goodger (Google)
Probably better to add a new HWND inside content, since it sounds like your code ...
9 years, 1 month ago (2011-11-11 21:51:48 UTC) #17
scottmg
jam@ or sky@, does this seem OK to you for the content/ changes? thanks
9 years, 1 month ago (2011-11-14 17:45:00 UTC) #18
jam
content lgtm http://codereview.chromium.org/8523021/diff/10012/content/browser/system_message_window_win.h File content/browser/system_message_window_win.h (right): http://codereview.chromium.org/8523021/diff/10012/content/browser/system_message_window_win.h#newcode11 content/browser/system_message_window_win.h:11: #if defined(OS_WIN) better to include this file ...
9 years, 1 month ago (2011-11-14 18:48:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8523021/17001
9 years, 1 month ago (2011-11-14 20:47:14 UTC) #20
commit-bot: I haz the power
Change committed as 109960
9 years, 1 month ago (2011-11-14 22:27:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8523021/17001
9 years, 1 month ago (2011-11-15 00:42:40 UTC) #22
commit-bot: I haz the power
9 years, 1 month ago (2011-11-15 01:59:51 UTC) #23
Change committed as 110014

Powered by Google App Engine
This is Rietveld 408576698