| 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 CCLayerAnimationController_h | 5 #ifndef CCLayerAnimationController_h |
| 6 #define CCLayerAnimationController_h | 6 #define CCLayerAnimationController_h |
| 7 | 7 |
| 8 #include "cc/animation_events.h" | 8 #include "cc/animation_events.h" |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "cc/scoped_ptr_vector.h" | 13 #include "cc/scoped_ptr_vector.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebTransformationMatrix; | 16 class WebTransformationMatrix; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class Animation; | 21 class Animation; |
| 22 class IntSize; | |
| 23 class KeyframeValueList; | 22 class KeyframeValueList; |
| 24 | 23 |
| 25 class LayerAnimationControllerClient { | 24 class LayerAnimationControllerClient { |
| 26 public: | 25 public: |
| 27 virtual ~LayerAnimationControllerClient() { } | 26 virtual ~LayerAnimationControllerClient() { } |
| 28 | 27 |
| 29 virtual int id() const = 0; | 28 virtual int id() const = 0; |
| 30 virtual void setOpacityFromAnimation(float) = 0; | 29 virtual void setOpacityFromAnimation(float) = 0; |
| 31 virtual float opacity() const = 0; | 30 virtual float opacity() const = 0; |
| 32 virtual void setTransformFromAnimation(const WebKit::WebTransformationMatrix
&) = 0; | 31 virtual void setTransformFromAnimation(const WebKit::WebTransformationMatrix
&) = 0; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 102 |
| 104 LayerAnimationControllerClient* m_client; | 103 LayerAnimationControllerClient* m_client; |
| 105 ScopedPtrVector<ActiveAnimation> m_activeAnimations; | 104 ScopedPtrVector<ActiveAnimation> m_activeAnimations; |
| 106 | 105 |
| 107 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 106 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace cc | 109 } // namespace cc |
| 111 | 110 |
| 112 #endif // CCLayerAnimationController_h | 111 #endif // CCLayerAnimationController_h |
| OLD | NEW |