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

Issue 2816923002: change overlay scrollbar hover show to hover fade in (Closed)

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

Description

change overlay scrollbar hover show to hover fade in Currently, we have 2 ways to show the hidden scrollbars: 1. scroll position update 2. move mouse to a region near edge In this patch, we only change the "move mouse to a region near edge" to show scrollbars immediately to fade in scrollbars. BUG=710543 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2816923002 Cr-Commit-Position: refs/heads/master@{#466740} Committed: https://chromium.googlesource.com/chromium/src/+/a47e7158e746c01b4ccbbd25d71e267d93347b94

Patch Set 1 #

Total comments: 10

Patch Set 2 : fix LayerTreeHostImplTest.ScrollbarVisibilityChangeCausesRedrawAndCommit #

Patch Set 3 : bokan comment addressed #

Total comments: 4

Patch Set 4 : bokan comment addressed #

Total comments: 1

Patch Set 5 : merge fade-in and fade-out to same code method #

Total comments: 3

Patch Set 6 : merge FadeInDuration and FadeOutDuration to FadeDuration #

Total comments: 3

Patch Set 7 : merge kOverlayScrollbarFadeInDelay and kOverlayScrollbarFadeOutDelay to kOverlayScrollbarFadeDelay #

Total comments: 3

Patch Set 8 : rebase update #

Patch Set 9 : fix for android #

Patch Set 10 : combine fade_in_delay and fade_out_delay to fade_delay #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -216 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -20 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 5 6 7 8 9 13 chunks +57 lines, -53 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 26 chunks +95 lines, -79 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +22 lines, -24 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -11 lines 0 comments Download
M ui/native_theme/overlay_scrollbar_constants_aura.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -6 lines 0 comments Download
M ui/views/controls/scrollbar/overlay_scroll_bar.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 69 (38 generated)
chaopeng
PTAL. Thank you.
3 years, 8 months ago (2017-04-13 03:09:01 UTC) #4
bokan
https://codereview.chromium.org/2816923002/diff/1/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (left): https://codereview.chromium.org/2816923002/diff/1/cc/input/scrollbar_animation_controller.cc#oldcode362 cc/input/scrollbar_animation_controller.cc:362: delayed_scrollbar_show_.Cancel(); Why don't we want to cancel this now? ...
3 years, 8 months ago (2017-04-13 14:38:14 UTC) #12
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2816923002/diff/1/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (left): https://codereview.chromium.org/2816923002/diff/1/cc/input/scrollbar_animation_controller.cc#oldcode362 cc/input/scrollbar_animation_controller.cc:362: delayed_scrollbar_show_.Cancel(); On 2017/04/13 14:38:14, bokan ...
3 years, 8 months ago (2017-04-13 15:15:37 UTC) #13
bokan
https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode156 cc/input/scrollbar_animation_controller.cc:156: if (is_animating_) { Why'd you lose the `&& animation_change_ ...
3 years, 8 months ago (2017-04-13 15:31:40 UTC) #14
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode156 cc/input/scrollbar_animation_controller.cc:156: if (is_animating_) { On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 15:56:08 UTC) #16
bokan
lgtm https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/60001/cc/input/scrollbar_animation_controller.cc#newcode156 cc/input/scrollbar_animation_controller.cc:156: if (is_animating_) { On 2017/04/13 15:56:08, chaopeng wrote: ...
3 years, 8 months ago (2017-04-13 16:04:54 UTC) #17
chaopeng
weiliangc@chromium.org: PTAL. Thank you.
3 years, 8 months ago (2017-04-13 16:59:08 UTC) #19
weiliangc
https://codereview.chromium.org/2816923002/diff/100001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/100001/cc/input/scrollbar_animation_controller.cc#newcode132 cc/input/scrollbar_animation_controller.cc:132: DCHECK(delayed_scrollbar_fade_out_.IsCancelled()); Could this happen in the middle of FadeOut ...
3 years, 8 months ago (2017-04-18 16:45:21 UTC) #20
chaopeng
On 2017/04/18 16:45:21, weiliangc wrote: > https://codereview.chromium.org/2816923002/diff/100001/cc/input/scrollbar_animation_controller.cc > File cc/input/scrollbar_animation_controller.cc (right): > > https://codereview.chromium.org/2816923002/diff/100001/cc/input/scrollbar_animation_controller.cc#newcode132 > ...
3 years, 8 months ago (2017-04-19 02:50:51 UTC) #21
weiliangc
On 2017/04/19 at 02:50:51, chaopeng wrote: > On 2017/04/18 16:45:21, weiliangc wrote: > > https://codereview.chromium.org/2816923002/diff/100001/cc/input/scrollbar_animation_controller.cc ...
3 years, 8 months ago (2017-04-19 15:54:38 UTC) #22
chaopeng
https://codereview.chromium.org/2816923002/diff/120001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/120001/cc/input/scrollbar_animation_controller.cc#newcode322 cc/input/scrollbar_animation_controller.cc:322: } else { when is_animating FadeOut, mouse move would ...
3 years, 8 months ago (2017-04-19 16:12:18 UTC) #23
weiliangc
LGTM https://codereview.chromium.org/2816923002/diff/120001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2816923002/diff/120001/cc/input/scrollbar_animation_controller.cc#newcode322 cc/input/scrollbar_animation_controller.cc:322: } else { On 2017/04/19 at 16:12:18, chaopeng ...
3 years, 8 months ago (2017-04-19 20:47:08 UTC) #24
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/2816923002/120001
3 years, 8 months ago (2017-04-19 20:49:29 UTC) #27
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/415579)
3 years, 8 months ago (2017-04-19 20:59:08 UTC) #30
chaopeng
estade@ PTAL at ui/native_theme/overlay_scrollbar_constants_aura.h kbr@ PTAL at content/renderer/gpu/render_widget_compositor.cc Thanks all.
3 years, 8 months ago (2017-04-19 20:59:11 UTC) #31
Evan Stade
https://codereview.chromium.org/2816923002/diff/120001/ui/native_theme/overlay_scrollbar_constants_aura.h File ui/native_theme/overlay_scrollbar_constants_aura.h (right): https://codereview.chromium.org/2816923002/diff/120001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode25 ui/native_theme/overlay_scrollbar_constants_aura.h:25: constexpr base::TimeDelta kOverlayScrollbarFadeOutDuration = why do fade in/out have ...
3 years, 8 months ago (2017-04-19 22:05:32 UTC) #32
Ken Russell (switch to Gerrit)
content/renderer/gpu/ lgtm with estade's question addressed.
3 years, 8 months ago (2017-04-19 22:45:20 UTC) #33
chaopeng
On 2017/04/19 22:05:32, Evan Stade wrote: > https://codereview.chromium.org/2816923002/diff/120001/ui/native_theme/overlay_scrollbar_constants_aura.h > File ui/native_theme/overlay_scrollbar_constants_aura.h (right): > > https://codereview.chromium.org/2816923002/diff/120001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode25 ...
3 years, 8 months ago (2017-04-20 01:31:44 UTC) #34
Evan Stade
https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h File ui/native_theme/overlay_scrollbar_constants_aura.h (right): https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode24 ui/native_theme/overlay_scrollbar_constants_aura.h:24: base::TimeDelta::FromMilliseconds(1000); Any reason to keep the fadein/out separate?
3 years, 8 months ago (2017-04-20 02:40:30 UTC) #35
chaopeng
https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h File ui/native_theme/overlay_scrollbar_constants_aura.h (right): https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode24 ui/native_theme/overlay_scrollbar_constants_aura.h:24: base::TimeDelta::FromMilliseconds(1000); On 2017/04/20 02:40:30, Evan Stade wrote: > Any ...
3 years, 8 months ago (2017-04-20 02:50:11 UTC) #36
Evan Stade
https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h File ui/native_theme/overlay_scrollbar_constants_aura.h (right): https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode24 ui/native_theme/overlay_scrollbar_constants_aura.h:24: base::TimeDelta::FromMilliseconds(1000); On 2017/04/20 02:50:10, chaopeng wrote: > On 2017/04/20 ...
3 years, 8 months ago (2017-04-20 03:45:01 UTC) #37
chaopeng
On 2017/04/20 03:45:01, Evan Stade wrote: > https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h > File ui/native_theme/overlay_scrollbar_constants_aura.h (right): > > https://codereview.chromium.org/2816923002/diff/140001/ui/native_theme/overlay_scrollbar_constants_aura.h#newcode24 ...
3 years, 8 months ago (2017-04-20 04:01:14 UTC) #38
Evan Stade
https://codereview.chromium.org/2816923002/diff/160001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2816923002/diff/160001/cc/input/scrollbar_animation_controller.h#newcode56 cc/input/scrollbar_animation_controller.h:56: base::TimeDelta fade_in_delay, I had envisioned you combining these as ...
3 years, 8 months ago (2017-04-20 14:33:46 UTC) #43
chaopeng
https://codereview.chromium.org/2816923002/diff/160001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2816923002/diff/160001/cc/input/scrollbar_animation_controller.h#newcode56 cc/input/scrollbar_animation_controller.h:56: base::TimeDelta fade_in_delay, On 2017/04/20 14:33:45, Evan Stade wrote: > ...
3 years, 8 months ago (2017-04-20 14:50:38 UTC) #46
weiliangc
I think maybe fade_in_delay and fade_out_delay can be combined. Also please update the CL description ...
3 years, 8 months ago (2017-04-21 20:36:16 UTC) #53
Evan Stade
On 2017/04/21 20:36:16, weiliangc wrote: > I think maybe fade_in_delay and fade_out_delay can be combined. ...
3 years, 8 months ago (2017-04-21 21:33:08 UTC) #54
chaopeng
weiliangc and estade comments addressed. esprehn@chromium.org: Please review changes in content sadrul@chromium.org: Please review changes ...
3 years, 8 months ago (2017-04-22 00:44:29 UTC) #59
sadrul
lgtm
3 years, 8 months ago (2017-04-24 14:19:38 UTC) #62
esprehn
Content/ lgtm
3 years, 8 months ago (2017-04-24 19:09:03 UTC) #63
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/2816923002/220001
3 years, 8 months ago (2017-04-24 19:10:27 UTC) #66
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 20:27:12 UTC) #69
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/a47e7158e746c01b4ccbbd25d71e...

Powered by Google App Engine
This is Rietveld 408576698