Chromium Code Reviews| 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 ash { | |
| 13 | |
| 14 class ScopedOverviewAnimationSettings; | |
| 15 | |
| 16 namespace wm { | |
| 17 class WmWindow; | |
| 18 } | |
| 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 wm::WmWindow* window) = 0; | |
| 28 | |
| 29 protected: | |
| 30 ScopedOverviewAnimationSettingsFactory(); | |
| 31 virtual ~ScopedOverviewAnimationSettingsFactory(); | |
| 32 | |
| 33 private: | |
| 34 static ScopedOverviewAnimationSettingsFactory* instance_; | |
| 35 }; | |
|
James Cook
2016/05/27 00:02:51
DISALLOW_COPY_AND_ASSIGN?
sky
2016/05/27 03:18:03
It's my understanding that is not needed because o
James Cook
2016/05/27 16:30:27
Nope, you're right.
| |
| 36 | |
| 37 } // namespace ash | |
| 38 | |
| 39 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ | |
| OLD | NEW |