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

Issue 1763713004: Adjusts content bubble animation with respect to icon size (Closed)

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

Description

Adjusts content bubble animation with respect to icon size This CL corrects several issues with the icon bubble animation: 1. The bubble is not clipping its children, so the image draws outside the bubble bounds. This is MD-specific. 2. The image is being centered at the bubble center when the size is too low, instead of always being positioned based on the leading edge of the bubble, so it doesn't "slide in" correctly shifting during the initial portion of the animation. 3. The animation "closes" down to zero width (MD) or smaller than necessary width (non-MD) and then snaps the image back into place; it should animate down to become just large enough to show the image. 4. Removes the clamp in non-MD size that prevents animation from starting at zero. 5. Avoids clipping icon at the end of the animation (MD) by hiding the border even before the animation ends. 6. Reduces padding at the end of the MD version of the text label. 7. Corrects RTL layout by showing trailing edge of the icon first. BUG=591411 Committed: https://crrev.com/a2a4fab1693d6985dda4de9e91825fd667f07598 Cr-Commit-Position: refs/heads/master@{#380729}

Patch Set 1 : Adjusts content bubble animation with respect to icon size #

Patch Set 2 : Adjusts content bubble animation with respect to icon size (code comment) #

Total comments: 25

Patch Set 3 : Adjusts content bubble animation with respect to icon size (review comments) #

Total comments: 22

Patch Set 4 : Adjusts content bubble animation with respect to icon size (constant speed) #

Total comments: 8

Patch Set 5 : Adjusts content bubble animation with respect to icon size (fix for a regression in growth stage) #

Total comments: 2

Patch Set 6 : Adjusts content bubble animation with respect to icon size (unit test) #

Patch Set 7 : Adjusts content bubble animation with respect to icon size (not changing label visibility) #

Total comments: 6

Patch Set 8 : Adjusts content bubble animation with respect to icon size (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -51 lines) Patch
M chrome/browser/ui/layout_constants.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 5 6 8 chunks +33 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 2 3 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 5 6 7 4 chunks +79 lines, -30 lines 0 comments Download
A chrome/browser/ui/views/location_bar/icon_label_bubble_view_unittest.cc View 1 2 3 4 5 6 7 1 chunk +217 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (15 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/1763713004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/20001
4 years, 9 months ago (2016-03-04 00:31:51 UTC) #3
varkha
pkasting@, can you please take a first look? This would benefit from a bit more ...
4 years, 9 months ago (2016-03-04 00:35:08 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 01:21:27 UTC) #7
varkha
pkasting@, ping?
4 years, 9 months ago (2016-03-07 19:38:09 UTC) #8
Peter Kasting
https://codereview.chromium.org/1763713004/diff/40001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): https://codereview.chromium.org/1763713004/diff/40001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc#newcode127 chrome/browser/ui/views/location_bar/content_setting_image_view.cc:127: // animation (slide out, show, then slide in) is ...
4 years, 9 months ago (2016-03-07 20:24:27 UTC) #9
varkha
I was thinking about stopping it being not elegant, thanks for the nudge! https://codereview.chromium.org/1763713004/diff/40001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File ...
4 years, 9 months ago (2016-03-08 18:01:04 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763713004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/60001
4 years, 9 months ago (2016-03-08 18:01:34 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 18:51:07 UTC) #14
varkha
https://codereview.chromium.org/1763713004/diff/40001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): https://codereview.chromium.org/1763713004/diff/40001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc#newcode156 chrome/browser/ui/views/location_bar/content_setting_image_view.cc:156: SchedulePaint(); On 2016/03/08 18:01:03, varkha wrote: > On 2016/03/07 ...
4 years, 9 months ago (2016-03-08 21:56:03 UTC) #15
Peter Kasting
https://codereview.chromium.org/1763713004/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): https://codereview.chromium.org/1763713004/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc#newcode32 chrome/browser/ui/views/location_bar/content_setting_image_view.cc:32: const int ContentSettingImageView::kOpenTimeMS = 15000; You don't want to ...
4 years, 9 months ago (2016-03-08 22:07:06 UTC) #16
varkha
pkasting@, I think I have addressed your comments, can you PTAL? https://codereview.chromium.org/1763713004/diff/60001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): ...
4 years, 9 months ago (2016-03-10 22:25:57 UTC) #17
Peter Kasting
https://codereview.chromium.org/1763713004/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/1763713004/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode136 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:136: ? GetBubbleOuterPadding(icon_has_enough_padding) On 2016/03/10 22:25:56, varkha wrote: > On ...
4 years, 9 months ago (2016-03-11 01:14:42 UTC) #18
varkha
Thanks for that catch! Was focusing at the shrinking part too much. https://codereview.chromium.org/1763713004/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 ...
4 years, 9 months ago (2016-03-11 03:08:40 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/1763713004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/100001
4 years, 9 months ago (2016-03-11 03:09:20 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/116208)
4 years, 9 months ago (2016-03-11 03:18:49 UTC) #23
Peter Kasting
I'm sorry this review is going so many rounds! Getting this right is complicated :P ...
4 years, 9 months ago (2016-03-11 07:15:08 UTC) #24
varkha
Thanks so much, this looks a lot simpler. I have also added a unit test ...
4 years, 9 months ago (2016-03-11 10:16:20 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763713004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/140001
4 years, 9 months ago (2016-03-11 10:16:44 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/158487) win_chromium_x64_rel_ng on ...
4 years, 9 months ago (2016-03-11 11:02:41 UTC) #29
Peter Kasting
LGTM https://codereview.chromium.org/1763713004/diff/140001/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/1763713004/diff/140001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode151 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:151: // edge before slowing or stopping. Nit: After ...
4 years, 9 months ago (2016-03-11 12:05:24 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763713004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/160001
4 years, 9 months ago (2016-03-11 19:31:50 UTC) #32
varkha
Thanks for the review - it actually felt like you did most of the lifting ...
4 years, 9 months ago (2016-03-11 20:04:46 UTC) #33
varkha
Thanks for the review - it actually felt like you did most of the lifting ...
4 years, 9 months ago (2016-03-11 20:04:48 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-11 20:56:06 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763713004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763713004/160001
4 years, 9 months ago (2016-03-11 21:05:28 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 9 months ago (2016-03-11 21:12:33 UTC) #40
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 21:13:28 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a2a4fab1693d6985dda4de9e91825fd667f07598
Cr-Commit-Position: refs/heads/master@{#380729}

Powered by Google App Engine
This is Rietveld 408576698