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

Issue 171129: Replace usage of MFC wrapper classes with their win32 base types to reduce de... (Closed)

Created:
11 years, 3 months ago by James Hawkins
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Replace usage of MFC wrapper classes with their win32 base types to reduce dependency on ATL/MFC. BUG=5027 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25298

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
M app/win_util.cc View 1 2 3 4 6 chunks +15 lines, -12 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
James Hawkins
11 years, 3 months ago (2009-09-02 23:30:30 UTC) #1
Peter Kasting
OK, but can be even better by using some of our non-ATL scoping objects. http://codereview.chromium.org/171129/diff/4003/3002 ...
11 years, 3 months ago (2009-09-02 23:42:15 UTC) #2
James Hawkins
http://codereview.chromium.org/171129/diff/4003/3002 File app/win_util.cc (right): http://codereview.chromium.org/171129/diff/4003/3002#newcode13 Line 13: #include <algorithm> On 2009/09/02 23:42:16, Peter Kasting wrote: ...
11 years, 3 months ago (2009-09-03 00:10:44 UTC) #3
Peter Kasting
LGTM http://codereview.chromium.org/171129/diff/3003/8001 File app/win_util.cc (right): http://codereview.chromium.org/171129/diff/3003/8001#newcode742 Line 742: ReleaseDC(window_handle, window_hdc); BTW, we don't have any ...
11 years, 3 months ago (2009-09-03 04:24:48 UTC) #4
James Hawkins
11 years, 3 months ago (2009-09-03 04:51:31 UTC) #5
On 2009/09/03 04:24:48, Peter Kasting wrote:
> LGTM
> 
> http://codereview.chromium.org/171129/diff/3003/8001
> File app/win_util.cc (right):
> 
> http://codereview.chromium.org/171129/diff/3003/8001#newcode742
> Line 742: ReleaseDC(window_handle, window_hdc);
> BTW, we don't have any problems due to destruction order, right?  Windows
won't
> care that window_hdc gets released before mem_hdc or something?  I don't think
> so, just being paranoid.

It's safe because mem_hdc is a separate copy and releasing window_hdc won't
destroy the window DC anyway.

Powered by Google App Engine
This is Rietveld 408576698