| 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_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | |
| 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "ash/common/wm/overview/overview_animation_type.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 class ScopedOverviewAnimationSettings; | |
| 15 class WmWindow; | |
| 16 | |
| 17 // Factory for creating ScopedOverviewAnimationSettings. | |
| 18 class ScopedOverviewAnimationSettingsFactory { | |
| 19 public: | |
| 20 static ScopedOverviewAnimationSettingsFactory* Get(); | |
| 21 | |
| 22 virtual std::unique_ptr<ScopedOverviewAnimationSettings> | |
| 23 CreateOverviewAnimationSettings(OverviewAnimationType animation_type, | |
| 24 WmWindow* window) = 0; | |
| 25 | |
| 26 protected: | |
| 27 ScopedOverviewAnimationSettingsFactory(); | |
| 28 virtual ~ScopedOverviewAnimationSettingsFactory(); | |
| 29 | |
| 30 private: | |
| 31 static ScopedOverviewAnimationSettingsFactory* instance_; | |
| 32 }; | |
| 33 | |
| 34 } // namespace ash | |
| 35 | |
| 36 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | |
| OLD | NEW |