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

Unified Diff: cc/input/scrollbar_animation_controller_linear_fade.h

Issue 2442573002: Implement fade-out animation for Aura overlay scrollbars (CC only). (Closed)
Patch Set: Address aelias@'s feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/input/scrollbar_animation_controller.cc ('k') | cc/input/scrollbar_animation_controller_linear_fade.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scrollbar_animation_controller_linear_fade.h
diff --git a/cc/input/scrollbar_animation_controller_linear_fade.h b/cc/input/scrollbar_animation_controller_linear_fade.h
index f5993e7149a6148adb9ed3087b01623580cea948..f5ef13a778ac26cf5e943a7b2c157d5904968cf3 100644
--- a/cc/input/scrollbar_animation_controller_linear_fade.h
+++ b/cc/input/scrollbar_animation_controller_linear_fade.h
@@ -37,11 +37,14 @@ class CC_EXPORT ScrollbarAnimationControllerLinearFade
base::TimeDelta duration);
void RunAnimationFrame(float progress) override;
+ const base::TimeDelta& Duration() override;
private:
float OpacityAtTime(base::TimeTicks now) const;
void ApplyOpacityToScrollbars(float opacity);
+ base::TimeDelta duration_;
+
DISALLOW_COPY_AND_ASSIGN(ScrollbarAnimationControllerLinearFade);
};
« no previous file with comments | « cc/input/scrollbar_animation_controller.cc ('k') | cc/input/scrollbar_animation_controller_linear_fade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698