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

Issue 1829353002: Fix padding in location bar bubbles to match specs on bug. (Closed)

Created:
4 years, 9 months ago by Peter Kasting
Modified:
4 years, 8 months ago
Reviewers:
varkha, oshima, Evan Stade
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@hide_background_later
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix padding in location bar bubbles to match specs on bug. This autodetects the padding in the image inside the bubble and adjusts for it, so the EV, keyword, and content settings bubbles all appear to have the same padding despite having images with different transparent regions. (This allows eliminating a hack in the keyword bubble that tried to manually compensate.) Then the padding constants are changed to match the desired values on the bug. BUG=586423 TEST=Run Chrome in material design mode. Visit Paypal. Padding in EV bubble should match "proposed" image in comment 0 of bug. Committed: https://crrev.com/30e625e5cc4ed92c320148decc0598f2cc534aaf Cr-Commit-Position: refs/heads/master@{#386505}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add vector icon change from earlier Cl #

Total comments: 7

Patch Set 3 : Evan's solution for not caching VECTOR_ICON_NONE #

Patch Set 4 : Remove unnecessary bit #

Patch Set 5 : Rebase #

Total comments: 3

Patch Set 6 : Expanded comment #

Patch Set 7 : New dependence #

Total comments: 2

Messages

Total messages: 42 (9 generated)
Peter Kasting
(Can't submit tryjobs yet as this really depends on multiple different upstream CLs, not just ...
4 years, 9 months ago (2016-03-25 10:30:58 UTC) #2
Peter Kasting
Evan, here's a very long writeup from my debugging session tonight to investigate the VECTOR_ICON_NONE ...
4 years, 8 months ago (2016-03-29 07:27:50 UTC) #5
Evan Stade
On 2016/03/29 07:27:50, Peter Kasting wrote: > Evan, here's a very long writeup from my ...
4 years, 8 months ago (2016-03-29 16:34:12 UTC) #6
Peter Kasting
On 2016/03/29 16:34:12, Evan Stade wrote: > On 2016/03/29 07:27:50, Peter Kasting wrote: > > ...
4 years, 8 months ago (2016-03-30 03:39:57 UTC) #7
varkha
https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode245 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:245: (leading ? builtin_leading_padding_ : 0); Wouldn't that increase the ...
4 years, 8 months ago (2016-03-30 04:04:07 UTC) #8
Peter Kasting
https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode245 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:245: (leading ? builtin_leading_padding_ : 0); On 2016/03/30 04:04:07, varkha ...
4 years, 8 months ago (2016-03-30 04:10:55 UTC) #9
varkha
Not sure if this CL depends on something recent in the ToT that I don't ...
4 years, 8 months ago (2016-03-30 04:35:10 UTC) #10
Peter Kasting
On 2016/03/30 04:35:10, varkha wrote: > Not sure if this CL depends on something recent ...
4 years, 8 months ago (2016-03-30 04:44:57 UTC) #11
varkha
Aha!. I didn't realize this depended on https://codereview.chromium.org/1836483002/ so I "just" changed GetVisibleMargins into VisibleMargins ...
4 years, 8 months ago (2016-03-30 05:04:57 UTC) #12
Peter Kasting
On 2016/03/30 05:04:57, varkha wrote: > Aha!. I didn't realize this depended on > https://codereview.chromium.org/1836483002/ ...
4 years, 8 months ago (2016-03-30 05:16:58 UTC) #13
varkha
https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode245 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:245: (leading ? builtin_leading_padding_ : 0); On 2016/03/30 04:44:57, Peter ...
4 years, 8 months ago (2016-03-30 05:21:58 UTC) #14
Peter Kasting
https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/1829353002/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode245 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:245: (leading ? builtin_leading_padding_ : 0); On 2016/03/30 05:21:58, varkha ...
4 years, 8 months ago (2016-03-30 05:33:37 UTC) #15
Peter Kasting
https://codereview.chromium.org/1829353002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/1829353002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode259 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:259: // Leading and trailing padding are equal. On 2016/03/30 ...
4 years, 8 months ago (2016-03-30 05:55:02 UTC) #16
varkha
The change LG. Hope it is OK if I wait for the GetVisibleMargins change to ...
4 years, 8 months ago (2016-03-30 06:17:29 UTC) #17
Peter Kasting
On 2016/03/30 06:17:29, varkha wrote: > The change LG. Hope it is OK if I ...
4 years, 8 months ago (2016-03-30 06:50:38 UTC) #18
Evan Stade
https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc#newcode408 ui/gfx/paint_vector_icon.cc:408: return (id == VectorIconId::VECTOR_ICON_NONE) After thinking about this more, ...
4 years, 8 months ago (2016-03-30 21:44:13 UTC) #20
Peter Kasting
https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc#newcode408 ui/gfx/paint_vector_icon.cc:408: return (id == VectorIconId::VECTOR_ICON_NONE) On 2016/03/30 21:44:13, Evan Stade ...
4 years, 8 months ago (2016-03-30 21:53:23 UTC) #21
Evan Stade
On 2016/03/30 21:53:23, Peter Kasting wrote: > https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc > File ui/gfx/paint_vector_icon.cc (right): > > https://codereview.chromium.org/1829353002/diff/120001/ui/gfx/paint_vector_icon.cc#newcode408 ...
4 years, 8 months ago (2016-03-30 22:01:57 UTC) #22
Peter Kasting
On 2016/03/30 22:01:57, Evan Stade wrote: > On 2016/03/30 21:53:23, Peter Kasting wrote: > > ...
4 years, 8 months ago (2016-03-30 22:12:36 UTC) #23
Peter Kasting
(P.S. if you are indeed OK with this, and you don't think I should do ...
4 years, 8 months ago (2016-03-30 22:14:16 UTC) #24
Evan Stade
Yea, regarding the other change, I'm in the "hide errors (boo)" camp. LGTM
4 years, 8 months ago (2016-03-30 22:27:54 UTC) #25
Peter Kasting
varkha: All precursor patches have landed; you can resync, apply this, and build locally if ...
4 years, 8 months ago (2016-03-31 00:38:43 UTC) #26
varkha
Not sure if the 1 pixel difference seen in a screenshot that I've attached to ...
4 years, 8 months ago (2016-03-31 16:55:22 UTC) #27
varkha
Looking at different bubbles the apparent trailing padding as well as spacing seems to depend ...
4 years, 8 months ago (2016-03-31 17:21:17 UTC) #28
Peter Kasting
On 2016/03/31 17:21:17, varkha wrote: > Looking at different bubbles the apparent trailing padding as ...
4 years, 8 months ago (2016-03-31 21:03:00 UTC) #29
varkha
On 2016/03/31 21:03:00, Peter Kasting wrote: > On 2016/03/31 17:21:17, varkha wrote: > > Looking ...
4 years, 8 months ago (2016-03-31 21:12:41 UTC) #30
Peter Kasting
On 2016/03/31 21:12:41, varkha wrote: > On 2016/03/31 21:03:00, Peter Kasting wrote: > > On ...
4 years, 8 months ago (2016-03-31 21:15:05 UTC) #31
varkha
On 2016/03/31 21:15:05, Peter Kasting wrote: > On 2016/03/31 21:12:41, varkha wrote: > > On ...
4 years, 8 months ago (2016-03-31 21:43:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829353002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829353002/120001
4 years, 8 months ago (2016-04-11 19:23:09 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/48609)
4 years, 8 months ago (2016-04-11 20:18:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829353002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829353002/120001
4 years, 8 months ago (2016-04-11 20:57:10 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-11 22:57:46 UTC) #40
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:59:13 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/30e625e5cc4ed92c320148decc0598f2cc534aaf
Cr-Commit-Position: refs/heads/master@{#386505}

Powered by Google App Engine
This is Rietveld 408576698