Chromium Code Reviews| Index: ash/wm/overview/scoped_overview_animation_settings_factory.h |
| diff --git a/ash/wm/overview/scoped_overview_animation_settings_factory.h b/ash/wm/overview/scoped_overview_animation_settings_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..007ce7cd751fd36a72ef8abd1b6177670441177b |
| --- /dev/null |
| +++ b/ash/wm/overview/scoped_overview_animation_settings_factory.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |
| +#define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |
| + |
| +#include <memory> |
| + |
| +#include "ash/wm/overview/overview_animation_type.h" |
| + |
| +namespace ash { |
| + |
| +class ScopedOverviewAnimationSettings; |
| + |
| +namespace wm { |
| +class WmWindow; |
| +} |
| + |
| +// Factory for creating ScopedOverviewAnimationSettings. |
| +class ScopedOverviewAnimationSettingsFactory { |
| + public: |
| + static ScopedOverviewAnimationSettingsFactory* Get(); |
| + |
| + virtual std::unique_ptr<ScopedOverviewAnimationSettings> |
| + CreateOverviewAnimationSettings(OverviewAnimationType animation_type, |
| + wm::WmWindow* window) = 0; |
| + |
| + protected: |
| + ScopedOverviewAnimationSettingsFactory(); |
| + virtual ~ScopedOverviewAnimationSettingsFactory(); |
| + |
| + private: |
| + static ScopedOverviewAnimationSettingsFactory* instance_; |
| +}; |
|
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.
|
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ |