blob: 3250725cdc2d1613aae0699dcca637d924f477b9 [file]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_ANIMATION_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_ANIMATION_EXAMPLE_H_
#include <memory>
#include "ui/views/animation/animation_abort_handle.h"
#include "ui/views/examples/example_base.h"
namespace views {
namespace examples {
class VIEWS_EXAMPLES_EXPORT AnimationExample : public ExampleBase {
public:
AnimationExample();
AnimationExample(const AnimationExample&) = delete;
AnimationExample& operator=(const AnimationExample&) = delete;
~AnimationExample() override;
// ExampleBase:
void CreateExampleView(View* container) override;
private:
std::unique_ptr<AnimationAbortHandle> abort_handle_;
};
} // namespace examples
} // namespace views
#endif // UI_VIEWS_EXAMPLES_ANIMATION_EXAMPLE_H_