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

Issue 2499523003: Add ink drop masking to TrayBackgroundView (Closed)

Created:
4 years, 1 month ago by mohsen
Modified:
4 years, 1 month ago
CC:
bruthig+ink_drop_chromium.org, chromium-reviews, dcheng, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ink drop masking to TrayBackgroundView A virtual CreateInkDropMask() is added to InkDropHostView that subclasses can override and provide their choice of mask for the ink drop. TrayBackgroundView has implemented this to create a rounded rectangle mask. A few masks types are declared in ui/views/animation/ink_drop_mask.h file. BUG=612573 TEST=manually run TouchView Ash with --ash-md=experimental and try ripples on overview mode button. Committed: https://crrev.com/932af7361a3588b36a1f15aa76b6199a4a66f646 Cr-Commit-Position: refs/heads/master@{#431972}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed review comments #

Patch Set 3 : Rebased #

Patch Set 4 : Rebased #

Total comments: 6

Patch Set 5 : Addressed review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -13 lines) Patch
M ash/common/system/tray/tray_background_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 4 chunks +12 lines, -6 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.h View 1 4 chunks +8 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 3 4 6 chunks +17 lines, -1 line 2 comments Download
M ui/views/animation/ink_drop_impl.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_impl.cc View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A ui/views/animation/ink_drop_mask.h View 1 1 chunk +75 lines, -0 lines 0 comments Download
A ui/views/animation/ink_drop_mask.cc View 1 1 chunk +68 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_stub.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/ink_drop_stub.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/animation/test/test_ink_drop.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 53 (40 generated)
mohsen
Please take a look... (This patch depends on https://crrev.com/2499453002)
4 years, 1 month ago (2016-11-11 18:33:18 UTC) #7
bruthig
Left some comments. https://codereview.chromium.org/2499523003/diff/1/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2499523003/diff/1/ash/common/system/tray/tray_background_view.cc#newcode382 ash/common/system/tray/tray_background_view.cc:382: ink_drop_layer->SetBounds(local_bounds); Capturing offline discussion: Let's move ...
4 years, 1 month ago (2016-11-11 20:16:43 UTC) #8
mohsen
https://codereview.chromium.org/2499523003/diff/1/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2499523003/diff/1/ash/common/system/tray/tray_background_view.cc#newcode382 ash/common/system/tray/tray_background_view.cc:382: ink_drop_layer->SetBounds(local_bounds); On 2016/11/11 at 20:16:43, bruthig wrote: > Capturing ...
4 years, 1 month ago (2016-11-13 23:31:29 UTC) #23
bruthig
lgtm with nits. Feel free to add other OWNERs. https://codereview.chromium.org/2499523003/diff/60001/ui/views/animation/ink_drop.h File ui/views/animation/ink_drop.h (right): https://codereview.chromium.org/2499523003/diff/60001/ui/views/animation/ink_drop.h#newcode28 ui/views/animation/ink_drop.h:28: ...
4 years, 1 month ago (2016-11-14 19:09:38 UTC) #33
mohsen
+tdanderson@ for changes in /ash/common/system/tray/ +skuhne@ for changes in /ash/shelf/ +sadrul@ for changes in /ui/views/BUILD.gn ...
4 years, 1 month ago (2016-11-14 20:19:39 UTC) #40
tdanderson
ash/common/system LGTM
4 years, 1 month ago (2016-11-14 20:21:35 UTC) #41
bruthig
https://codereview.chromium.org/2499523003/diff/120001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2499523003/diff/120001/ui/views/animation/ink_drop_host_view.cc#newcode222 ui/views/animation/ink_drop_host_view.cc:222: ink_drop_->HostSizeChanged(size()); Should we be re-creating/applying the mask here too, ...
4 years, 1 month ago (2016-11-14 21:07:41 UTC) #42
bruthig
https://codereview.chromium.org/2499523003/diff/120001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2499523003/diff/120001/ui/views/animation/ink_drop_host_view.cc#newcode222 ui/views/animation/ink_drop_host_view.cc:222: ink_drop_->HostSizeChanged(size()); On 2016/11/14 21:07:41, bruthig wrote: > Should we ...
4 years, 1 month ago (2016-11-14 21:45:42 UTC) #45
sadrul
stamp lgtm
4 years, 1 month ago (2016-11-14 22:11:37 UTC) #46
Mr4D (OOO till 08-26)
shelf_view_unittest lgtm
4 years, 1 month ago (2016-11-14 23:21:26 UTC) #47
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/2499523003/120001
4 years, 1 month ago (2016-11-14 23:24:20 UTC) #50
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 1 month ago (2016-11-14 23:36:52 UTC) #51
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 23:43:43 UTC) #53
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/932af7361a3588b36a1f15aa76b6199a4a66f646
Cr-Commit-Position: refs/heads/master@{#431972}

Powered by Google App Engine
This is Rietveld 408576698