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

Issue 2335513002: Adding ripple effect for clicks on MD slider (Closed)

Created:
4 years, 3 months ago by yiyix
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding ripple effect for clicks on MD slider The MD slider is currently hiding behind ash-md flag. When the flag is set to experimental, a highlight effect will be showing for clicking or touching on MD slider. TEST=MANUAL - test if the highlight shows when users click, click and drag or touch the md slider. BUG=631775 Committed: https://crrev.com/df1235e312d117abcc12d062de6d74d314080349 Cr-Commit-Position: refs/heads/master@{#422814}

Patch Set 1 #

Total comments: 6

Patch Set 2 : adding animation #

Total comments: 33

Patch Set 3 : address comments + hiding animation #

Patch Set 4 : imporve animation #

Total comments: 25

Patch Set 5 : improve animation in slider and address comments #

Total comments: 20

Patch Set 6 : nits #

Total comments: 16

Patch Set 7 : address comments #

Total comments: 13

Patch Set 8 : address comments #

Total comments: 10

Patch Set 9 : impl #

Patch Set 10 : add disallow_copy_and_assign to testslider #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -69 lines) Patch
M ui/views/controls/md_slider.h View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -1 line 0 comments Download
M ui/views/controls/md_slider.cc View 1 2 3 4 5 6 7 8 5 chunks +66 lines, -11 lines 0 comments Download
M ui/views/controls/non_md_slider.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/slider.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -4 lines 0 comments Download
M ui/views/controls/slider.cc View 1 2 3 4 5 6 7 8 9 chunks +61 lines, -53 lines 0 comments Download
M ui/views/test/test_slider.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (24 generated)
yiyix
4 years, 3 months ago (2016-09-12 15:19:51 UTC) #9
yiyix
@bruthig, could you please take a look? Thanks.
4 years, 3 months ago (2016-09-12 15:20:36 UTC) #11
bruthig
https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc#newcode19 ui/views/controls/md_slider.cc:19: const SkColor kRippleColor = SkColorSetARGB(0x4D, 0x42, 0x85, 0xF4); I'd ...
4 years, 3 months ago (2016-09-12 17:16:48 UTC) #12
yiyix
https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc#newcode19 ui/views/controls/md_slider.cc:19: const SkColor kRippleColor = SkColorSetARGB(0x4D, 0x42, 0x85, 0xF4); On ...
4 years, 3 months ago (2016-09-20 20:25:46 UTC) #13
yiyix
On 2016/09/20 20:25:46, yiyix wrote: > https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc > File ui/views/controls/md_slider.cc (right): > > https://codereview.chromium.org/2335513002/diff/20001/ui/views/controls/md_slider.cc#newcode19 > ...
4 years, 3 months ago (2016-09-20 20:26:36 UTC) #14
bruthig
https://codereview.chromium.org/2335513002/diff/60001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/60001/ui/views/controls/md_slider.cc#newcode34 ui/views/controls/md_slider.cc:34: // Duration of the animation. Be more specific here. ...
4 years, 3 months ago (2016-09-21 00:27:46 UTC) #16
yiyix
https://codereview.chromium.org/2335513002/diff/60001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/60001/ui/views/controls/md_slider.cc#newcode34 ui/views/controls/md_slider.cc:34: // Duration of the animation. On 2016/09/21 00:27:45, bruthig ...
4 years, 3 months ago (2016-09-21 15:20:53 UTC) #17
yiyix
@bruthig, thank you so much for suggesting me to use the hiding animation and show ...
4 years, 3 months ago (2016-09-21 20:50:37 UTC) #18
bruthig
It's looking pretty good overall. Just a few suggestions to polish it up a bit ...
4 years, 3 months ago (2016-09-22 21:05:25 UTC) #23
yiyix
@varkha and @sadrul, could you please take a look at this change? thank you https://codereview.chromium.org/2335513002/diff/100001/ui/views/controls/md_slider.cc ...
4 years, 3 months ago (2016-09-23 20:35:37 UTC) #26
yiyix
4 years, 3 months ago (2016-09-23 20:39:46 UTC) #28
tdanderson
A few nits, otherwise lgtm. I defer to Ben/Sadrul for a more detailed look though. ...
4 years, 3 months ago (2016-09-23 20:55:51 UTC) #30
yiyix
https://codereview.chromium.org/2335513002/diff/140001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/140001/ui/views/controls/md_slider.cc#newcode118 ui/views/controls/md_slider.cc:118: !highlight_animation_->IsShowing()) On 2016/09/23 20:55:50, tdanderson wrote: > nit: include ...
4 years, 3 months ago (2016-09-23 21:39:58 UTC) #31
yiyix
4 years, 3 months ago (2016-09-23 21:40:00 UTC) #32
bruthig
https://codereview.chromium.org/2335513002/diff/100001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/100001/ui/views/controls/md_slider.cc#newcode31 ui/views/controls/md_slider.cc:31: const float kThumbRadius = 6.0; On 2016/09/23 20:35:37, yiyix ...
4 years, 3 months ago (2016-09-23 22:24:39 UTC) #33
varkha
https://codereview.chromium.org/2335513002/diff/140001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/140001/ui/views/controls/md_slider.cc#newcode20 ui/views/controls/md_slider.cc:20: const SkColor kHighlightColor = SkColorSetARGB(0x4D, 0x42, 0x85, 0xF4); Can ...
4 years, 3 months ago (2016-09-23 22:30:25 UTC) #34
yiyix
Thank you all the detailed comments, again. @bruthig and varkha, Could you please take another ...
4 years, 3 months ago (2016-09-24 06:24:36 UTC) #35
varkha
lgtm with nits. https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc#newcode101 ui/views/controls/md_slider.cc:101: highlight_animation_->SetSlideDuration(kSlideHighlightChangeDurationMs); nit: Since it is never ...
4 years, 2 months ago (2016-09-24 13:59:18 UTC) #36
sadrul
https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc#newcode122 ui/views/controls/md_slider.cc:122: } Call back into Slider::AnimationEnded() as well?
4 years, 2 months ago (2016-09-26 19:54:16 UTC) #37
yiyix
@sadrul, bruthig: could you please take another look? https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/md_slider.cc#newcode101 ui/views/controls/md_slider.cc:101: highlight_animation_->SetSlideDuration(kSlideHighlightChangeDurationMs); ...
4 years, 2 months ago (2016-09-29 19:09:40 UTC) #38
sadrul
https://codereview.chromium.org/2335513002/diff/200001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/200001/ui/views/controls/md_slider.cc#newcode20 ui/views/controls/md_slider.cc:20: const U8CPU kHighlightColorAlpha = 0x4D; I don't see U8CPU ...
4 years, 2 months ago (2016-09-30 02:53:36 UTC) #39
bruthig
https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/slider.cc File ui/views/controls/slider.cc (right): https://codereview.chromium.org/2335513002/diff/180001/ui/views/controls/slider.cc#newcode242 ui/views/controls/slider.cc:242: } On 2016/09/29 19:09:39, yiyix wrote: > On 2016/09/24 ...
4 years, 2 months ago (2016-09-30 21:56:18 UTC) #40
yiyix
https://codereview.chromium.org/2335513002/diff/200001/ui/views/controls/md_slider.cc File ui/views/controls/md_slider.cc (right): https://codereview.chromium.org/2335513002/diff/200001/ui/views/controls/md_slider.cc#newcode20 ui/views/controls/md_slider.cc:20: const U8CPU kHighlightColorAlpha = 0x4D; On 2016/09/30 02:53:36, sadrul ...
4 years, 2 months ago (2016-10-03 16:06:50 UTC) #41
bruthig
lgtm
4 years, 2 months ago (2016-10-03 16:23:19 UTC) #42
sadrul
lgtm
4 years, 2 months ago (2016-10-04 00:26:23 UTC) #45
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/2335513002/240001
4 years, 2 months ago (2016-10-04 14:55:47 UTC) #48
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 2 months ago (2016-10-04 15:54:28 UTC) #50
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 15:57:49 UTC) #52
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/df1235e312d117abcc12d062de6d74d314080349
Cr-Commit-Position: refs/heads/master@{#422814}

Powered by Google App Engine
This is Rietveld 408576698