| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_AURA_H_ | |
| 6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_AURA_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/wm/overview/overview_animation_type.h" | |
| 11 #include "ash/wm/overview/scoped_overview_animation_settings.h" | |
| 12 #include "base/macros.h" | |
| 13 | |
| 14 namespace aura { | |
| 15 class Window; | |
| 16 } // namespace aura | |
| 17 | |
| 18 namespace ui { | |
| 19 class ScopedLayerAnimationSettings; | |
| 20 } // namespace ui | |
| 21 | |
| 22 namespace ash { | |
| 23 | |
| 24 // ScopedOverviewAnimationSettingsfor aura. | |
| 25 class ScopedOverviewAnimationSettingsAura | |
| 26 : public ScopedOverviewAnimationSettings { | |
| 27 public: | |
| 28 ScopedOverviewAnimationSettingsAura(OverviewAnimationType animation_type, | |
| 29 aura::Window* window); | |
| 30 ~ScopedOverviewAnimationSettingsAura() override; | |
| 31 void AddObserver(ui::ImplicitAnimationObserver* observer) override; | |
| 32 | |
| 33 private: | |
| 34 // The managed animation settings. | |
| 35 std::unique_ptr<ui::ScopedLayerAnimationSettings> animation_settings_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(ScopedOverviewAnimationSettingsAura); | |
| 38 }; | |
| 39 | |
| 40 } // namespace ash | |
| 41 | |
| 42 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_AURA_H_ | |
| OLD | NEW |