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

Unified Diff: cc/input/scrollbar_animation_controller.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 | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scrollbar_animation_controller.h
diff --git a/cc/input/scrollbar_animation_controller.h b/cc/input/scrollbar_animation_controller.h
index a3b6100bc52cb67897807d76f9f2f64707776f5d..d1f3787c1aa45d1b9c6b34e959c828ff7ae5f6d3 100644
--- a/cc/input/scrollbar_animation_controller.h
+++ b/cc/input/scrollbar_animation_controller.h
@@ -50,10 +50,10 @@ class CC_EXPORT ScrollbarAnimationController {
ScrollbarAnimationController(int scroll_layer_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta delay_before_starting,
- base::TimeDelta resize_delay_before_starting,
- base::TimeDelta duration);
+ base::TimeDelta resize_delay_before_starting);
virtual void RunAnimationFrame(float progress) = 0;
+ virtual const base::TimeDelta& Duration() = 0;
void StartAnimation();
void StopAnimation();
@@ -61,17 +61,16 @@ class CC_EXPORT ScrollbarAnimationController {
ScrollbarAnimationControllerClient* client_;
+ void PostDelayedAnimationTask(bool on_resize);
+
private:
// Returns how far through the animation we are as a progress value from
// 0 to 1.
float AnimationProgressAtTime(base::TimeTicks now);
- void PostDelayedAnimationTask(bool on_resize);
-
base::TimeTicks last_awaken_time_;
base::TimeDelta delay_before_starting_;
base::TimeDelta resize_delay_before_starting_;
- base::TimeDelta duration_;
bool is_animating_;
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698