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

Issue 10256008: Adds a class that makes it easy to subclass a HWND and filter messages sent to it. (Closed)

Created:
8 years, 8 months ago by Ben Goodger (Google)
Modified:
8 years, 8 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Adds a class that makes it easy to subclass a HWND and filter messages sent to it. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134383

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -4 lines) Patch
M build/all.gyp View 1 2 chunks +1 line, -1 line 0 comments Download
M ui/base/clipboard/clipboard_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A ui/base/win/hwnd_subclass.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A ui/base/win/hwnd_subclass.cc View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A ui/base/win/hwnd_subclass_unittest.cc View 1 1 chunk +101 lines, -0 lines 0 comments Download
M ui/gfx/blit.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/ui.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Ben Goodger (Google)
8 years, 8 months ago (2012-04-27 19:40:35 UTC) #1
Ben Goodger (Google)
I could be persuaded to put this in ui/base/win instead of in views. It's not ...
8 years, 8 months ago (2012-04-27 19:41:37 UTC) #2
Ben Goodger (Google)
On 2012/04/27 19:41:37, Ben Goodger (Google) wrote: > I could be persuaded to put this ...
8 years, 8 months ago (2012-04-27 19:51:51 UTC) #3
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10256008/diff/1/ui/views/widget/hwnd_subclass.cc File ui/views/widget/hwnd_subclass.cc (right): http://codereview.chromium.org/10256008/diff/1/ui/views/widget/hwnd_subclass.cc#newcode23 ui/views/widget/hwnd_subclass.cc:23: l_param) : 0; why return 0 instead of CallWindowProc? ...
8 years, 8 months ago (2012-04-27 20:20:25 UTC) #4
Ben Goodger (Google)
Updated. I had to do a bit of work to get ui_unittests to build on ...
8 years, 8 months ago (2012-04-27 20:57:20 UTC) #5
tfarina
http://codereview.chromium.org/10256008/diff/6004/ui/base/win/hwnd_subclass.cc File ui/base/win/hwnd_subclass.cc (right): http://codereview.chromium.org/10256008/diff/6004/ui/base/win/hwnd_subclass.cc#newcode11 ui/base/win/hwnd_subclass.cc:11: const char* kHWNDSubclassKey = "__UI_BASE_WIN_HWND_SUBCLASS_PROC__"; nit: const char kFoo[] ...
8 years, 8 months ago (2012-04-27 21:06:02 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/10256008/diff/6004/ui/base/win/hwnd_subclass.cc File ui/base/win/hwnd_subclass.cc (right): http://codereview.chromium.org/10256008/diff/6004/ui/base/win/hwnd_subclass.cc#newcode23 ui/base/win/hwnd_subclass.cc:23: l_param) : 0; so when the HWNDSubclass is ...
8 years, 8 months ago (2012-04-27 21:07:12 UTC) #7
Ben Goodger (Google)
Nope you're right, I added a call to DefWindowProc here. It does seem unfortunate that ...
8 years, 8 months ago (2012-04-27 21:39:37 UTC) #8
cpu_(ooo_6.6-7.5)
8 years, 8 months ago (2012-04-27 22:30:09 UTC) #9
still lgtm

Powered by Google App Engine
This is Rietveld 408576698