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

Issue 2554913002: Prevent overlay scrollbars expand or hover together (Closed)

Created:
4 years ago by chaopeng
Modified:
3 years, 10 months ago
Reviewers:
bokan, weiliangc
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent overlay scrollbars expand or hover together Overlay scrollbars will expand and hover together because we use same state to calculate two scrollbars' animation. In this patch, we separate responsibilities of ScrollbarAnimationControllerThinning. We keep fade in/out animation stills in ScrollbarAnimationControllerThinning and move thinning animation to SingleScrollbarAnimationControllerThinning. BUG=669677 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2554913002 Cr-Commit-Position: refs/heads/master@{#446594} Committed: https://chromium.googlesource.com/chromium/src/+/2c3e1700308bc1756a408cfac4b5cfa5f84da0a3

Patch Set 1 #

Total comments: 2

Patch Set 2 : add ScrollbarAnimationControllerThinningTest #

Total comments: 12

Patch Set 3 : merged sahel's commit #

Patch Set 4 : fix for fade in/out together #

Total comments: 6

Patch Set 5 : separate responsibilities of SACT and SSACT #

Total comments: 13

Patch Set 6 : testcase fixed #

Patch Set 7 : fix for test #

Total comments: 8

Patch Set 8 : bokan comment addressed. #

Total comments: 1

Patch Set 9 : bokan@ comment#25 addressed #

Patch Set 10 : Merge remote-tracking branch 'origin/master' into fix-669677 #

Total comments: 8

Patch Set 11 : bokan@ comments addressed #

Patch Set 12 : rebase update #

Total comments: 5

Patch Set 13 : bokan comment#29 addressed #

Total comments: 3

Patch Set 14 : bokan comments#31 addressed. #

Total comments: 1

Patch Set 15 : move single scrollbar anitmation controller thinning to scrollbar anitmation controller #

Patch Set 16 : add scrollbar_animation_controller_client.h #

Total comments: 1

Patch Set 17 : move ScrollbarAnimationControllerClient back #

Total comments: 4

Patch Set 18 : for weiliangc's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1255 lines, -743 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +30 lines, -6 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +108 lines, -10 lines 0 comments Download
M cc/input/scrollbar_animation_controller_linear_fade.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +12 lines, -40 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +30 lines, -166 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 22 chunks +370 lines, -438 lines 0 comments Download
A + cc/input/single_scrollbar_animation_controller_thinning.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +40 lines, -36 lines 0 comments Download
A cc/input/single_scrollbar_animation_controller_thinning.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +204 lines, -0 lines 0 comments Download
A cc/input/single_scrollbar_animation_controller_thinning_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +381 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +69 lines, -35 lines 0 comments Download

Messages

