Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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. | |
| 4 | |
| 5 #ifndef UI_AURA_CLIENT_ANIMATION_HOST_H_ | |
| 6 #define UI_AURA_CLIENT_ANIMATION_HOST_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "ui/aura/aura_export.h" | |
| 10 | |
| 11 namespace gfx { | |
| 12 class Rect; | |
| 13 } | |
| 14 | |
| 15 namespace aura { | |
| 16 class Window; | |
| 17 namespace client { | |
| 18 | |
| 19 class AURA_EXPORT AnimationHost { | |
|
Ben Goodger (Google)
2013/03/18 22:32:06
document purpose.
scottmg
2013/03/19 04:12:36
Done.
| |
| 20 public: | |
| 21 // Ensure the host window is at least this large so that transitions have | |
| 22 // sufficient space. | |
| 23 virtual void SetHostTransitionBounds(const gfx::Rect& bounds) = 0; | |
| 24 | |
| 25 // Called after the window has faded out on a hide. | |
| 26 virtual void OnWindowHidingAnimationCompleted() = 0; | |
| 27 | |
| 28 protected: | |
| 29 virtual ~AnimationHost() {} | |
| 30 }; | |
| 31 | |
| 32 AURA_EXPORT void SetAnimationHost(Window* window, | |
| 33 AnimationHost* animation_host); | |
| 34 AURA_EXPORT AnimationHost* GetAnimationHost(Window* window); | |
| 35 | |
| 36 } // namespace client | |
| 37 } // namespace aura | |
| 38 | |
| 39 #endif // UI_AURA_CLIENT_ANIMATION_HOST_H_ | |
| OLD | NEW |