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

Unified Diff: cc/scrollbar_animation_controller.h

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 188682 Created 7 years, 9 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/resource_update_controller.cc ('k') | cc/scrollbar_animation_controller_linear_fade.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_animation_controller.h
diff --git a/cc/scrollbar_animation_controller.h b/cc/scrollbar_animation_controller.h
index f75e8d3e28d4b88e09db5cc70da7a7e3603130fc..e660e8f9452035c2e99b4d2f195d3d6437807419 100644
--- a/cc/scrollbar_animation_controller.h
+++ b/cc/scrollbar_animation_controller.h
@@ -17,10 +17,14 @@ class CC_EXPORT ScrollbarAnimationController {
public:
virtual ~ScrollbarAnimationController() {}
+ virtual bool isScrollGestureInProgress() const = 0;
+ virtual bool isAnimating() const = 0;
+ virtual base::TimeDelta delayBeforeStart(base::TimeTicks now) const = 0;
+
virtual bool animate(base::TimeTicks) = 0;
- virtual void didPinchGestureUpdate(base::TimeTicks) = 0;
- virtual void didPinchGestureEnd(base::TimeTicks) = 0;
- virtual void didUpdateScrollOffset(base::TimeTicks) = 0;
+ virtual void didScrollGestureBegin() = 0;
+ virtual void didScrollGestureEnd(base::TimeTicks now) = 0;
+ virtual void didProgrammaticallyUpdateScroll(base::TimeTicks now) = 0;
};
} // namespace cc
« no previous file with comments | « cc/resource_update_controller.cc ('k') | cc/scrollbar_animation_controller_linear_fade.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698