DescriptionEnsure 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278559
Patch Set 1 #Patch Set 2 : Fixed code #
Total comments: 2
Patch Set 3 : Code review comments #
Total comments: 3
Patch Set 4 : Reverted changes to menu_controller and fixed screen_win.cc #Patch Set 5 : Convert screen_loc to pixels in menu_controller.cc #
Total comments: 2
Patch Set 6 : Code review comments #
Total comments: 2
Patch Set 7 : Code review comments #Messages
Total messages: 14 (0 generated)
|