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

Side by Side Diff: ash/wm/overview/scoped_overview_animation_settings.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
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/overview/scoped_overview_animation_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ 6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
7 7
8 #include <memory>
9
10 #include "ash/wm/overview/overview_animation_type.h"
11 #include "base/macros.h"
12
13 namespace aura {
14 class Window;
15 } // namespace aura
16
8 namespace ui { 17 namespace ui {
9 class ImplicitAnimationObserver; 18 class ImplicitAnimationObserver;
19 class ScopedLayerAnimationSettings;
10 } // namespace ui 20 } // namespace ui
11 21
12 namespace ash { 22 namespace ash {
13 23
14 // ScopedOverviewAnimationSettings correctly configures the animation 24 // ScopedOverviewAnimationSettings correctly configures the animation
15 // settings for a WmWindow given an OverviewAnimationType. 25 // settings for an aura::Window given an OverviewAnimationType.
16 class ScopedOverviewAnimationSettings { 26 class ScopedOverviewAnimationSettings {
17 public: 27 public:
18 virtual ~ScopedOverviewAnimationSettings() {} 28 ScopedOverviewAnimationSettings(OverviewAnimationType animation_type,
19 virtual void AddObserver(ui::ImplicitAnimationObserver* observer) = 0; 29 aura::Window* window);
30 ~ScopedOverviewAnimationSettings();
31 void AddObserver(ui::ImplicitAnimationObserver* observer);
32
33 private:
34 // The managed animation settings.
35 std::unique_ptr<ui::ScopedLayerAnimationSettings> animation_settings_;
36
37 DISALLOW_COPY_AND_ASSIGN(ScopedOverviewAnimationSettings);
20 }; 38 };
21 39
22 } // namespace ash 40 } // namespace ash
23 41
24 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ 42 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/overview/scoped_overview_animation_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698