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

Side by Side Diff: cc/scrollbar_animation_controller.h

Issue 12822004: Part 3 of cc/ directory shuffles: animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/scrollbar_animation_controller_linear_fade.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_SCROLLBAR_ANIMATION_CONTROLLER_H_
6 #define CC_SCROLLBAR_ANIMATION_CONTROLLER_H_
7
8 #include "base/time.h"
9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/vector2d_f.h"
11
12 namespace cc {
13
14 // This abstract class represents the compositor-side analogy of ScrollbarAnimat or.
15 // Individual platforms should subclass it to provide specialized implementation .
16 class CC_EXPORT ScrollbarAnimationController {
17 public:
18 virtual ~ScrollbarAnimationController() {}
19
20 virtual bool isScrollGestureInProgress() const = 0;
21 virtual bool isAnimating() const = 0;
22 virtual base::TimeDelta delayBeforeStart(base::TimeTicks now) const = 0;
23
24 virtual bool animate(base::TimeTicks) = 0;
25 virtual void didScrollGestureBegin() = 0;
26 virtual void didScrollGestureEnd(base::TimeTicks now) = 0;
27 virtual void didProgrammaticallyUpdateScroll(base::TimeTicks now) = 0;
28 };
29
30 } // namespace cc
31
32 #endif // CC_SCROLLBAR_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/scrollbar_animation_controller_linear_fade.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698