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