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