Ensure that pointer lock works correctly in Windows 7+ with HiDPI scale factors above 1
commit05f7888960f6e3393b2ad5f5835028404737c584
authorananta <ananta@chromium.org>
Thu, 5 Mar 2015 01:01:46 +0000 (4 17:01 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 01:03:00 +0000 (5 01:03 +0000)
tree99f935ce596e071138392ab4aede846f6b2f21a7
parentbbf8ee84c5969a74fd53d6c1b5ed5bd4fc831a37
Ensure that pointer lock works correctly in Windows 7+ with HiDPI scale factors above 1

We were not scaling the mouse coordinate by the scale factor before invoking the ClientToScreen API. With this
change the blink::WebMouseEvent.globalX and globalY values have to be converted back to DIP after convering them to screen.

This should fix the mouse locking issue.

BUG=411634
TEST= The main test case in bug 411634

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

Cr-Commit-Position: refs/heads/master@{#319181}
content/browser/renderer_host/input/web_input_event_builders_win.cc