OLD | NEW |
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_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ | 5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ |
6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ | 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ |
7 | 7 |
8 namespace ui { | |
9 class ImplicitAnimationObserver; | |
10 } // namespace ui | |
11 | |
12 namespace ash { | 8 namespace ash { |
13 | 9 |
14 // ScopedOverviewAnimationSettings correctly configures the animation | 10 // ScopedOverviewAnimationSettings correctly configures the animation |
15 // settings for a WmWindow given an OverviewAnimationType. | 11 // settings for a WmWindow given an OverviewAnimationType. |
16 class ScopedOverviewAnimationSettings { | 12 class ScopedOverviewAnimationSettings { |
17 public: | 13 public: |
18 virtual ~ScopedOverviewAnimationSettings() {} | 14 virtual ~ScopedOverviewAnimationSettings() {} |
19 virtual void AddObserver(ui::ImplicitAnimationObserver* observer) = 0; | |
20 }; | 15 }; |
21 | 16 |
22 } // namespace ash | 17 } // namespace ash |
23 | 18 |
24 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ | 19 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ |
OLD | NEW |