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

Issue 195035: Use MAKEPOINTS instead of GET_X/Y_LPARAM to reduce a dependency on ATL.... (Closed)

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

Description

Use gfx::Point instead of GET_X/Y_LPARAM to reduce a dependency on ATL. BUG=5027 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25788

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -20 lines) Patch
M base/gfx/point.h View 2 3 chunks +6 lines, -1 line 0 comments Download
M base/gfx/point.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/views/keyword_editor_view.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M views/controls/tree/tree_view.cc View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M views/widget/aero_tooltip_manager.cc View 1 2 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
James Hawkins
11 years, 3 months ago (2009-09-09 02:35:57 UTC) #1
Peter Kasting
GET_X_LPARAM is defined in windowsx.h, not atlapp.h, from what I read on MSDN. Can we ...
11 years, 3 months ago (2009-09-09 17:51:40 UTC) #2
James Hawkins
On 2009/09/09 17:51:40, Peter Kasting wrote: > GET_X_LPARAM is defined in windowsx.h, not atlapp.h, from ...
11 years, 3 months ago (2009-09-09 19:11:57 UTC) #3
Peter Kasting
On Wed, Sep 9, 2009 at 12:11 PM, <jhawkins@chromium.org> wrote: > windowsx.h pollutes the namespace. ...
11 years, 3 months ago (2009-09-09 19:15:07 UTC) #4
James Hawkins
11 years, 3 months ago (2009-09-09 20:14:18 UTC) #5
Peter Kasting
LGTM, this approach seems cleaner. http://codereview.chromium.org/195035/diff/3004/2008 File base/gfx/point.h (right): http://codereview.chromium.org/195035/diff/3004/2008#newcode29 Line 29: explicit Point(DWORD point); ...
11 years, 3 months ago (2009-09-09 20:18:18 UTC) #6
James Hawkins
11 years, 3 months ago (2009-09-09 20:26:21 UTC) #7
http://codereview.chromium.org/195035/diff/3004/2008
File base/gfx/point.h (right):

http://codereview.chromium.org/195035/diff/3004/2008#newcode29
Line 29: explicit Point(DWORD point);
On 2009/09/09 20:18:18, Peter Kasting wrote:
> Nit: I'd add a comment about where this DWORD should come from (it's not
> immediately obvious how a DWORD is a point).

Done.

http://codereview.chromium.org/195035/diff/3004/2005
File views/controls/tree/tree_view.cc (right):

http://codereview.chromium.org/195035/diff/3004/2005#newcode730
Line 730: hit_info.pt = point.ToPOINT();
On 2009/09/09 20:18:18, Peter Kasting wrote:
> Nit: I would just do "hit_info.pt = gfx::Point(l_param).ToPOINT();"

Done.

Powered by Google App Engine
This is Rietveld 408576698