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

Issue 1802073002: Makes vertical alignment of location bar bubbles same (Closed)

Created:
4 years, 9 months ago by varkha
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tfarina, gcasto+watchlist_chromium.org, noyau+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, mkwst+watchlist-passwords_chromium.org, tdanderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes vertical alignment of location bar bubbles same All LocationBarBubbleDelegateView descendants should use the same offset. BookmarkBubbleView offset is updated to match the rest of the bubbles. This CL changes the visible offset for the following bubbles: BookmarkBubbleView (bookmark star - down by 3 pixels) SaveCardBubbleViews (save credit card - up by 5 pixels) TranslateBubbleView (Google translate suggest - up by 5 pixels) I plan to follow this up with a change to add a GetLayoutConstant and have all location bar bubbles use 7 with MD instead of 5 to better connect the bubble with the bottom edge of the activated ink drop. BUG=566115 TEST=Open zoom bubble by pressing [Ctrl-+] or [Ctrl--]. Note the vertical position of the bubble (ignoring the arrow). Open the same bubble by clicking the magnifying glass icon in location bar. Verify that the bubble itself appears at the same exact position - when shown with or without the arrow. Committed: https://crrev.com/e2d602b62dd9bf59125dbcee534f95a2f63cbe80 Cr-Commit-Position: refs/heads/master@{#382010}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Makes vertical alignment of location bar bubbles same (comments) #

Total comments: 8

Patch Set 3 : Makes vertical alignment of location bar bubbles same (better clickability) #

Patch Set 4 : Makes vertical alignment of location bar bubbles same (updated tests) #

Total comments: 6

Patch Set 5 : Makes vertical alignment of location bar bubbles same (nits and test simplification) #

Total comments: 4

Patch Set 6 : Makes vertical alignment of location bar bubbles same (code comments) #

Total comments: 6

