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

Side by Side Diff: ui/wm/public/animation_host.h

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/wm/public/activation_delegate.h ('k') | ui/wm/public/cursor_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_WM_PUBLIC_ANIMATION_HOST_H_ 5 #ifndef UI_WM_PUBLIC_ANIMATION_HOST_H_
6 #define UI_WM_PUBLIC_ANIMATION_HOST_H_ 6 #define UI_WM_PUBLIC_ANIMATION_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/wm/wm_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Vector2d; 12 class Vector2d;
13 } 13 }
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
17 namespace client { 17 namespace client {
18 18
19 // Interface for top level window host of animation. Communicates additional 19 // Interface for top level window host of animation. Communicates additional
20 // bounds required for animation as well as animation completion for deferring 20 // bounds required for animation as well as animation completion for deferring
21 // window closes on hide. 21 // window closes on hide.
22 class AURA_EXPORT AnimationHost { 22 class WM_EXPORT AnimationHost {
23 public: 23 public:
24 // Ensure the host window is at least this large so that transitions have 24 // Ensure the host window is at least this large so that transitions have
25 // sufficient space. 25 // sufficient space.
26 // The |top_left_delta| parameter contains the offset to be subtracted from 26 // The |top_left_delta| parameter contains the offset to be subtracted from
27 // the window bounds for the top left corner. 27 // the window bounds for the top left corner.
28 // The |bottom_right_delta| parameter contains the offset to be added to the 28 // The |bottom_right_delta| parameter contains the offset to be added to the
29 // window bounds for the bottom right. 29 // window bounds for the bottom right.
30 virtual void SetHostTransitionOffsets( 30 virtual void SetHostTransitionOffsets(
31 const gfx::Vector2d& top_left_delta, 31 const gfx::Vector2d& top_left_delta,
32 const gfx::Vector2d& bottom_right_delta) = 0; 32 const gfx::Vector2d& bottom_right_delta) = 0;
33 33
34 // Called after the window has faded out on a hide. 34 // Called after the window has faded out on a hide.
35 virtual void OnWindowHidingAnimationCompleted() = 0; 35 virtual void OnWindowHidingAnimationCompleted() = 0;
36 36
37 protected: 37 protected:
38 virtual ~AnimationHost() {} 38 virtual ~AnimationHost() {}
39 }; 39 };
40 40
41 AURA_EXPORT void SetAnimationHost(Window* window, 41 WM_EXPORT void SetAnimationHost(Window* window, AnimationHost* animation_host);
42 AnimationHost* animation_host); 42 WM_EXPORT AnimationHost* GetAnimationHost(Window* window);
43 AURA_EXPORT AnimationHost* GetAnimationHost(Window* window);
44 43
45 } // namespace client 44 } // namespace client
46 } // namespace aura 45 } // namespace aura
47 46
48 #endif // UI_WM_PUBLIC_ANIMATION_HOST_H_ 47 #endif // UI_WM_PUBLIC_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « ui/wm/public/activation_delegate.h ('k') | ui/wm/public/cursor_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698