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

Issue 1897073002: Add MD Ink Drop Layers to InkDropHost only when a ripple/hover is active. (Closed)

Created:
4 years, 8 months ago by bruthig
Modified:
4 years, 7 months ago
Reviewers:
varkha, sky
CC:
chromium-reviews, tfarina, bruthig+ink_drop_chromium.org, dcheng, yiyix
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MD Ink Drop to host only when a ripple/hover is active. In order to paint the material design ink drop behind button icons the icon View and the button View have to paint to their own Layers. There is no need to incur the additional expense of these Layers unless the ink drop ripple or hover is actually active on the View. BUG=604415 TEST=InkDropHoverTest.* TEST=InkDropAnimationControllerImplTest.* TEST=InkDropAnimationControllerFactoryTest.VerifyInkDropLayersRemovedAfterDestructionWhenHoverIsActive Committed: https://crrev.com/741be72a4d24789a876d87d0d94e9e2e1cdcd674 Cr-Commit-Position: refs/heads/master@{#390696}

Patch Set 1 #

Patch Set 2 : Updated OWNER's file and fixed diff delta. #

Patch Set 3 : Merge with 1896953003 #

Patch Set 4 : Merge with master. #

Patch Set 5 : Merge with changes to https://codereview.chromium.org/1896953003/ #

Patch Set 6 : Merge with 1913243002. #

Patch Set 7 : Merge with master #

Patch Set 8 : Added some more tests. #

Total comments: 17

Patch Set 9 : Merge with master. #

Patch Set 10 : Addressed varkha@'s comments. #

Patch Set 11 : Removed TODOs. #

Patch Set 12 : Fixed InkDropHoverTests to use proper expectation comparisons. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -41 lines) Patch
M ui/views/animation/ink_drop_animation_controller_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +19 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +41 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_hover.h View 1 2 3 4 5 6 7 4 chunks +14 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_hover.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -3 lines 0 comments Download
A ui/views/animation/ink_drop_hover_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_hover_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +104 lines, -20 lines 0 comments Download
M ui/views/animation/test/ink_drop_animation_test_api.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/animation/test/ink_drop_animation_test_api.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_animation_observer.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A ui/views/animation/test/test_ink_drop_hover_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +50 lines, -0 lines 0 comments Download
A ui/views/animation/test/test_ink_drop_hover_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
bruthig
varkha@, can you PTAL?
4 years, 8 months ago (2016-04-25 15:44:56 UTC) #4
bruthig
4 years, 8 months ago (2016-04-26 17:32:10 UTC) #5
varkha
https://codereview.chromium.org/1897073002/diff/140001/ui/views/animation/ink_drop_animation_controller_impl.cc File ui/views/animation/ink_drop_animation_controller_impl.cc (right): https://codereview.chromium.org/1897073002/diff/140001/ui/views/animation/ink_drop_animation_controller_impl.cc#newcode66 ui/views/animation/ink_drop_animation_controller_impl.cc:66: DestroyInkDropAnimation(); Don't you need to call DestroyInkDropHover() here as ...
4 years, 7 months ago (2016-04-28 20:35:01 UTC) #6
bruthig
Updated, varkha@, can you PTAL? https://codereview.chromium.org/1897073002/diff/140001/ui/views/animation/ink_drop_animation_controller_impl.cc File ui/views/animation/ink_drop_animation_controller_impl.cc (right): https://codereview.chromium.org/1897073002/diff/140001/ui/views/animation/ink_drop_animation_controller_impl.cc#newcode66 ui/views/animation/ink_drop_animation_controller_impl.cc:66: DestroyInkDropAnimation(); On 2016/04/28 20:35:00, ...
4 years, 7 months ago (2016-04-29 11:02:35 UTC) #7
varkha
On 2016/04/29 11:02:35, bruthig wrote: > Updated, varkha@, can you PTAL? > > https://codereview.chromium.org/1897073002/diff/140001/ui/views/animation/ink_drop_animation_controller_impl.cc > ...
4 years, 7 months ago (2016-04-29 14:45:58 UTC) #8
bruthig
sky@, can you take a look at: - ui/views/views.gyp
4 years, 7 months ago (2016-04-29 16:16:03 UTC) #10
sky
LGTM
4 years, 7 months ago (2016-04-29 17:19:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897073002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897073002/220001
4 years, 7 months ago (2016-04-29 17:56:24 UTC) #15
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-04-29 18:03:07 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:27:20 UTC) #18
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/741be72a4d24789a876d87d0d94e9e2e1cdcd674
Cr-Commit-Position: refs/heads/master@{#390696}

Powered by Google App Engine
This is Rietveld 408576698