summaryrefslogtreecommitdiffstats
path: root/cc/animation/scrollbar_animation_controller_linear_fade.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 14:26:56 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 14:26:56 +0000
commit2ea5abaf1e92cb688b7b766a1fa83fa44840d8ab (patch)
treec08340e820c894636453eb3dedc74ca0a14e23ea /cc/animation/scrollbar_animation_controller_linear_fade.h
parent8853963c136bfd45e5d4b55f0b8df3207839ca16 (diff)
downloadchromium_src-2ea5abaf1e92cb688b7b766a1fa83fa44840d8ab.zip
chromium_src-2ea5abaf1e92cb688b7b766a1fa83fa44840d8ab.tar.gz
chromium_src-2ea5abaf1e92cb688b7b766a1fa83fa44840d8ab.tar.bz2
Add a thinning scrollbar animator for desktop overlay scrollbars.
This makes the overlay scrollbars on desktop get thinner on idle rather than disappearing. This allows people to find and target them easier. No changes to Android scrollbars. BUG=274010 Review URL: https://chromiumcodereview.appspot.com/23647004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/scrollbar_animation_controller_linear_fade.h')
-rw-r--r--cc/animation/scrollbar_animation_controller_linear_fade.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/animation/scrollbar_animation_controller_linear_fade.h b/cc/animation/scrollbar_animation_controller_linear_fade.h
index 74c411f..eca4c4f 100644
--- a/cc/animation/scrollbar_animation_controller_linear_fade.h
+++ b/cc/animation/scrollbar_animation_controller_linear_fade.h
@@ -29,7 +29,7 @@ class CC_EXPORT ScrollbarAnimationControllerLinearFade
virtual bool Animate(base::TimeTicks now) OVERRIDE;
virtual void DidScrollGestureBegin() OVERRIDE;
virtual void DidScrollGestureEnd(base::TimeTicks now) OVERRIDE;
- virtual void DidScrollUpdate(base::TimeTicks now) OVERRIDE;
+ virtual bool DidScrollUpdate(base::TimeTicks now) OVERRIDE;
protected:
ScrollbarAnimationControllerLinearFade(LayerImpl* scroll_layer,
@@ -38,6 +38,7 @@ class CC_EXPORT ScrollbarAnimationControllerLinearFade
private:
float OpacityAtTime(base::TimeTicks now);
+ void ApplyOpacityToScrollbars(float opacity);
LayerImpl* scroll_layer_;