diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 20:51:10 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 20:51:10 +0000 |
commit | d78f40f3543cd057d845625d1abce9cd79b0682c (patch) | |
tree | 3d5a0aec91ab97eb48afd2de6df7363522715640 /views/controls/textfield/native_textfield_win.cc | |
parent | 1c977ab1081a4891419e40d6e4b1615c6e2583fb (diff) | |
download | chromium_src-d78f40f3543cd057d845625d1abce9cd79b0682c.zip chromium_src-d78f40f3543cd057d845625d1abce9cd79b0682c.tar.gz chromium_src-d78f40f3543cd057d845625d1abce9cd79b0682c.tar.bz2 |
Uses POINT instead of CPoint to reduce the dependency in ATL.
Patch submitted by Thiago Farina:
http://codereview.chromium.org/188017
BUG= http://crbug.com/2185
TEST=None
Review URL: http://codereview.chromium.org/199009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/textfield/native_textfield_win.cc')
-rw-r--r-- | views/controls/textfield/native_textfield_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc index 1e06816..6bae442 100644 --- a/views/controls/textfield/native_textfield_win.cc +++ b/views/controls/textfield/native_textfield_win.cc @@ -272,8 +272,8 @@ void NativeTextfieldWin::OnChar(TCHAR ch, UINT repeat_count, UINT flags) { HandleKeystroke(GetCurrentMessage()->message, ch, repeat_count, flags); } -void NativeTextfieldWin::OnContextMenu(HWND window, const CPoint& point) { - CPoint p(point); +void NativeTextfieldWin::OnContextMenu(HWND window, const POINT& point) { + POINT p(point); if (point.x == -1 || point.y == -1) { GetCaretPos(&p); MapWindowPoints(HWND_DESKTOP, &p, 1); |