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

Unified Diff: cc/input/top_controls_manager.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 | « cc/input/input_handler.h ('k') | cc/input/top_controls_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/top_controls_manager.h
diff --git a/cc/input/top_controls_manager.h b/cc/input/top_controls_manager.h
index 9bc3040d31a0bc746fe842af07f62e598ba135b0..288e99ec253e7c885ef341b0ddb3ac8c118f3da2 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -9,13 +9,10 @@
#include "base/memory/weak_ptr.h"
#include "cc/input/top_controls_state.h"
#include "cc/layers/layer_impl.h"
+#include "ui/gfx/frame_time.h"
#include "ui/gfx/size.h"
#include "ui/gfx/vector2d_f.h"
-namespace base {
-class TimeTicks;
-}
-
namespace cc {
class KeyframedFloatAnimationCurve;
@@ -56,7 +53,7 @@ class CC_EXPORT TopControlsManager
gfx::Vector2dF ScrollBy(const gfx::Vector2dF pending_delta);
void ScrollEnd();
- gfx::Vector2dF Animate(base::TimeTicks monotonic_time);
+ gfx::Vector2dF Animate(gfx::FrameTime monotonic_time);
protected:
TopControlsManager(TopControlsManagerClient* client,
@@ -69,7 +66,7 @@ class CC_EXPORT TopControlsManager
void ResetAnimations();
void SetupAnimation(AnimationDirection direction);
void StartAnimationIfNecessary();
- bool IsAnimationCompleteAtTime(base::TimeTicks time);
+ bool IsAnimationCompleteAtTime(gfx::FrameTime time);
TopControlsManagerClient* client_; // The client manages the lifecycle of
// this.
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698