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

Unified Diff: cc/input/scrollbar_animation_controller_linear_fade.cc

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
Index: cc/input/scrollbar_animation_controller_linear_fade.cc
diff --git a/cc/input/scrollbar_animation_controller_linear_fade.cc b/cc/input/scrollbar_animation_controller_linear_fade.cc
index 8695bfaf6cf57b4199e3faec1a4ae539f50a0795..ee7f4afe64827fbbf46c91fba0a111a6c925cfb8 100644
--- a/cc/input/scrollbar_animation_controller_linear_fade.cc
+++ b/cc/input/scrollbar_animation_controller_linear_fade.cc
@@ -33,8 +33,8 @@ ScrollbarAnimationControllerLinearFade::ScrollbarAnimationControllerLinearFade(
: ScrollbarAnimationController(scroll_layer_id,
client,
delay_before_starting,
- resize_delay_before_starting,
- duration) {}
+ resize_delay_before_starting),
+ duration_(duration) {}
ScrollbarAnimationControllerLinearFade::
~ScrollbarAnimationControllerLinearFade() {}
@@ -46,6 +46,10 @@ void ScrollbarAnimationControllerLinearFade::RunAnimationFrame(float progress) {
StopAnimation();
}
+const base::TimeDelta& ScrollbarAnimationControllerLinearFade::Duration() {
+ return duration_;
+}
+
void ScrollbarAnimationControllerLinearFade::DidScrollUpdate(bool on_resize) {
ScrollbarAnimationController::DidScrollUpdate(on_resize);
ApplyOpacityToScrollbars(1.f);
« no previous file with comments | « cc/input/scrollbar_animation_controller_linear_fade.h ('k') | cc/input/scrollbar_animation_controller_thinning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698