#ifndef UI_WM_CORE_SCOPED_ANIMATION_DISABLER_H_
#define UI_WM_CORE_SCOPED_ANIMATION_DISABLER_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
namespace aura {
class Window;
}
namespace wm {
class COMPONENT_EXPORT(UI_WM) ScopedAnimationDisabler {
public:
explicit ScopedAnimationDisabler(aura::Window* window);
ScopedAnimationDisabler(const ScopedAnimationDisabler&) = delete;
ScopedAnimationDisabler& operator=(const ScopedAnimationDisabler&) = delete;
~ScopedAnimationDisabler();
private:
const raw_ptr<aura::Window> window_;
bool was_animation_enabled_ = false;
};
}
#endif