// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_ #define UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_ #include <memory> #include <utility> #include "base/containers/flat_set.h" #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" #include "base/time/time.h" #include "ui/gfx/animation/animation_export.h" #include "ui/gfx/animation/animation_runner.h" namespace gfx { class AnimationContainerElement; class AnimationContainerObserver; // AnimationContainer is used by Animation to manage the underlying // AnimationRunner. Internally each Animation creates a single // AnimationContainer. You can group a set of Animations into the same // AnimationContainer by way of Animation::SetContainer. Grouping a set of // Animations into the same AnimationContainer ensures they all update and start // at the same time. // // AnimationContainer is ref counted. Each Animation contained within the // AnimationContainer own it. class ANIMATION_EXPORT AnimationContainer : public base::RefCounted<AnimationContainer> { … }; } // namespace gfx #endif // UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_