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

Unified Diff: cc/CCScrollbarAnimationController.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/CCScopedThreadProxy.cpp ('k') | cc/CCScrollbarAnimationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScrollbarAnimationController.h
diff --git a/cc/CCScrollbarAnimationController.h b/cc/CCScrollbarAnimationController.h
index bb387d7bf1c76758c26af34aa7c5f06a59aa2cc8..584c8dcf17007ffb4854538f36543c9078beac0e 100644
--- a/cc/CCScrollbarAnimationController.h
+++ b/cc/CCScrollbarAnimationController.h
@@ -2,63 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CCScrollbarAnimationController_h
-#define CCScrollbarAnimationController_h
-
-#include "FloatPoint.h"
-#include "IntSize.h"
-#include <wtf/PassOwnPtr.h>
-
-namespace cc {
-
-class CCLayerImpl;
-class CCScrollbarLayerImpl;
-
-// This abstract class represents the compositor-side analogy of ScrollbarAnimator.
-// Individual platforms should subclass it to provide specialized implementation.
-class CCScrollbarAnimationController {
-public:
- // Implemented by subclass.
- static PassOwnPtr<CCScrollbarAnimationController> create(CCLayerImpl* scrollLayer);
-
- virtual ~CCScrollbarAnimationController();
-
- virtual bool animate(double monotonicTime);
- void didPinchGestureBegin();
- void didPinchGestureUpdate();
- void didPinchGestureEnd();
- void updateScrollOffset(CCLayerImpl* scrollLayer);
-
- void setHorizontalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_horizontalScrollbarLayer = layer; }
- CCScrollbarLayerImpl* horizontalScrollbarLayer() const { return m_horizontalScrollbarLayer; }
-
- void setVerticalScrollbarLayer(CCScrollbarLayerImpl* layer) { m_verticalScrollbarLayer = layer; }
- CCScrollbarLayerImpl* verticalScrollbarLayer() const { return m_verticalScrollbarLayer; }
-
- FloatPoint currentPos() const { return m_currentPos; }
- IntSize totalSize() const { return m_totalSize; }
- IntSize maximum() const { return m_maximum; }
-
- virtual void didPinchGestureBeginAtTime(double monotonicTime) { }
- virtual void didPinchGestureUpdateAtTime(double monotonicTime) { }
- virtual void didPinchGestureEndAtTime(double monotonicTime) { }
- virtual void updateScrollOffsetAtTime(CCLayerImpl* scrollLayer, double monotonicTime);
-
-protected:
- explicit CCScrollbarAnimationController(CCLayerImpl* scrollLayer);
-
-private:
- static IntSize getScrollLayerBounds(const CCLayerImpl*);
-
- // Beware of dangling pointer. Always update these during tree synchronization.
- CCScrollbarLayerImpl* m_horizontalScrollbarLayer;
- CCScrollbarLayerImpl* m_verticalScrollbarLayer;
-
- FloatPoint m_currentPos;
- IntSize m_totalSize;
- IntSize m_maximum;
-};
-
-} // namespace cc
-
-#endif // CCScrollbarAnimationController_h
+// Temporary forwarding header
+#include "cc/scrollbar_animation_controller.h"
« no previous file with comments | « cc/CCScopedThreadProxy.cpp ('k') | cc/CCScrollbarAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698