// Copyright 2021 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_VIEWS_ANIMATION_ANIMATION_ABORT_HANDLE_H_ #define UI_VIEWS_ANIMATION_ANIMATION_ABORT_HANDLE_H_ #include <set> #include "base/gtest_prod_util.h" #include "base/memory/raw_ptr.h" #include "ui/compositor/layer_observer.h" #include "ui/views/animation/animation_builder.h" #include "ui/views/views_export.h" namespace ui { class Layer; } // namespace ui namespace views { // A handle that aborts associated animations on destruction. // Caveat: ALL properties will be aborted on handle destruction, // including those not initiated by the builder. class VIEWS_EXPORT AnimationAbortHandle : public ui::LayerObserver { … }; } // namespace views #endif // UI_VIEWS_ANIMATION_ANIMATION_ABORT_HANDLE_H_