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

Unified Diff: cc/animation/scrollbar_animation_controller.cc

Issue 608223002: [Android]Increase Scrollbar fade delay on Resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/animation/scrollbar_animation_controller.cc
diff --git a/cc/animation/scrollbar_animation_controller.cc b/cc/animation/scrollbar_animation_controller.cc
index 910a7d8c1398be740afbd0971f7220f05ca36eda..567373ff2de89afe24f797e8b2f9e0eac5cd2e04 100644
--- a/cc/animation/scrollbar_animation_controller.cc
+++ b/cc/animation/scrollbar_animation_controller.cc
@@ -49,6 +49,11 @@ float ScrollbarAnimationController::AnimationProgressAtTime(
return std::max(std::min(progress, 1.f), 0.f);
}
+void ScrollbarAnimationController::SetDelayOnScrollbarAnimation(
+ base::TimeDelta delay) {
+ delay_before_starting_ = delay;
+}
+
void ScrollbarAnimationController::DidScrollBegin() {
currently_scrolling_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698