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

Issue 2064323005: Change IconLabelBubbleView layout to specify padding beside the separator. (Closed)

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

Description

Change IconLabelBubbleView layout to specify padding beside the separator. Specifying the total extra padding as before was confusing, because the value inherently depended on the external spacing after the view. Going this route means that no matter how the spacing after the view changes, we won't need to change the padding constant in sync. This changes the net padding on either side of the separator from 9 DIP to 8 DIP, which matches the mocks. (Note that until the omnibox text position is tweaked, in another CL to come, it may not appear to be 8 DIP away.) BUG=616191 TEST=none Committed: https://crrev.com/21db7774b3bae9eec33c7e645672e9aa73d13c4d Cr-Commit-Position: refs/heads/master@{#400165}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comment #

Patch Set 3 : Remove dead constant #

Patch Set 4 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -24 lines) Patch
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 5 chunks +33 lines, -24 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (6 generated)
Peter Kasting
I think the reason the old value looked right to you was that the omnibox ...
4 years, 6 months ago (2016-06-15 21:47:05 UTC) #2
Evan Stade
lgtm https://codereview.chromium.org/2064323005/diff/1/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/2064323005/diff/1/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode29 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:29: // lay out, so the best we can ...
4 years, 6 months ago (2016-06-15 23:12:59 UTC) #3
Peter Kasting
https://codereview.chromium.org/2064323005/diff/1/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/2064323005/diff/1/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode29 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:29: // lay out, so the best we can do ...
4 years, 6 months ago (2016-06-16 05:12:39 UTC) #5
Evan Stade
I look forward to the bright shiny future when we have 10x pixel density devices
4 years, 6 months ago (2016-06-16 15:58:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064323005/60001
4 years, 6 months ago (2016-06-16 16:10:55 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-16 16:16:57 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 16:16:59 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 16:18:34 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/21db7774b3bae9eec33c7e645672e9aa73d13c4d
Cr-Commit-Position: refs/heads/master@{#400165}

Powered by Google App Engine
This is Rietveld 408576698