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

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)

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

Description

Keep expanded if mouse moves off of scrollbar while dragging For This bug we add a field `captured_scrollbar_layer_id_` to layer_tree_host_impl to know when a scrollbar is captured(dragging). In scrollbar_animation_controller_thinning we only update the state but ignore the animation when the scrollbar is captured. BUG=636438 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/54c1c281007900d28cd62c2cc1c6c6cfa3f8325e Cr-Commit-Position: refs/heads/master@{#422222}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix style and check left button #

Total comments: 11

Patch Set 3 : left button only #

Patch Set 4 : format #

Patch Set 5 : jump seconds #

Total comments: 5

Patch Set 6 : move const to member #

Total comments: 1

Patch Set 7 : style #

Patch Set 8 : Merge remote-tracking branch 'origin/master' into fix-636438 #

Total comments: 2

Patch Set 9 : rename mouseDown #

Patch Set 10 : style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -14 lines) Patch
M cc/input/input_handler.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.cc View 1 3 chunks +41 lines, -11 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 2 3 4 5 6 4 chunks +121 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +23 lines, -0 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -1 line 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (25 generated)
chaopeng
4 years, 3 months ago (2016-09-22 17:28:47 UTC) #4
dtapuska
How does this behave with right clicks? https://codereview.chromium.org/2358323003/diff/1/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2358323003/diff/1/cc/input/scrollbar_animation_controller_thinning.cc#newcode88 cc/input/scrollbar_animation_controller_thinning.cc:88: if (captured_) ...
4 years, 3 months ago (2016-09-22 20:34:24 UTC) #6
chaopeng
On 2016/09/22 20:34:24, dtapuska wrote: > How does this behave with right clicks? > > ...
4 years, 3 months ago (2016-09-23 00:16:44 UTC) #7
bokan
https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc#newcode71 cc/input/scrollbar_animation_controller_thinning.cc:71: ApplyOpacityAndThumbThicknessScale(1, 1.f); I see that 1.f is the maximum ...
4 years, 3 months ago (2016-09-23 00:39:13 UTC) #8
chaopeng
https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode410 cc/input/scrollbar_animation_controller_thinning_unittest.cc:410: time += base::TimeDelta::FromSeconds(1); On 2016/09/23 00:39:12, bokan wrote: > ...
4 years, 3 months ago (2016-09-23 00:54:58 UTC) #9
chaopeng
https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc#newcode71 cc/input/scrollbar_animation_controller_thinning.cc:71: ApplyOpacityAndThumbThicknessScale(1, 1.f); On 2016/09/23 00:39:12, bokan wrote: > I ...
4 years, 3 months ago (2016-09-23 02:38:26 UTC) #10
chaopeng
On 2016/09/23 02:38:26, chaopeng wrote: > https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc > File cc/input/scrollbar_animation_controller_thinning.cc (right): > > https://codereview.chromium.org/2358323003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc#newcode71 > ...
4 years, 3 months ago (2016-09-23 17:57:18 UTC) #11
bokan
Thanks, looking good, just want to fix the multiple calls to Animate. Also, in description: ...
4 years, 3 months ago (2016-09-23 18:06:31 UTC) #12
chaopeng
4 years, 3 months ago (2016-09-23 20:16:33 UTC) #14
bokan
https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode402 cc/input/scrollbar_animation_controller_thinning_unittest.cc:402: time += base::TimeDelta::FromSeconds(1); This should be unneeded, right? Without ...
4 years, 3 months ago (2016-09-23 20:21:29 UTC) #15
chaopeng
https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode402 cc/input/scrollbar_animation_controller_thinning_unittest.cc:402: time += base::TimeDelta::FromSeconds(1); On 2016/09/23 20:21:29, bokan wrote: > ...
4 years, 3 months ago (2016-09-23 20:26:47 UTC) #16
bokan
https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode402 cc/input/scrollbar_animation_controller_thinning_unittest.cc:402: time += base::TimeDelta::FromSeconds(1); On 2016/09/23 20:26:47, chaopeng wrote: > ...
4 years, 3 months ago (2016-09-23 20:30:08 UTC) #17
chaopeng
On 2016/09/23 20:30:08, bokan wrote: > https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc > File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): > > https://codereview.chromium.org/2358323003/diff/80001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode402 > ...
4 years, 3 months ago (2016-09-23 20:34:34 UTC) #18
bokan
lgtm % naming issue below. Please fix then land-away. https://codereview.chromium.org/2358323003/diff/100001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2358323003/diff/100001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode44 cc/input/scrollbar_animation_controller_thinning_unittest.cc:44: ...
4 years, 3 months ago (2016-09-23 20:37:19 UTC) #19
bokan
On 2016/09/23 20:37:19, bokan wrote: > lgtm % naming issue below. Please fix then land-away. ...
4 years, 3 months ago (2016-09-23 21:11:39 UTC) #20
bokan
+weiliangc@ for CC
4 years, 3 months ago (2016-09-23 21:12:14 UTC) #22
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/2358323003/120001
4 years, 2 months ago (2016-09-28 14:54:46 UTC) #25
dtapuska
On 2016/09/28 14:54:46, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 2 months ago (2016-09-28 15:34:57 UTC) #27
weiliangc
Thanks for looking at this. Sorry I didn't get to this earlier. Would non-composited scrolling ...
4 years, 2 months ago (2016-09-29 21:37:33 UTC) #36
chaopeng
On 2016/09/29 21:37:33, weiliangc wrote: > Thanks for looking at this. Sorry I didn't get ...
4 years, 2 months ago (2016-09-29 22:56:02 UTC) #39
chaopeng
4 years, 2 months ago (2016-09-29 22:56:13 UTC) #40
bokan
> > Would non-composited scrolling area with overlay scrollbars outside this > > bug/CL's goal? ...
4 years, 2 months ago (2016-09-29 22:58:51 UTC) #41
weiliangc
On 2016/09/29 22:58:51, bokan wrote: > > > Would non-composited scrolling area with overlay scrollbars ...
4 years, 2 months ago (2016-09-30 18:59:28 UTC) #44
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/2358323003/180001
4 years, 2 months ago (2016-09-30 20:12:27 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-09-30 21:17:33 UTC) #49
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 21:21:42 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/54c1c281007900d28cd62c2cc1c6c6cfa3f8325e
Cr-Commit-Position: refs/heads/master@{#422222}

Powered by Google App Engine
This is Rietveld 408576698