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

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 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
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 { 12 namespace aura {
13 class Window; 13 class Window;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 17
18 class ScopedOverviewAnimationSettings; 18 class ScopedOverviewAnimationSettings;
19 19
20 // Factory for creating ScopedOverviewAnimationSettings. 20 // Factory for creating ScopedOverviewAnimationSettings.
21 class ScopedOverviewAnimationSettingsFactory { 21 class ScopedOverviewAnimationSettingsFactory {
msw 2017/05/24 17:39:16 We don't really need a factory at all, afaict. Use
varkha 2017/05/24 18:29:51 Done.
22 public: 22 public:
23 static ScopedOverviewAnimationSettingsFactory* Get(); 23 static ScopedOverviewAnimationSettingsFactory* Get();
24 24
25 virtual std::unique_ptr<ScopedOverviewAnimationSettings>
26 CreateOverviewAnimationSettings(OverviewAnimationType animation_type,
27 aura::Window* window) = 0;
28
29 protected:
30 ScopedOverviewAnimationSettingsFactory(); 25 ScopedOverviewAnimationSettingsFactory();
31 virtual ~ScopedOverviewAnimationSettingsFactory(); 26 virtual ~ScopedOverviewAnimationSettingsFactory();
32 27
28 std::unique_ptr<ScopedOverviewAnimationSettings>
29 CreateOverviewAnimationSettings(OverviewAnimationType animation_type,
30 aura::Window* window);
31
33 private: 32 private:
34 static ScopedOverviewAnimationSettingsFactory* instance_; 33 static ScopedOverviewAnimationSettingsFactory* instance_;
35 }; 34 };
36 35
37 } // namespace ash 36 } // namespace ash
38 37
39 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_ 38 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698