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

Issue 2533053002: Handle view resize for ripple (Closed)

Created:
4 years ago by mohsen
Modified:
4 years ago
Reviewers:
James Cook, sky, bruthig
CC:
asanka, bruthig+ink_drop_chromium.org, chromium-reviews, dbeam+watch-downloads_chromium.org, dcheng, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle view resize for ripple This change updates ink drop ripples (especially, flood fill ripple) to handle host view's size change to update their layer size. The main change is that the flood fill ripple gets insets instead of bounds to make it relative to the host's bounds. If a ripple is in progress, it will snap to its final size immediately. Ink drop highlight is still using a workaround to handle resize and will be fixed in a follow-up CL. BUG=666175 TEST=manual Committed: https://crrev.com/7dfd81cc1c15c4f3f9954c4180e24356395aed4c Cr-Commit-Position: refs/heads/master@{#435002}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Rebased #

Patch Set 3 : Addressed review comments #

Total comments: 2

Patch Set 4 : const -> constexpr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -46 lines) Patch
M ash/common/shelf/app_list_button.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/common/shelf/overflow_button.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ash/common/system/tray/tray_background_view.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple.h View 1 2 4 chunks +18 lines, -3 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple.cc View 1 2 2 chunks +42 lines, -5 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc View 1 2 3 chunks +13 lines, -8 lines 0 comments Download
M ui/views/animation/ink_drop_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_ripple.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_ripple.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_ripple_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (22 generated)
mohsen
Please take a look...
4 years ago (2016-11-28 19:56:36 UTC) #4
bruthig
https://codereview.chromium.org/2533053002/diff/1/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2533053002/diff/1/ash/common/system/tray/tray_background_view.cc#newcode417 ash/common/system/tray/tray_background_view.cc:417: // https://crbug.com/666175). Consider spawning a new bug to track ...
4 years ago (2016-11-28 22:13:46 UTC) #9
mohsen
https://codereview.chromium.org/2533053002/diff/1/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2533053002/diff/1/ash/common/system/tray/tray_background_view.cc#newcode417 ash/common/system/tray/tray_background_view.cc:417: // https://crbug.com/666175). On 2016/11/28 at 22:13:45, bruthig wrote: > ...
4 years ago (2016-11-29 00:07:12 UTC) #14
bruthig
lgtm https://codereview.chromium.org/2533053002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2533053002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode171 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:171: gfx::Rect CalculateInkDropBounds(const gfx::Size& size) { On 2016/11/29 00:07:12, ...
4 years ago (2016-11-29 01:37:49 UTC) #15
mohsen
+jamescook@ for changes in /ash/. +sky@ for changes in /chrome/browser/ui/views/ and /ui/views/controls/.
4 years ago (2016-11-29 01:44:10 UTC) #17
James Cook
ash lgtm
4 years ago (2016-11-29 01:56:57 UTC) #18
sky
https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode171 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:171: const gfx::Insets kInkDropInsets(1, 0); Doesn't this result in a ...
4 years ago (2016-11-29 05:12:34 UTC) #21
mohsen
https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode171 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:171: const gfx::Insets kInkDropInsets(1, 0); On 2016/11/29 at 05:12:34, sky ...
4 years ago (2016-11-29 05:52:27 UTC) #24
sky
On 2016/11/29 05:52:27, mohsen wrote: > https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc > File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): > > https://codereview.chromium.org/2533053002/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode171 > ...
4 years ago (2016-11-29 14:18:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2533053002/60001
4 years ago (2016-11-29 16:03:31 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-29 16:08:34 UTC) #32
commit-bot: I haz the power
4 years ago (2016-11-29 16:11:59 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7dfd81cc1c15c4f3f9954c4180e24356395aed4c
Cr-Commit-Position: refs/heads/master@{#435002}

Powered by Google App Engine
This is Rietveld 408576698