Chromium Code Reviews| Index: ui/aura/client/animation_host.h |
| diff --git a/ui/aura/client/animation_host.h b/ui/aura/client/animation_host.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a6978f8f6aba3a4b79a81b7a465ce0084105961d |
| --- /dev/null |
| +++ b/ui/aura/client/animation_host.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_AURA_CLIENT_ANIMATION_HOST_H_ |
| +#define UI_AURA_CLIENT_ANIMATION_HOST_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "ui/aura/aura_export.h" |
| + |
| +namespace gfx { |
| +class Rect; |
| +} |
| + |
| +namespace aura { |
| +class Window; |
| +namespace client { |
| + |
| +class AURA_EXPORT AnimationHost { |
|
Ben Goodger (Google)
2013/03/18 22:32:06
document purpose.
scottmg
2013/03/19 04:12:36
Done.
|
| + public: |
| + // Ensure the host window is at least this large so that transitions have |
| + // sufficient space. |
| + virtual void SetHostTransitionBounds(const gfx::Rect& bounds) = 0; |
| + |
| + // Called after the window has faded out on a hide. |
| + virtual void OnWindowHidingAnimationCompleted() = 0; |
| + |
| + protected: |
| + virtual ~AnimationHost() {} |
| +}; |
| + |
| +AURA_EXPORT void SetAnimationHost(Window* window, |
| + AnimationHost* animation_host); |
| +AURA_EXPORT AnimationHost* GetAnimationHost(Window* window); |
| + |
| +} // namespace client |
| +} // namespace aura |
| + |
| +#endif // UI_AURA_CLIENT_ANIMATION_HOST_H_ |