Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ash/wm/overview/scoped_overview_animation_settings_factory.h

Issue 2901903003: [ash] Cleanup of ScopedOverviewAnimationSettings (Closed)
Patch Set: [ash] Cleanup of ScopedOverviewAnimationSettings (nuked factory) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698