Patch Set 7 : Makes vertical alignment of location bar bubbles same (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -29 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 5 6 4 chunks +18 lines, -8 lines 0 comments Download
M ui/views/bubble/bubble_border_unittest.cc View 1 2 3 4 5 3 chunks +49 lines, -13 lines 0 comments Download

Messages

Total messages: 55 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/1
4 years, 9 months ago (2016-03-14 21:50:54 UTC) #3
varkha
pkasting@, can you please take a look? I think we should follow this up with ...
4 years, 9 months ago (2016-03-14 21:55:13 UTC) #5
Evan Stade
https://codereview.chromium.org/1802073002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode279 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:279: set_anchor_view_insets(gfx::Insets(-1, 0, -1, 0)); nit: gfx::Insets(-1, 0) can you ...
4 years, 9 months ago (2016-03-14 21:57:53 UTC) #7
varkha
https://codereview.chromium.org/1802073002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode279 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:279: set_anchor_view_insets(gfx::Insets(-1, 0, -1, 0)); On 2016/03/14 21:57:53, Evan Stade ...
4 years, 9 months ago (2016-03-14 22:13:06 UTC) #8
Peter Kasting
https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode90 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:90: bookmark_bubble_->set_anchor_view_insets(gfx::Insets(-1, 0)); Do you still need to do this ...
4 years, 9 months ago (2016-03-14 22:35:51 UTC) #12
varkha
https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode90 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:90: bookmark_bubble_->set_anchor_view_insets(gfx::Insets(-1, 0)); On 2016/03/14 22:35:51, Peter Kasting wrote: > ...
4 years, 9 months ago (2016-03-15 00:11:42 UTC) #13
Evan Stade
https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode90 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:90: bookmark_bubble_->set_anchor_view_insets(gfx::Insets(-1, 0)); On 2016/03/15 00:11:42, varkha wrote: > On ...
4 years, 9 months ago (2016-03-15 00:13:28 UTC) #14
Peter Kasting
https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode90 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:90: bookmark_bubble_->set_anchor_view_insets(gfx::Insets(-1, 0)); On 2016/03/15 00:13:27, Evan Stade wrote: > ...
4 years, 9 months ago (2016-03-15 00:34:15 UTC) #15
varkha
pkasting@, estade@, have a question about event dispatch in bubbles. https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/1802073002/diff/60001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode90 ...
4 years, 9 months ago (2016-03-16 03:45:30 UTC) #16
varkha
I am thinking maybe changing BubbleBorder::GetBounds [1] to account for the transparent arrow. Instead of ...
4 years, 9 months ago (2016-03-16 05:25:33 UTC) #17
Peter Kasting
I think that sounds more promising than trying to have a larger bubble with a ...
4 years, 9 months ago (2016-03-16 06:37:56 UTC) #18
varkha
PTAL. Manipulating the bubble border bounds and insets allows transparent and none to be visually ...
4 years, 9 months ago (2016-03-16 16:57:03 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/80001
4 years, 9 months ago (2016-03-16 16:57:26 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/197402)
4 years, 9 months ago (2016-03-16 17:32:35 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/100001
4 years, 9 months ago (2016-03-16 18:16:38 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 20:40:46 UTC) #27
Peter Kasting
LGTM with a suggestion to simplify the new test code. https://codereview.chromium.org/1802073002/diff/100001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/1802073002/diff/100001/ui/views/bubble/bubble_border.cc#newcode171 ...
4 years, 9 months ago (2016-03-17 06:16:15 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/120001
4 years, 9 months ago (2016-03-18 01:19:50 UTC) #30
varkha
msw@, can you please take a look for OWNERS in ui/views/bubble/? https://codereview.chromium.org/1802073002/diff/100001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): ...
4 years, 9 months ago (2016-03-18 01:21:14 UTC) #32
Evan Stade
https://codereview.chromium.org/1802073002/diff/120001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/1802073002/diff/120001/ui/views/bubble/bubble_border.cc#newcode168 ui/views/bubble/bubble_border.cc:168: images_->arrow_interior_thickness + kStroke - images_->arrow_thickness; took me a good ...
4 years, 9 months ago (2016-03-18 01:49:22 UTC) #33
msw
I have a similar question/confusion as Evan... https://codereview.chromium.org/1802073002/diff/120001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/1802073002/diff/120001/ui/views/bubble/bubble_border.cc#newcode172 ui/views/bubble/bubble_border.cc:172: arrow_shift += ...
4 years, 9 months ago (2016-03-18 02:02:52 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/190912)
4 years, 9 months ago (2016-03-18 02:41:53 UTC) #36
varkha
I have added code comments, hope they make it a bit less confusing but I ...
4 years, 9 months ago (2016-03-18 04:14:41 UTC) #37
Evan Stade
lgtm https://codereview.chromium.org/1802073002/diff/140001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/1802073002/diff/140001/ui/views/bubble/bubble_border.cc#newcode169 ui/views/bubble/bubble_border.cc:169: // and the shadow thickness can be calculated ...
4 years, 9 months ago (2016-03-18 04:53:32 UTC) #38
varkha
Thanks! https://codereview.chromium.org/1802073002/diff/140001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/1802073002/diff/140001/ui/views/bubble/bubble_border.cc#newcode169 ui/views/bubble/bubble_border.cc:169: // and the shadow thickness can be calculated ...
4 years, 9 months ago (2016-03-18 05:23:08 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/160001
4 years, 9 months ago (2016-03-18 05:26:47 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 06:44:09 UTC) #44
msw
Okay, lgtm. But I idly wonder if anchor inset adjustments + PAINT_NONE would achieve the ...
4 years, 9 months ago (2016-03-18 17:12:24 UTC) #45
varkha
On 2016/03/18 17:12:24, msw wrote: > Okay, lgtm. But I idly wonder if anchor inset ...
4 years, 9 months ago (2016-03-18 17:37:18 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802073002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802073002/160001
4 years, 9 months ago (2016-03-18 17:37:53 UTC) #49
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 9 months ago (2016-03-18 17:50:59 UTC) #51
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/e2d602b62dd9bf59125dbcee534f95a2f63cbe80 Cr-Commit-Position: refs/heads/master@{#382010}
4 years, 9 months ago (2016-03-18 17:52:40 UTC) #53
Evan Stade
On 2016/03/18 17:52:40, commit-bot: I haz the power wrote: > Patchset 7 (id:??) landed as ...
4 years, 9 months ago (2016-03-18 19:05:53 UTC) #54
varkha
4 years, 9 months ago (2016-03-18 19:49:12 UTC) #55
Message was sent while issue was closed.
On 2016/03/18 19:05:53, Evan Stade wrote:
> On 2016/03/18 17:52:40, commit-bot: I haz the power wrote:
> > Patchset 7 (id:??) landed as
> > https://crrev.com/e2d602b62dd9bf59125dbcee534f95a2f63cbe80
> > Cr-Commit-Position: refs/heads/master@{#382010}
> 
> afterthought: did you check how this affects SystemTrayBubble, the only other
> place PAINT_TRANSPARENT seems to be used?

Yes, I've tried it. I can show volume bubble (pressing  F9 / F10 opens the
volume bubble without an arrow) and it shows up in the correct spot (same as
before this change). I've also tried it with different shelf alignment values
and made sure that the shift is indeed capable of changing what I see on scree
so this was a legitimate concern. Thanks for reminding to check that!

Powered by Google App Engine
This is Rietveld 408576698