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

Issue 2716453005: Aura Overlay Scrollbars appear when mouse hovers over scroller edge (Closed)

Created:
3 years, 10 months ago by chaopeng
Modified:
3 years, 9 months ago
Reviewers:
bokan, weiliangc, sadrul, alexmos
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura Overlay Scrollbars appear when mouse hovers over scroller edge In this patch, we add a deley fade in animation when mouse move from not hover to hover. And cancel the deley fade in when mouse move from hover to not hover. BUG=695580 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2716453005 Cr-Commit-Position: refs/heads/master@{#454266} Committed: https://chromium.googlesource.com/chromium/src/+/748e8177decd9de78efe7350371f88197d7a9db8

Patch Set 1 #

Patch Set 2 : fix for android #

Patch Set 3 : rebase #

Total comments: 9

Patch Set 4 : add 50px trigger #

Total comments: 7

Patch Set 5 : bokan comments addressed #

Total comments: 1

Patch Set 6 : change trigger to 30px #

Total comments: 2

Patch Set 7 : rename fade in to show #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -189 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 2 3 4 5 6 5 chunks +40 lines, -22 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 5 6 10 chunks +97 lines, -42 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 3 4 5 6 32 chunks +129 lines, -65 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer_impl.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 5 chunks +17 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 2 chunks +15 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 9 chunks +27 lines, -26 lines 0 comments Download
M ui/native_theme/overlay_scrollbar_constants_aura.h View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 62 (39 generated)
chaopeng
PTAL, Thank you.
3 years, 10 months ago (2017-02-24 19:40:58 UTC) #5
bokan
Looks great! Just some minor comments. Also, just realised you probably haven't seen this: https://docs.google.com/document/d/1Lv8MF1pRfAI1k9QMxGADOeONBhB3ZdYwGKx3qsLBxOo/edit?disco=AAAABHlBB0Q ...
3 years, 9 months ago (2017-02-27 23:13:56 UTC) #18
bokan
https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc#newcode262 cc/input/scrollbar_animation_controller.cc:262: bool is_over_scrollbar_now = mouse_is_over_any_scrollbar(); Also - We shouldn't be ...
3 years, 9 months ago (2017-02-27 23:17:48 UTC) #19
chaopeng
bokan comments addressed. PTAL. Thank you. https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc#newcode127 cc/input/scrollbar_animation_controller.cc:127: base::TimeDelta delay = ...
3 years, 9 months ago (2017-02-28 01:38:27 UTC) #22
bokan
https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/40001/cc/input/scrollbar_animation_controller.cc#newcode127 cc/input/scrollbar_animation_controller.cc:127: base::TimeDelta delay = on_resize ? fade_out_resize_delay_ : fade_out_delay_; On ...
3 years, 9 months ago (2017-02-28 14:04:49 UTC) #25
chaopeng
Updated, PTAL. Thank you. https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode126 cc/input/scrollbar_animation_controller.cc:126: DCHECK(delayed_scrollbar_fade_in_.IsCancelled()); On 2017/02/28 14:04:49, bokan ...
3 years, 9 months ago (2017-02-28 15:57:21 UTC) #29
bokan
https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode126 cc/input/scrollbar_animation_controller.cc:126: DCHECK(delayed_scrollbar_fade_in_.IsCancelled()); On 2017/02/28 15:57:20, chaopeng wrote: > On 2017/02/28 ...
3 years, 9 months ago (2017-02-28 17:12:31 UTC) #32
chaopeng
On 2017/02/28 17:12:31, bokan wrote: > https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc > File cc/input/scrollbar_animation_controller.cc (right): > > https://codereview.chromium.org/2716453005/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode126 > ...
3 years, 9 months ago (2017-02-28 18:16:56 UTC) #35
bokan
Thank you, lgtm
3 years, 9 months ago (2017-02-28 18:36:03 UTC) #36
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/2716453005/100001
3 years, 9 months ago (2017-02-28 18:44:39 UTC) #38
bokan
On 2017/02/28 18:44:39, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 9 months ago (2017-02-28 18:50:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/374758)
3 years, 9 months ago (2017-02-28 18:54:43 UTC) #41
chaopeng
weiliangc@chromium.org: PTAL
3 years, 9 months ago (2017-02-28 19:01:25 UTC) #43
chaopeng
alexmos@chromium.org: Please review changes in content/ sadrul@chromium.org: Please review changes in ui/
3 years, 9 months ago (2017-02-28 20:04:38 UTC) #45
alexmos
content/ LGTM
3 years, 9 months ago (2017-02-28 23:45:48 UTC) #46
sadrul
ui lgtm
3 years, 9 months ago (2017-03-01 15:34:54 UTC) #47
weiliangc
https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc#newcode165 cc/input/scrollbar_animation_controller.cc:165: float progress = delta.InSecondsF() / fade_out_duration_.InSecondsF(); Quick question, why ...
3 years, 9 months ago (2017-03-01 16:58:11 UTC) #48
bokan
https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc#newcode165 cc/input/scrollbar_animation_controller.cc:165: float progress = delta.InSecondsF() / fade_out_duration_.InSecondsF(); On 2017/03/01 16:58:10, ...
3 years, 9 months ago (2017-03-01 17:13:59 UTC) #49
weiliangc
On 2017/03/01 at 17:13:59, bokan wrote: > https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc > File cc/input/scrollbar_animation_controller.cc (right): > > https://codereview.chromium.org/2716453005/diff/100001/cc/input/scrollbar_animation_controller.cc#newcode165 ...
3 years, 9 months ago (2017-03-01 19:06:42 UTC) #50
chaopeng
On 2017/03/01 19:06:42, weiliangc wrote: > On 2017/03/01 at 17:13:59, bokan wrote: > > > ...
3 years, 9 months ago (2017-03-01 19:39:07 UTC) #53
weiliangc
Thank you. LGTM.
3 years, 9 months ago (2017-03-02 14:49:24 UTC) #56
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/2716453005/120001
3 years, 9 months ago (2017-03-02 15:24:26 UTC) #59
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 15:31:20 UTC) #62
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/748e8177decd9de78efe7350371f...

Powered by Google App Engine
This is Rietveld 408576698