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_SESSION_STATE_ANIMATOR_H_ | 5 #ifndef ASH_WM_SESSION_STATE_ANIMATOR_H_ |
6 #define ASH_WM_SESSION_STATE_ANIMATOR_H_ | 6 #define ASH_WM_SESSION_STATE_ANIMATOR_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Speed for undoing workspace-like animations in "new" animation set. | 61 // Speed for undoing workspace-like animations in "new" animation set. |
62 ANIMATION_SPEED_UNDO_MOVE_WINDOWS, | 62 ANIMATION_SPEED_UNDO_MOVE_WINDOWS, |
63 // Speed for shutdown in "new" animation set. | 63 // Speed for shutdown in "new" animation set. |
64 ANIMATION_SPEED_SHUTDOWN, | 64 ANIMATION_SPEED_SHUTDOWN, |
65 // Speed for reverting shutdown in "new" animation set. | 65 // Speed for reverting shutdown in "new" animation set. |
66 ANIMATION_SPEED_REVERT_SHUTDOWN, | 66 ANIMATION_SPEED_REVERT_SHUTDOWN, |
67 }; | 67 }; |
68 | 68 |
69 // Specific containers or groups of containers that can be animated. | 69 // Specific containers or groups of containers that can be animated. |
70 enum Container { | 70 enum Container { |
71 DESKTOP_BACKGROUND = 1 << 0, | 71 WALLPAPER = 1 << 0, |
72 LAUNCHER = 1 << 1, | 72 LAUNCHER = 1 << 1, |
73 | 73 |
74 // All user session related containers including system background but | 74 // All user session related containers including the system wallpaper but |
75 // not including desktop background (wallpaper). | 75 // not including the user's wallpaper. |
76 NON_LOCK_SCREEN_CONTAINERS = 1 << 2, | 76 NON_LOCK_SCREEN_CONTAINERS = 1 << 2, |
77 | 77 |
78 // Desktop wallpaper is moved to this layer when screen is locked. | 78 // Desktop wallpaper is moved to this layer when screen is locked. |
79 // This layer is excluded from lock animation so that wallpaper stays as is, | 79 // This layer is excluded from lock animation so that wallpaper stays as is, |
80 // user session windows are hidden and lock UI is shown on top of it. | 80 // user session windows are hidden and lock UI is shown on top of it. |
81 // This layer is included in shutdown animation. | 81 // This layer is included in shutdown animation. |
82 LOCK_SCREEN_BACKGROUND = 1 << 3, | 82 LOCK_SCREEN_WALLPAPER = 1 << 3, |
83 | 83 |
84 // Lock screen and lock screen modal containers. | 84 // Lock screen and lock screen modal containers. |
85 LOCK_SCREEN_CONTAINERS = 1 << 4, | 85 LOCK_SCREEN_CONTAINERS = 1 << 4, |
86 | 86 |
87 // Multiple system layers belong here like status, menu, tooltip | 87 // Multiple system layers belong here like status, menu, tooltip |
88 // and overlay layers. | 88 // and overlay layers. |
89 LOCK_SCREEN_RELATED_CONTAINERS = 1 << 5, | 89 LOCK_SCREEN_RELATED_CONTAINERS = 1 << 5, |
90 | 90 |
91 // The primary root window. | 91 // The primary root window. |
92 ROOT_CONTAINER = 1 << 6, | 92 ROOT_CONTAINER = 1 << 6, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 virtual void StartAnimationWithCallback(int container_mask, | 197 virtual void StartAnimationWithCallback(int container_mask, |
198 AnimationType type, | 198 AnimationType type, |
199 AnimationSpeed speed, | 199 AnimationSpeed speed, |
200 base::Closure callback) = 0; | 200 base::Closure callback) = 0; |
201 | 201 |
202 // Begins an animation sequence. Use this when you need to be notified when | 202 // Begins an animation sequence. Use this when you need to be notified when |
203 // a group of animations are completed. See AnimationSequence documentation | 203 // a group of animations are completed. See AnimationSequence documentation |
204 // for more details. | 204 // for more details. |
205 virtual AnimationSequence* BeginAnimationSequence(base::Closure callback) = 0; | 205 virtual AnimationSequence* BeginAnimationSequence(base::Closure callback) = 0; |
206 | 206 |
207 // Retruns true if the background is hidden. | 207 // Retruns true if the wallpaper is hidden. |
208 virtual bool IsBackgroundHidden() const = 0; | 208 virtual bool IsWallpaperHidden() const = 0; |
209 | 209 |
210 // Shows the background immediately. | 210 // Shows the wallpaper immediately. |
211 virtual void ShowBackground() = 0; | 211 virtual void ShowWallpaper() = 0; |
212 | 212 |
213 // Hides the background immediately. | 213 // Hides the wallpaper immediately. |
214 virtual void HideBackground() = 0; | 214 virtual void HideWallpaper() = 0; |
215 | 215 |
216 private: | 216 private: |
217 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); | 217 DISALLOW_COPY_AND_ASSIGN(SessionStateAnimator); |
218 }; | 218 }; |
219 | 219 |
220 } // namespace ash | 220 } // namespace ash |
221 | 221 |
222 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ | 222 #endif // ASH_WM_SESSION_STATE_ANIMATOR_H_ |
OLD | NEW |