Chromium Code Reviews| Index: ash/wm/overview/scoped_overview_animation_settings.h |
| diff --git a/ash/wm/overview/scoped_overview_animation_settings.h b/ash/wm/overview/scoped_overview_animation_settings.h |
| index a8898bfb45190bb587673c19781fc0d1ab9af912..37cd083d34e51b8d4097e184606d1d29536c5570 100644 |
| --- a/ash/wm/overview/scoped_overview_animation_settings.h |
| +++ b/ash/wm/overview/scoped_overview_animation_settings.h |
| @@ -5,8 +5,18 @@ |
| #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ |
| #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ |
| +#include <memory> |
| + |
| +#include "ash/wm/overview/overview_animation_type.h" |
| +#include "base/macros.h" |
| + |
| +namespace aura { |
| +class Window; |
| +} // namespace aura |
| + |
| namespace ui { |
| class ImplicitAnimationObserver; |
| +class ScopedLayerAnimationSettings; |
| } // namespace ui |
| namespace ash { |
| @@ -15,8 +25,16 @@ namespace ash { |
| // settings for a WmWindow given an OverviewAnimationType. |
|
msw
2017/05/24 17:39:16
nit: "an aura::Window,"
varkha
2017/05/24 18:29:51
Done.
|
| class ScopedOverviewAnimationSettings { |
| public: |
| - virtual ~ScopedOverviewAnimationSettings() {} |
| - virtual void AddObserver(ui::ImplicitAnimationObserver* observer) = 0; |
| + ScopedOverviewAnimationSettings(OverviewAnimationType animation_type, |
| + aura::Window* window); |
| + ~ScopedOverviewAnimationSettings(); |
| + void AddObserver(ui::ImplicitAnimationObserver* observer); |
| + |
| + private: |
| + // The managed animation settings. |
| + std::unique_ptr<ui::ScopedLayerAnimationSettings> animation_settings_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ScopedOverviewAnimationSettings); |
| }; |
| } // namespace ash |