Total messages: 57 (27 generated)
bokan
Ok, overall approach looks fine to me. For tests, I think you should move the ...
4 years ago (2016-12-06 19:44:46 UTC) #4
chaopeng
On 2016/12/06 19:44:46, bokan wrote: > Ok, overall approach looks fine to me. > > ...
4 years ago (2016-12-07 20:49:16 UTC) #5
bokan
https://codereview.chromium.org/2554913002/diff/40001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/40001/cc/input/scrollbar_animation_controller_thinning.cc#newcode51 cc/input/scrollbar_animation_controller_thinning.cc:51: SingleScrollbarAnimationControllerThinning* This should return a ref since we'll always ...
4 years ago (2016-12-08 19:34:07 UTC) #7
chaopeng
Please take a early look at this patch and ignore the test files. https://codereview.chromium.org/2554913002/diff/40001/cc/trees/layer_tree_host_impl.cc File ...
4 years ago (2016-12-15 23:54:26 UTC) #8
bokan
I didn't look at all the details but generally, I think it'll be easier if ...
4 years ago (2016-12-16 14:57:42 UTC) #9
chaopeng
PTAL, Thank you. https://codereview.chromium.org/2554913002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2554913002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode3277 cc/trees/layer_tree_host_impl.cc:3277: new_animation_controller->EnsureScrollbarFadeIn(); On 2016/12/16 14:57:42, bokan wrote: ...
4 years ago (2016-12-16 21:02:25 UTC) #10
bokan
https://codereview.chromium.org/2554913002/diff/100001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/100001/cc/input/scrollbar_animation_controller_thinning.cc#newcode39 cc/input/scrollbar_animation_controller_thinning.cc:39: opacity_(1.0f), Why did we change starting opacity to 1? ...
4 years ago (2016-12-19 16:11:48 UTC) #11
chaopeng
In this patch, I move fade in/out to scrollbar_animation_controller_thinning and fix all testcases. Also add ...
4 years ago (2016-12-20 20:05:55 UTC) #12
bokan
https://codereview.chromium.org/2554913002/diff/100001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/100001/cc/input/scrollbar_animation_controller_thinning.cc#newcode39 cc/input/scrollbar_animation_controller_thinning.cc:39: opacity_(1.0f), On 2016/12/20 20:05:55, chaopeng wrote: > On 2016/12/19 ...
4 years ago (2016-12-21 15:56:02 UTC) #23
chaopeng
PTAL, Thank you. https://codereview.chromium.org/2554913002/diff/140001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/140001/cc/input/scrollbar_animation_controller_thinning.cc#newcode148 cc/input/scrollbar_animation_controller_thinning.cc:148: StopAnimation(); On 2016/12/21 15:56:02, bokan wrote: ...
4 years ago (2016-12-21 16:57:47 UTC) #24
bokan
Thanks, it's starting to shape up. I'll take a look at tests tomorrow. https://codereview.chromium.org/2554913002/diff/140001/cc/input/scrollbar_animation_controller_thinning.cc File ...
4 years ago (2016-12-21 23:06:09 UTC) #25
bokan
https://codereview.chromium.org/2554913002/diff/200001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/200001/cc/input/scrollbar_animation_controller_thinning.cc#newcode117 cc/input/scrollbar_animation_controller_thinning.cc:117: horizontal_controller_->DidMouseUp(); If we were captured here, you need to ...
3 years, 11 months ago (2017-01-06 20:17:57 UTC) #26
chaopeng
PTAL https://codereview.chromium.org/2554913002/diff/200001/cc/input/single_scrollbar_animation_controller_thinning_unittest.cc File cc/input/single_scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2554913002/diff/200001/cc/input/single_scrollbar_animation_controller_thinning_unittest.cc#newcode228 cc/input/single_scrollbar_animation_controller_thinning_unittest.cc:228: // thickening until the new animation catches up ...
3 years, 11 months ago (2017-01-10 20:49:50 UTC) #27
bokan
On 2017/01/10 20:49:50, chaopeng wrote: > PTAL > > https://codereview.chromium.org/2554913002/diff/200001/cc/input/single_scrollbar_animation_controller_thinning_unittest.cc > File cc/input/single_scrollbar_animation_controller_thinning_unittest.cc > (right): ...
3 years, 11 months ago (2017-01-20 01:29:40 UTC) #28
bokan
Mostly minor nits but I did find a bug. https://codereview.chromium.org/2554913002/diff/240001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2554913002/diff/240001/cc/input/scrollbar_animation_controller.h#newcode62 cc/input/scrollbar_animation_controller.h:62: ...
3 years, 11 months ago (2017-01-20 18:57:25 UTC) #29
chaopeng
On 2017/01/20 18:57:25, bokan wrote: > Mostly minor nits but I did find a bug. ...
3 years, 11 months ago (2017-01-20 19:46:19 UTC) #30
bokan
Ok, few more small issues but lgtm otherwise. https://codereview.chromium.org/2554913002/diff/260001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2554913002/diff/260001/cc/input/scrollbar_animation_controller_thinning.cc#newcode91 cc/input/scrollbar_animation_controller_thinning.cc:91: bool ...
3 years, 11 months ago (2017-01-20 19:58:32 UTC) #31
chaopeng
weiliangc@chromium.org: Please review changes
3 years, 11 months ago (2017-01-20 20:55:32 UTC) #33
weiliangc
As far as I can tell nothing uses LinearFade right now. (Only place setting linear ...
3 years, 11 months ago (2017-01-24 23:19:57 UTC) #34
bokan
On 2017/01/24 23:19:57, weiliangc wrote: > As far as I can tell nothing uses LinearFade ...
3 years, 11 months ago (2017-01-24 23:22:40 UTC) #35
weiliangc
On 2017/01/24 at 23:22:40, bokan wrote: > On 2017/01/24 23:19:57, weiliangc wrote: > > As ...
3 years, 11 months ago (2017-01-25 00:02:11 UTC) #36
bokan
On 2017/01/25 00:02:11, weiliangc wrote: > On 2017/01/24 at 23:22:40, bokan wrote: > > On ...
3 years, 11 months ago (2017-01-25 14:09:24 UTC) #37
weiliangc
On 2017/01/25 at 14:09:24, bokan wrote: > On 2017/01/25 00:02:11, weiliangc wrote: > > On ...
3 years, 11 months ago (2017-01-25 17:03:27 UTC) #38
bokan
On 2017/01/25 17:03:27, weiliangc wrote: > On 2017/01/25 at 14:09:24, bokan wrote: > > On ...
3 years, 11 months ago (2017-01-25 17:10:34 UTC) #39
chaopeng
moved single_scrollbar_anitmation_controller_thinning to hold in scrollbar_anitmation_controller. PTAL thank you.
3 years, 11 months ago (2017-01-25 21:06:48 UTC) #42
bokan
https://codereview.chromium.org/2554913002/diff/320001/cc/input/scrollbar_animation_controller_client.h File cc/input/scrollbar_animation_controller_client.h (right): https://codereview.chromium.org/2554913002/diff/320001/cc/input/scrollbar_animation_controller_client.h#newcode15 cc/input/scrollbar_animation_controller_client.h:15: class CC_EXPORT ScrollbarAnimationControllerClient { Why did this have to ...
3 years, 11 months ago (2017-01-25 22:20:54 UTC) #47
chaopeng
On 2017/01/25 22:20:54, bokan wrote: > https://codereview.chromium.org/2554913002/diff/320001/cc/input/scrollbar_animation_controller_client.h > File cc/input/scrollbar_animation_controller_client.h (right): > > https://codereview.chromium.org/2554913002/diff/320001/cc/input/scrollbar_animation_controller_client.h#newcode15 > ...
3 years, 11 months ago (2017-01-26 04:20:44 UTC) #50
weiliangc
LGTM https://codereview.chromium.org/2554913002/diff/340001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2554913002/diff/340001/cc/input/scrollbar_animation_controller.h#newcode49 cc/input/scrollbar_animation_controller.h:49: virtual bool NeedThinningAnimation() const; Not need to change ...
3 years, 11 months ago (2017-01-26 23:13:54 UTC) #51
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/2554913002/360001
3 years, 11 months ago (2017-01-27 02:39:42 UTC) #54
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 04:46:45 UTC) #57
Message was sent while issue was closed.
Committed patchset #18 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/2c3e1700308bc1756a408cfac4b5...

Powered by Google App Engine
This is Rietveld 408576698