Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Issue 225403022: Fixed positioning of tooltips in multi monitor setups. (Closed)

Created:
6 years, 8 months ago by Mateusz Szymański
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, ben+corewm_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixed positioning of tooltips in multi monitor setups. If window is positioned on right monitor in multimonitor setup tooltips for items to the left of Chromium window appear on left screen. This is because screen on which to display the tooltip is calculated from DIP coordinates. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272218

Patch Set 1 #

Total comments: 3

Patch Set 2 : Unhardcoded cursor size hence simplifying DIP to screen conversions #

Total comments: 4

Patch Set 3 : what could possibly go wrong #

Patch Set 4 : Fixed undefined behavior while calculating mask in certain edge cases. #

Patch Set 5 : Fixed tooltip positioning near the screen edges." #

Patch Set 6 : Squashed patchset. #

Total comments: 15

Patch Set 7 : Fixed tooltip positioning in HiDPI systems and with custom cursor arrows. #

Total comments: 7

Patch Set 8 : More review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -17 lines) Patch
A ui/views/corewm/cursor_height_provider_win.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A ui/views/corewm/cursor_height_provider_win.cc View 1 2 3 4 5 6 7 1 chunk +143 lines, -0 lines 0 comments Download
M ui/views/corewm/tooltip_win.cc View 1 2 3 4 5 6 3 chunks +13 lines, -17 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Mateusz Szymański
6 years, 8 months ago (2014-04-10 10:38:07 UTC) #1
sadrul
Looks reasonable, but Windows change --> sky@ https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc File ui/views/corewm/tooltip_win.cc (right): https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc#newcode93 ui/views/corewm/tooltip_win.cc:93: tooltip_bounds.AdjustToFit(display.work_area()); Does ...
6 years, 8 months ago (2014-04-10 16:18:36 UTC) #2
sky
https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc File ui/views/corewm/tooltip_win.cc (right): https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc#newcode99 ui/views/corewm/tooltip_win.cc:99: tooltip_bounds = gfx::win::DIPToScreenRect(tooltip_bounds); Notice the conversion here too. Seems ...
6 years, 8 months ago (2014-04-10 23:07:16 UTC) #3
sky
+ananta who did some tweaks here too. -sadrul
6 years, 8 months ago (2014-04-10 23:07:52 UTC) #4
Mateusz Szymański
https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc File ui/views/corewm/tooltip_win.cc (right): https://codereview.chromium.org/225403022/diff/1/ui/views/corewm/tooltip_win.cc#newcode93 ui/views/corewm/tooltip_win.cc:93: tooltip_bounds.AdjustToFit(display.work_area()); On 2014/04/10 16:18:36, sadrul wrote: > Does |tooltip_bounds| ...
6 years, 7 months ago (2014-04-30 14:14:40 UTC) #5
sky
Is there really no API we can use to get the height? +cpu https://codereview.chromium.org/225403022/diff/20001/ui/views/corewm/cursor_height_provider_win.h File ...
6 years, 7 months ago (2014-04-30 17:22:14 UTC) #6
Mateusz Szymański
I am as surprised as sky there's no pre-existing API for that, at least none ...
6 years, 7 months ago (2014-05-05 07:34:45 UTC) #7
cpu_(ooo_6.6-7.5)
sorry I am in training today. If ananta can answer the question or else plese ...
6 years, 7 months ago (2014-05-06 19:54:43 UTC) #8
ananta
On 2014/05/06 19:54:43, cpu wrote: > sorry I am in training today. If ananta can ...
6 years, 7 months ago (2014-05-06 23:51:24 UTC) #9
ananta
On 2014/05/06 23:51:24, ananta wrote: > On 2014/05/06 19:54:43, cpu wrote: > > sorry I ...
6 years, 7 months ago (2014-05-07 00:48:13 UTC) #10
Mateusz Szymański
Ping? I'd love to know if this looks to you like a solution that's acceptable ...
6 years, 7 months ago (2014-05-12 09:52:44 UTC) #11
ananta
On 2014/05/12 09:52:44, Mateusz Szymański wrote: > Ping? > I'd love to know if this ...
6 years, 7 months ago (2014-05-14 19:57:10 UTC) #12
cpu_(ooo_6.6-7.5)
lgtm
6 years, 7 months ago (2014-05-15 19:40:23 UTC) #13
Mateusz Szymański
The CQ bit was checked by mateuszs@opera.com
6 years, 7 months ago (2014-05-16 07:41:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mateuszs@opera.com/225403022/100001
6 years, 7 months ago (2014-05-16 07:41:40 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 08:12:51 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 08:15:35 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/142349)
6 years, 7 months ago (2014-05-16 08:15:36 UTC) #18
Mateusz Szymański
The CQ bit was checked by mateuszs@opera.com
6 years, 7 months ago (2014-05-16 08:59:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mateuszs@opera.com/225403022/120001
6 years, 7 months ago (2014-05-16 09:00:16 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 10:57:13 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 11:00:05 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68105)
6 years, 7 months ago (2014-05-16 11:00:05 UTC) #23
Mateusz Szymański
Can you please LGTM again if it looks good? CommitQueue disregarded previous approval.
6 years, 7 months ago (2014-05-16 11:31:25 UTC) #24
sky
https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc#newcode15 ui/views/corewm/cursor_height_provider_win.cc:15: typedef scoped_ptr<uint32> PixelData; uint32 is deprecated. Use uint32_t (same ...
6 years, 7 months ago (2014-05-16 17:13:22 UTC) #25
Mateusz Szymański
https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc#newcode18 ui/views/corewm/cursor_height_provider_win.cc:18: const uint32 bits_per_uint32 = 32; On 2014/05/16 17:13:22, sky ...
6 years, 7 months ago (2014-05-19 07:43:12 UTC) #26
Mateusz Szymański
https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/120001/ui/views/corewm/cursor_height_provider_win.cc#newcode104 ui/views/corewm/cursor_height_provider_win.cc:104: if (data == nullptr) On 2014/05/16 17:13:22, sky wrote: ...
6 years, 7 months ago (2014-05-19 10:38:30 UTC) #27
sky
https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc#newcode28 ui/views/corewm/cursor_height_provider_win.cc:28: static HeightStorage* g_cached_heights = NULL; g_cached_heights -> cached_heights (g_ ...
6 years, 7 months ago (2014-05-19 16:12:45 UTC) #28
Mateusz Szymański
https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc#newcode112 ui/views/corewm/cursor_height_provider_win.cc:112: i--; On 2014/05/19 16:12:46, sky wrote: > Might you ...
6 years, 7 months ago (2014-05-20 09:49:52 UTC) #29
sky
https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc#newcode112 ui/views/corewm/cursor_height_provider_win.cc:112: i--; On 2014/05/20 09:49:52, Mateusz Szymański wrote: > On ...
6 years, 7 months ago (2014-05-20 17:19:23 UTC) #30
Mateusz Szymański
https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc File ui/views/corewm/cursor_height_provider_win.cc (right): https://codereview.chromium.org/225403022/diff/140001/ui/views/corewm/cursor_height_provider_win.cc#newcode112 ui/views/corewm/cursor_height_provider_win.cc:112: i--; On 2014/05/20 17:19:23, sky wrote: > Might that ...
6 years, 7 months ago (2014-05-21 08:32:22 UTC) #31
sky
Good point. LGTM
6 years, 7 months ago (2014-05-21 16:04:03 UTC) #32
Mateusz Szymański
The CQ bit was checked by mateuszs@opera.com
6 years, 7 months ago (2014-05-22 07:30:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mateuszs@opera.com/225403022/160001
6 years, 7 months ago (2014-05-22 07:32:47 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 13:34:40 UTC) #35
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 17:32:53 UTC) #36
Message was sent while issue was closed.
Change committed as 272218

Powered by Google App Engine
This is Rietveld 408576698