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

Side by Side Diff: ash/wm/window_animations.h

Issue 10444014: ash: Improved window maximize/restore animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix lock screen, app windows Created 8 years, 6 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 | « ash/wm/base_layout_manager.cc ('k') | ash/wm/window_animations.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_WINDOW_ANIMATIONS_H_ 5 #ifndef ASH_WM_WINDOW_ANIMATIONS_H_
6 #define ASH_WM_WINDOW_ANIMATIONS_H_ 6 #define ASH_WM_WINDOW_ANIMATIONS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "base/time.h"
11 10
12 namespace aura { 11 namespace aura {
13 class Window; 12 class Window;
14 } 13 }
15 14 namespace base {
15 class TimeDelta;
16 }
17 namespace gfx {
18 class Rect;
19 }
16 namespace ui { 20 namespace ui {
17 class ImplicitAnimationObserver; 21 class ImplicitAnimationObserver;
18 } 22 }
19 23
20 namespace ash { 24 namespace ash {
21 25
22 // A variety of canned animations for window transitions. 26 // A variety of canned animations for window transitions.
23 enum WindowVisibilityAnimationType { 27 enum WindowVisibilityAnimationType {
24 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system 28 WINDOW_VISIBILITY_ANIMATION_TYPE_DEFAULT = 0, // Default. Lets the system
25 // decide based on window 29 // decide based on window
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 69
66 // Creates an ImplicitAnimationObserver that takes ownership of the layers 70 // Creates an ImplicitAnimationObserver that takes ownership of the layers
67 // associated with a Window so that the animation can continue after the Window 71 // associated with a Window so that the animation can continue after the Window
68 // has been destroyed. 72 // has been destroyed.
69 // The returned object deletes itself when the animations are done. 73 // The returned object deletes itself when the animations are done.
70 ASH_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver( 74 ASH_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver(
71 aura::Window* window); 75 aura::Window* window);
72 76
73 namespace internal { 77 namespace internal {
74 78
79 // Animate a cross-fade of |window| from its current bounds to |new_bounds|.
80 ASH_EXPORT void CrossFadeToBounds(aura::Window* window,
81 const gfx::Rect& new_bounds);
82
75 // Returns false if the |window| didn't animate. 83 // Returns false if the |window| didn't animate.
76 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( 84 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged(
77 aura::Window* window, bool visible); 85 aura::Window* window, bool visible);
78 86
79 } // namespace internal 87 } // namespace internal
80 } // namespace ash 88 } // namespace ash
81 89
82 90
83 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ 91 #endif // ASH_WM_WINDOW_ANIMATIONS_H_
OLDNEW
« no previous file with comments | « ash/wm/base_layout_manager.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698