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

Unified Diff: cc/animation/scrollbar_animation_controller.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 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 | « ash/wm/window_animations_unittest.cc ('k') | cc/animation/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/animation/scrollbar_animation_controller.h
diff --git a/cc/animation/scrollbar_animation_controller.h b/cc/animation/scrollbar_animation_controller.h
index ecef4fb2d9728cec7789c4336524a7d76f0a731c..7cb86b34d56ef3cc728e16c981548629383ec583 100644
--- a/cc/animation/scrollbar_animation_controller.h
+++ b/cc/animation/scrollbar_animation_controller.h
@@ -8,6 +8,7 @@
#include "base/time/time.h"
#include "cc/base/cc_export.h"
#include "ui/gfx/vector2d_f.h"
+#include "ui/gfx/frame_time.h"
namespace cc {
@@ -19,16 +20,18 @@ class CC_EXPORT ScrollbarAnimationController {
virtual ~ScrollbarAnimationController() {}
virtual bool IsAnimating() const = 0;
- virtual base::TimeDelta DelayBeforeStart(base::TimeTicks now) const = 0;
+ virtual base::TimeDelta DelayBeforeStart(gfx::FrameTime now)
+ const = 0;
- virtual bool Animate(base::TimeTicks now) = 0;
+ virtual bool Animate(gfx::FrameTime now) = 0;
virtual void DidScrollGestureBegin() = 0;
- virtual void DidScrollGestureEnd(base::TimeTicks now) = 0;
- virtual void DidMouseMoveOffScrollbar(base::TimeTicks now) = 0;
+ virtual void DidScrollGestureEnd(gfx::FrameTime now) = 0;
+ virtual void DidMouseMoveOffScrollbar(gfx::FrameTime now) = 0;
// Returns true if we should start an animation.
- virtual bool DidScrollUpdate(base::TimeTicks now) = 0;
- virtual bool DidMouseMoveNear(base::TimeTicks now, float distance) = 0;
+ virtual bool DidScrollUpdate(gfx::FrameTime now) = 0;
+ virtual bool DidMouseMoveNear(gfx::FrameTime now, float distance)
+ = 0;
};
} // namespace cc
« no previous file with comments | « ash/wm/window_animations_unittest.cc ('k') | cc/animation/scrollbar_animation_controller_linear_fade.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698