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

Issue 1830343003: When animating a content setting bubble smaller, hide the background later. (Closed)

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

Description

When animating a content setting bubble smaller, hide the background later. We were hiding when the label size reached 0. That winds up hiding the background when the icon has both the internal spacing and the trailing padding adjacent to it before the background ends. Instead, wait to hide the background until the internal spacing portion of that is collapsed, so it's just <leading padding><icon><trailing padding>. This isn't very noticeable when the internal spacing is 2 px. It will be more noticeable when I later increase the spacing (which is how I saw this). This allows moving label layout in IconLabelBubbleView() downward since we no longer care about sizing the label to 0 early. I think the code reads more clearly that way. BUG=none TEST=none Committed: https://crrev.com/24c8b5c843dd95d3dd0753855d2de19d9b2d92a0 Cr-Commit-Position: refs/heads/master@{#383922}

Patch Set 1 #

Patch Set 2 : Resync #

Total comments: 1

Patch Set 3 : Restore function #

Patch Set 4 : Attempt to fix test #

Total comments: 2

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -17 lines) Patch
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 2 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 12 (6 generated)
Peter Kasting
https://codereview.chromium.org/1830343003/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/1830343003/diff/20001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode163 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:163: std::max(0, width() - label_x - bubble_trailing_padding); Despite using |image_x| ...
4 years, 9 months ago (2016-03-25 10:13:05 UTC) #3
varkha
lgtm. https://codereview.chromium.org/1830343003/diff/60001/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/1830343003/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode128 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:128: !is_extension_icon_ || ui::MaterialDesignController::IsModeMaterial(); nit: Do you still need ...
4 years, 8 months ago (2016-03-30 03:43:20 UTC) #4
Peter Kasting
https://codereview.chromium.org/1830343003/diff/60001/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/1830343003/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode128 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:128: !is_extension_icon_ || ui::MaterialDesignController::IsModeMaterial(); On 2016/03/30 03:43:19, varkha wrote: > ...
4 years, 8 months ago (2016-03-30 03:57:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830343003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830343003/80001
4 years, 8 months ago (2016-03-30 06:50:01 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-30 07:37:08 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 07:39:06 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/24c8b5c843dd95d3dd0753855d2de19d9b2d92a0
Cr-Commit-Position: refs/heads/master@{#383922}

Powered by Google App Engine
This is Rietveld 408576698