cc: Initialize wait_for_beginframe_interval in tests.
[chromium-blink-merge.git] / ash / wm / overview / scoped_overview_animation_settings.h
bloba558c7ee6389a535e63b9cb45310a870788956a0
1 // Copyright 2014 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.
5 #ifndef ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
6 #define ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_
8 #include "ash/wm/overview/overview_animation_type.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/compositor/scoped_layer_animation_settings.h"
13 namespace aura {
14 class Window;
15 } // namespace aura
17 namespace ash {
19 // The ScopedOveriewAnimationSettings class correctly configures the animation
20 // settings for an aura::Window for a given OverviewAnimationType.
21 class ScopedOverviewAnimationSettings {
22 public:
23 ScopedOverviewAnimationSettings(OverviewAnimationType animation_type,
24 aura::Window* window);
25 virtual ~ScopedOverviewAnimationSettings();
27 private:
28 // The managed animation settings.
29 ui::ScopedLayerAnimationSettings animation_settings_;
31 DISALLOW_COPY_AND_ASSIGN(ScopedOverviewAnimationSettings);
34 } // namespace ash
36 #endif // ASH_WM_OVERVIEW_SCOPED_OVERVIEW_ANIMATION_SETTINGS_H_