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

Unified Diff: cc/scrollbar_animation_controller_linear_fade.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_animation_controller_linear_fade.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_animation_controller_linear_fade.h
diff --git a/cc/scrollbar_animation_controller_linear_fade.h b/cc/scrollbar_animation_controller_linear_fade.h
deleted file mode 100644
index 81dba2576a73ac3ca8f56c61e0429e3411d45db1..0000000000000000000000000000000000000000
--- a/cc/scrollbar_animation_controller_linear_fade.h
+++ /dev/null
@@ -1,50 +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_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_
-#define CC_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/base/cc_export.h"
-#include "cc/scrollbar_animation_controller.h"
-
-namespace cc {
-class LayerImpl;
-
-class CC_EXPORT ScrollbarAnimationControllerLinearFade : public ScrollbarAnimationController {
-public:
- static scoped_ptr<ScrollbarAnimationControllerLinearFade> create(LayerImpl* scrollLayer, base::TimeDelta fadeoutDelay, base::TimeDelta fadeoutLength);
-
- virtual ~ScrollbarAnimationControllerLinearFade();
-
- // ScrollbarAnimationController overrides.
- virtual bool isScrollGestureInProgress() const OVERRIDE;
- virtual bool isAnimating() const OVERRIDE;
- virtual base::TimeDelta delayBeforeStart(base::TimeTicks now) const OVERRIDE;
-
- virtual bool animate(base::TimeTicks) OVERRIDE;
- virtual void didScrollGestureBegin() OVERRIDE;
- virtual void didScrollGestureEnd(base::TimeTicks now) OVERRIDE;
- virtual void didProgrammaticallyUpdateScroll(base::TimeTicks now) OVERRIDE;
-
-protected:
- ScrollbarAnimationControllerLinearFade(LayerImpl* scrollLayer, base::TimeDelta fadeoutDelay, base::TimeDelta fadeoutLength);
-
-private:
- float opacityAtTime(base::TimeTicks);
-
- LayerImpl* m_scrollLayer;
-
- base::TimeTicks m_lastAwakenTime;
- bool m_scrollGestureInProgress;
-
- base::TimeDelta m_fadeoutDelay;
- base::TimeDelta m_fadeoutLength;
-
- double m_currentTimeForTesting;
-};
-
-} // namespace cc
-
-#endif // CC_SCROLLBAR_ANIMATION_CONTROLLER_LINEAR_FADE_H_
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_animation_controller_linear_fade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698