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

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: rebase 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
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/animation_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Interface for top level window host of animation. Communicates additional
20 // bounds required for animation as well as animation completion for deferring
21 // window closes on hide.
22 class AURA_EXPORT AnimationHost {
23 public:
24 // Ensure the host window is at least this large so that transitions have
25 // sufficient space.
26 virtual void SetHostTransitionBounds(const gfx::Rect& bounds) = 0;
27
28 // Called after the window has faded out on a hide.
29 virtual void OnWindowHidingAnimationCompleted() = 0;
30
31 protected:
32 virtual ~AnimationHost() {}
33 };
34
35 AURA_EXPORT void SetAnimationHost(Window* window,
36 AnimationHost* animation_host);
37 AURA_EXPORT AnimationHost* GetAnimationHost(Window* window);
38
39 } // namespace client
40 } // namespace aura
41
42 #endif // UI_AURA_CLIENT_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698