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

Unified Diff: cc/scrollbar_animation_controller_linear_fade.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/scrollbar_animation_controller.cc ('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
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..749dca5e3f3493d186f151c2f4008f0ab1d1f253 100644
--- a/cc/scrollbar_animation_controller_linear_fade.h
+++ b/cc/scrollbar_animation_controller_linear_fade.h
@@ -1,3 +1,39 @@
// 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 CCScrollbarAnimationControllerLinearFade_h
+#define CCScrollbarAnimationControllerLinearFade_h
+
+#include "CCScrollbarAnimationController.h"
+
+namespace cc {
+
+class CCScrollbarAnimationControllerLinearFade : public CCScrollbarAnimationController {
+public:
+ static PassOwnPtr<CCScrollbarAnimationControllerLinearFade> create(CCLayerImpl* scrollLayer, double fadeoutDelay, double fadeoutLength);
+
+ virtual ~CCScrollbarAnimationControllerLinearFade();
+
+ virtual bool animate(double monotonicTime) OVERRIDE;
+
+ virtual void didPinchGestureUpdateAtTime(double monotonicTime) OVERRIDE;
+ virtual void didPinchGestureEndAtTime(double monotonicTime) OVERRIDE;
+ virtual void updateScrollOffsetAtTime(CCLayerImpl* scrollLayer, double monotonicTime) OVERRIDE;
+
+protected:
+ CCScrollbarAnimationControllerLinearFade(CCLayerImpl* scrollLayer, double fadeoutDelay, double fadeoutLength);
+
+private:
+ float opacityAtTime(double monotonicTime);
+
+ double m_lastAwakenTime;
+ bool m_pinchGestureInEffect;
+
+ double m_fadeoutDelay;
+ double m_fadeoutLength;
+};
+
+} // namespace cc
+
+#endif // CCScrollbarAnimationControllerLinearFade_h
« no previous file with comments | « cc/scrollbar_animation_controller.cc ('k') | cc/scrollbar_animation_controller_linear_fade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698