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

Issue 1832023002: Fix infobar arrow tip position on MD. (Closed)

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

Description

Fix infobar arrow tip position on MD. On non-MD, this moves the tip down by 1 px, which basically looks better for HTTPS and not worse for other cases. On MD, this moves the tip down by 2 px, which makes it look perfect on non-EV HTTPS, kinda crappy on EV, and OK everywhere else. More importantly, it makes the tip vertical position not depend on a horizontal layout constant, which kinda made sense in non-MD (based on how the constants were designed there) and makes no sense at all for MD. This is important as I'm about to change this constant's value in a way that would otherwise look awful on MD. Arguably, it might make sense to position the tip differently for all the different icons, but hardcoding a bunch of different offsets like that makes my hackles rise. BUG=597921 TEST=On a brand new profile (so you get the "default browser" infobar on startup), set startup page to a non-EV HTTPS site. Start Chrome in Material Design mode. The infobar arrow should not intersect the lock icon. Committed: https://crrev.com/a614eb3fe5fba327416aac6ee990bda0f4a6654f Cr-Commit-Position: refs/heads/master@{#383374}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -5 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Peter Kasting
4 years, 9 months ago (2016-03-25 08:40:53 UTC) #2
sky
LGTM
4 years, 9 months ago (2016-03-25 15:37:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832023002/1
4 years, 9 months ago (2016-03-25 21:47:59 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-25 21:58:42 UTC) #8
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 22:00:10 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a614eb3fe5fba327416aac6ee990bda0f4a6654f
Cr-Commit-Position: refs/heads/master@{#383374}

Powered by Google App Engine
This is Rietveld 408576698