| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CCScrollbarAnimationController_h | 5 #ifndef CCScrollbarAnimationController_h |
| 6 #define CCScrollbarAnimationController_h | 6 #define CCScrollbarAnimationController_h |
| 7 | 7 |
| 8 #include "FloatPoint.h" | 8 #include "FloatPoint.h" |
| 9 #include "IntSize.h" | 9 #include "IntSize.h" |
| 10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace cc { |
| 13 | 13 |
| 14 class CCLayerImpl; | 14 class CCLayerImpl; |
| 15 class CCScrollbarLayerImpl; | 15 class CCScrollbarLayerImpl; |
| 16 | 16 |
| 17 // This abstract class represents the compositor-side analogy of ScrollbarAnimat
or. | 17 // This abstract class represents the compositor-side analogy of ScrollbarAnimat
or. |
| 18 // Individual platforms should subclass it to provide specialized implementation
. | 18 // Individual platforms should subclass it to provide specialized implementation
. |
| 19 class CCScrollbarAnimationController { | 19 class CCScrollbarAnimationController { |
| 20 public: | 20 public: |
| 21 // Implemented by subclass. | 21 // Implemented by subclass. |
| 22 static PassOwnPtr<CCScrollbarAnimationController> create(CCLayerImpl* scroll
Layer); | 22 static PassOwnPtr<CCScrollbarAnimationController> create(CCLayerImpl* scroll
Layer); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 // Beware of dangling pointer. Always update these during tree synchronizati
on. | 53 // Beware of dangling pointer. Always update these during tree synchronizati
on. |
| 54 CCScrollbarLayerImpl* m_horizontalScrollbarLayer; | 54 CCScrollbarLayerImpl* m_horizontalScrollbarLayer; |
| 55 CCScrollbarLayerImpl* m_verticalScrollbarLayer; | 55 CCScrollbarLayerImpl* m_verticalScrollbarLayer; |
| 56 | 56 |
| 57 FloatPoint m_currentPos; | 57 FloatPoint m_currentPos; |
| 58 IntSize m_totalSize; | 58 IntSize m_totalSize; |
| 59 IntSize m_maximum; | 59 IntSize m_maximum; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace WebCore | 62 } // namespace cc |
| 63 | 63 |
| 64 #endif // CCScrollbarAnimationController_h | 64 #endif // CCScrollbarAnimationController_h |
| OLD | NEW |