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

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

Issue 2012343002: Converts overview to use common ash types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/wm/overview/DEPS ('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 2014 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 "ash/wm/overview/overview_animation_type.h"
9 #include "base/macros.h"
10 #include "ui/compositor/scoped_layer_animation_settings.h"
11
12 namespace aura {
13 class Window;
14 } // namespace aura
15
16 namespace ash { 8 namespace ash {
17 9
18 // The ScopedOveriewAnimationSettings class correctly configures the animation 10 // ScopedOverviewAnimationSettings correctly configures the animation
19 // settings for an aura::Window for a given OverviewAnimationType. 11 // settings for a WmWindow given an OverviewAnimationType.
20 class ScopedOverviewAnimationSettings { 12 class ScopedOverviewAnimationSettings {
21 public: 13 public:
22 ScopedOverviewAnimationSettings(OverviewAnimationType animation_type, 14 virtual ~ScopedOverviewAnimationSettings() {}
23 aura::Window* window);
24 virtual ~ScopedOverviewAnimationSettings();
25
26 private:
27 // The managed animation settings.
28 ui::ScopedLayerAnimationSettings animation_settings_;
29
30 DISALLOW_COPY_AND_ASSIGN(ScopedOverviewAnimationSettings);
31 }; 15 };
32 16
33 } // namespace ash 17 } // namespace ash
34 18
35 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_ 19 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/DEPS ('k') | ash/wm/overview/scoped_overview_animation_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698