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

Issue 2431493002: MD Buttons: Don't add layers for hidden -> hidden transitions. (Closed)

Created:
4 years, 2 months ago by tapted
Modified:
4 years, 2 months ago
Reviewers:
sky, bruthig
CC:
chromium-reviews, tfarina, bruthig+ink_drop_chromium.org, dcheng, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Buttons: Don't add layers for hidden -> hidden transitions. InkDropHostView::VisibilityChanged() is invoked when never-transitioned (or even never-shown) views are set hidden. This can happen with calls to View::SetVisibility(false), Widget::SetVisible(false) or Widget::Close*(). These Views may never be shown, so don't add a layer to animate ink drops in these cases. BUG=619798 Committed: https://crrev.com/2cb97f14a013d26b5139d2144537d591181a7f4e Cr-Commit-Position: refs/heads/master@{#426345}

Patch Set 1 #

Patch Set 2 : Add a test #

Total comments: 4

Patch Set 3 : Additional test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -5 lines) Patch
M ui/views/animation/ink_drop_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_impl_unittest.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_host.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_host.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 6 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
tapted
HI Ben, please take a look
4 years, 2 months ago (2016-10-18 03:25:26 UTC) #11
bruthig
A couple of requests in regards to the tests, otherwise looks good. https://codereview.chromium.org/2431493002/diff/20001/ui/views/controls/button/custom_button_unittest.cc File ui/views/controls/button/custom_button_unittest.cc ...
4 years, 2 months ago (2016-10-18 14:31:27 UTC) #12
tapted
https://codereview.chromium.org/2431493002/diff/20001/ui/views/controls/button/custom_button_unittest.cc File ui/views/controls/button/custom_button_unittest.cc (right): https://codereview.chromium.org/2431493002/diff/20001/ui/views/controls/button/custom_button_unittest.cc#newcode77 ui/views/controls/button/custom_button_unittest.cc:77: void AddInkDropLayer(ui::Layer* ink_drop_layer) override { On 2016/10/18 14:31:26, bruthig ...
4 years, 2 months ago (2016-10-19 02:59:32 UTC) #18
bruthig
lgtm
4 years, 2 months ago (2016-10-19 13:48:50 UTC) #21
tapted
+sky for OWNERS in ui/views/controls/button/custom_button_unittest.cc
4 years, 2 months ago (2016-10-19 23:10:47 UTC) #23
sky
LGTM
4 years, 2 months ago (2016-10-19 23:45:15 UTC) #24
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/2431493002/40001
4 years, 2 months ago (2016-10-19 23:47:43 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-20 00:10:55 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:13:35 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2cb97f14a013d26b5139d2144537d591181a7f4e
Cr-Commit-Position: refs/heads/master@{#426345}

Powered by Google App Engine
This is Rietveld 408576698