Point for WM_NCHITTEST should be in screen coordinates
commit62830984da1fe2910cf84cd3c1cfc5403816666e
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 23 Nov 2013 01:59:38 +0000 (23 01:59 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 23 Nov 2013 01:59:38 +0000 (23 01:59 +0000)
treee46a8147727fba312371144b56e928f979e1ec91
parenta9fb9e3cefc2e3f6f94ced2514718fcad9705098
Point for WM_NCHITTEST should be in screen coordinates

In HWNDMessageHandler::OnMouseRange() function, mouse events synthesized
in response to touch should be ignored if they are in the client area of
the window. The hit testing to decide if a point is in the client area
needs the point in screen coordinates, but, for most of the mouse events
the point is in window coordinates. So, the point should be converted to
screen coordinates if it is not.

BUG=312708

Review URL: https://codereview.chromium.org/83973002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236921 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/win/hwnd_message_handler.cc