// 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_H_ #define UI_GFX_ANIMATION_ANIMATION_H_ #include <optional> #include "base/memory/raw_ptr.h" #include "base/memory/scoped_refptr.h" #include "base/time/time.h" #include "ui/gfx/animation/animation_container_element.h" #include "ui/gfx/animation/animation_export.h" namespace gfx { class Rect; } namespace gfx { class AnimationContainer; class AnimationDelegate; class AnimationTestApi; // Base class used in implementing animations. You only need use this class if // you're implementing a new animation type, otherwise you'll likely want one of // LinearAnimation, SlideAnimation, ThrobAnimation or MultiAnimation. // // To subclass override Step, which is invoked as the animation progresses and // GetCurrentValue() to return the value appropriate to the animation. class ANIMATION_EXPORT Animation : public AnimationContainerElement { … }; } // namespace gfx #endif // UI_GFX_ANIMATION_ANIMATION_H_