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

Unified Diff: cc/animation/scrollbar_animation_controller.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
Index: cc/animation/scrollbar_animation_controller.h
diff --git a/cc/animation/scrollbar_animation_controller.h b/cc/animation/scrollbar_animation_controller.h
deleted file mode 100644
index 795c7c1766c0794660bbc4076907a5662d37da8f..0000000000000000000000000000000000000000
--- a/cc/animation/scrollbar_animation_controller.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_
-#define CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_
-
-#include "base/cancelable_callback.h"
-#include "base/memory/weak_ptr.h"
-#include "base/time/time.h"
-#include "cc/base/cc_export.h"
-#include "cc/layers/layer_impl.h"
-#include "ui/gfx/geometry/vector2d_f.h"
-
-namespace cc {
-
-class ScrollbarAnimationController;
-
-class CC_EXPORT ScrollbarAnimationControllerClient {
- public:
- virtual void StartAnimatingScrollbarAnimationController(
- ScrollbarAnimationController* controller) = 0;
- virtual void StopAnimatingScrollbarAnimationController(
- ScrollbarAnimationController* controller) = 0;
- virtual void PostDelayedScrollbarAnimationTask(const base::Closure& task,
- base::TimeDelta delay) = 0;
- virtual void SetNeedsRedrawForScrollbarAnimation() = 0;
-
- protected:
- virtual ~ScrollbarAnimationControllerClient() {}
-};
-
-// This abstract class represents the compositor-side analogy of
-// ScrollbarAnimator. Individual platforms should subclass it to provide
-// specialized implementation.
-class CC_EXPORT ScrollbarAnimationController {
- public:
- virtual ~ScrollbarAnimationController();
-
- void Animate(base::TimeTicks now);
-
- virtual void DidScrollBegin();
- virtual void DidScrollUpdate(bool on_resize);
- virtual void DidScrollEnd();
- virtual void DidMouseMoveOffScrollbar() {}
- virtual void DidMouseMoveNear(float distance) {}
-
- protected:
- ScrollbarAnimationController(LayerImpl* scroll_layer,
- ScrollbarAnimationControllerClient* client,
- base::TimeDelta delay_before_starting,
- base::TimeDelta resize_delay_before_starting,
- base::TimeDelta duration);
-
- virtual void RunAnimationFrame(float progress) = 0;
-
- void StartAnimation();
- void StopAnimation();
-
- LayerImpl* scroll_layer_;
- ScrollbarAnimationControllerClient* client_;
-
- 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_;
-
- bool currently_scrolling_;
- bool scroll_gesture_has_scrolled_;
- base::CancelableClosure delayed_scrollbar_fade_;
-
- base::WeakPtrFactory<ScrollbarAnimationController> weak_factory_;
-};
-
-} // namespace cc
-
-#endif // CC_ANIMATION_SCROLLBAR_ANIMATION_CONTROLLER_H_
« no previous file with comments | « cc/animation/scroll_offset_animation_curve_unittest.cc ('k') | cc/animation/scrollbar_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698