Ensure that mouse events on Windows reposted by the menu_controller are converted to pixel.
On HiDPI windows these coordinates are in DIPs. While posting them via the PostMessage API we need to convert them back to pixel using the correct scale factor. This caused bookmarks to get incorrectly saved at times. Changes in this patch are as below:- 1. menu_controller.cc. Convert screen_loc to pixels before invoking Win32 API's as they expect values in pixels. 2. screen_win.cc. Fix the GetWindowAtScreenPoint function to convert the point to pixels before invoking the WindowFromPoint API. BUG=381605 R=sky Review URL: https://codereview.chromium.org/341763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278559 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment