OLD | NEW |
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 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 namespace aura { | 10 namespace aura { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 enum WorkspaceAnimationDirection { | 95 enum WorkspaceAnimationDirection { |
96 WORKSPACE_ANIMATE_UP, | 96 WORKSPACE_ANIMATE_UP, |
97 WORKSPACE_ANIMATE_DOWN, | 97 WORKSPACE_ANIMATE_DOWN, |
98 }; | 98 }; |
99 | 99 |
100 enum WorkspaceType { | 100 enum WorkspaceType { |
101 WORKSPACE_MAXIMIZED, | 101 WORKSPACE_MAXIMIZED, |
102 WORKSPACE_DESKTOP, | 102 WORKSPACE_DESKTOP, |
103 }; | 103 }; |
104 | 104 |
| 105 // Amount of time for the workspace switch animation. |
| 106 extern const int kWorkspaceSwitchTimeMS; |
| 107 |
105 // Animates between two workspaces. If |animate_old| is false |old_window| is | 108 // Animates between two workspaces. If |animate_old| is false |old_window| is |
106 // not animated, otherwise it is. |is_restoring_maximized_window| is true if | 109 // not animated, otherwise it is. |is_restoring_maximized_window| is true if |
107 // the switch is the result of a minmized window being restored. | 110 // the switch is the result of a minmized window being restored. |
108 ASH_EXPORT void AnimateBetweenWorkspaces(aura::Window* old_window, | 111 ASH_EXPORT void AnimateBetweenWorkspaces(aura::Window* old_window, |
109 WorkspaceType old_type, | 112 WorkspaceType old_type, |
110 bool animate_old, | 113 bool animate_old, |
111 aura::Window* new_window, | 114 aura::Window* new_window, |
112 WorkspaceType new_type, | 115 WorkspaceType new_type, |
113 bool is_restoring_maximized_window); | 116 bool is_restoring_maximized_window); |
114 | 117 |
(...skipping 19 matching lines...) Expand all Loading... |
134 | 137 |
135 // Returns false if the |window| didn't animate. | 138 // Returns false if the |window| didn't animate. |
136 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( | 139 ASH_EXPORT bool AnimateOnChildWindowVisibilityChanged( |
137 aura::Window* window, bool visible); | 140 aura::Window* window, bool visible); |
138 | 141 |
139 } // namespace internal | 142 } // namespace internal |
140 } // namespace ash | 143 } // namespace ash |
141 | 144 |
142 | 145 |
143 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ | 146 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ |
OLD | NEW |