OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | 5 #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |
6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | 6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/wm/overview/overview_animation_type.h" | 10 #include "ash/wm/overview/overview_animation_type.h" |
11 | 11 |
| 12 namespace aura { |
| 13 class Window; |
| 14 } |
| 15 |
12 namespace ash { | 16 namespace ash { |
13 | 17 |
14 class ScopedOverviewAnimationSettings; | 18 class ScopedOverviewAnimationSettings; |
15 class WmWindow; | |
16 | 19 |
17 // Factory for creating ScopedOverviewAnimationSettings. | 20 // Factory for creating ScopedOverviewAnimationSettings. |
18 class ScopedOverviewAnimationSettingsFactory { | 21 class ScopedOverviewAnimationSettingsFactory { |
19 public: | 22 public: |
20 static ScopedOverviewAnimationSettingsFactory* Get(); | 23 static ScopedOverviewAnimationSettingsFactory* Get(); |
21 | 24 |
22 virtual std::unique_ptr<ScopedOverviewAnimationSettings> | 25 virtual std::unique_ptr<ScopedOverviewAnimationSettings> |
23 CreateOverviewAnimationSettings(OverviewAnimationType animation_type, | 26 CreateOverviewAnimationSettings(OverviewAnimationType animation_type, |
24 WmWindow* window) = 0; | 27 aura::Window* window) = 0; |
25 | 28 |
26 protected: | 29 protected: |
27 ScopedOverviewAnimationSettingsFactory(); | 30 ScopedOverviewAnimationSettingsFactory(); |
28 virtual ~ScopedOverviewAnimationSettingsFactory(); | 31 virtual ~ScopedOverviewAnimationSettingsFactory(); |
29 | 32 |
30 private: | 33 private: |
31 static ScopedOverviewAnimationSettingsFactory* instance_; | 34 static ScopedOverviewAnimationSettingsFactory* instance_; |
32 }; | 35 }; |
33 | 36 |
34 } // namespace ash | 37 } // namespace ash |
35 | 38 |
36 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | 39 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |
OLD | NEW |