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 CC_ANIMATION_ANIMATION_REGISTRAR_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_REGISTRAR_H_ |
6 #define CC_ANIMATION_ANIMATION_REGISTRAR_H_ | 6 #define CC_ANIMATION_ANIMATION_REGISTRAR_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void UnregisterAnimationController(LayerAnimationController* controller); | 44 void UnregisterAnimationController(LayerAnimationController* controller); |
45 | 45 |
46 const AnimationControllerMap& active_animation_controllers() const { | 46 const AnimationControllerMap& active_animation_controllers() const { |
47 return active_animation_controllers_; | 47 return active_animation_controllers_; |
48 } | 48 } |
49 | 49 |
50 const AnimationControllerMap& all_animation_controllers() const { | 50 const AnimationControllerMap& all_animation_controllers() const { |
51 return all_animation_controllers_; | 51 return all_animation_controllers_; |
52 } | 52 } |
53 | 53 |
| 54 void set_supports_scroll_animations(bool supports_scroll_animations) { |
| 55 supports_scroll_animations_ = supports_scroll_animations; |
| 56 } |
| 57 |
| 58 bool supports_scroll_animations() { return supports_scroll_animations_; } |
| 59 |
54 private: | 60 private: |
55 AnimationRegistrar(); | 61 AnimationRegistrar(); |
56 | 62 |
57 AnimationControllerMap active_animation_controllers_; | 63 AnimationControllerMap active_animation_controllers_; |
58 AnimationControllerMap all_animation_controllers_; | 64 AnimationControllerMap all_animation_controllers_; |
59 | 65 |
| 66 bool supports_scroll_animations_; |
| 67 |
60 DISALLOW_COPY_AND_ASSIGN(AnimationRegistrar); | 68 DISALLOW_COPY_AND_ASSIGN(AnimationRegistrar); |
61 }; | 69 }; |
62 | 70 |
63 } // namespace cc | 71 } // namespace cc |
64 | 72 |
65 #endif // CC_ANIMATION_ANIMATION_REGISTRAR_H_ | 73 #endif // CC_ANIMATION_ANIMATION_REGISTRAR_H_ |
OLD | NEW |