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

Side by Side Diff: ui/aura/client/animation_host.h

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to drwhw Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698