| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ |
| 6 #define UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ | 6 #define UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 |
| 9 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
| 10 #include "ui/compositor/compositor_export.h" | 11 #include "ui/compositor/compositor_export.h" |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 | 14 |
| 14 // Attach CC animations using this interface. | 15 // Attach CC animations using this interface. |
| 15 class COMPOSITOR_EXPORT LayerThreadedAnimationDelegate { | 16 class COMPOSITOR_EXPORT LayerThreadedAnimationDelegate { |
| 16 public: | 17 public: |
| 17 virtual void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) = 0; | 18 virtual void AddThreadedAnimation( |
| 19 std::unique_ptr<cc::Animation> animation) = 0; |
| 18 virtual void RemoveThreadedAnimation(int animation_id) = 0; | 20 virtual void RemoveThreadedAnimation(int animation_id) = 0; |
| 19 | 21 |
| 20 protected: | 22 protected: |
| 21 virtual ~LayerThreadedAnimationDelegate() {} | 23 virtual ~LayerThreadedAnimationDelegate() {} |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 } // namespace ui | 26 } // namespace ui |
| 25 | 27 |
| 26 #endif // UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ | 28 #endif // UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ |
| OLD | NEW |