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_WORKSPACE_WORKSPACE_ANIMATIONS_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // The duration of the animation. If empty the default is used. | 44 // The duration of the animation. If empty the default is used. |
45 base::TimeDelta duration; | 45 base::TimeDelta duration; |
46 | 46 |
47 // Amount of time (in milliseconds) to pause before animating. | 47 // Amount of time (in milliseconds) to pause before animating. |
48 int pause_time_ms; | 48 int pause_time_ms; |
49 }; | 49 }; |
50 | 50 |
51 // Amount of time for the workspace switch animation. | 51 // Amount of time for the workspace switch animation. |
52 extern const int kWorkspaceSwitchTimeMS; | 52 extern const int kWorkspaceSwitchTimeMS; |
53 | 53 |
54 // Sets initial/target parameters of workspace animations based on |details|. | |
55 // Values are set for Show animation when |show| is true, and for Hide animation | |
56 // otherwise. If |force| is true, transform/opacity will be set regardless of | |
57 // value specified in |details|. | |
58 ASH_EXPORT void SetWorkspaceAnimationStartParameters( | |
sky
2012/11/29 19:06:51
As previously mentioned we should not have session
| |
59 aura::Window* window, | |
60 const WorkspaceAnimationDetails& details, | |
61 bool show, | |
62 bool force); | |
63 | |
64 ASH_EXPORT void SetWorkspaceAnimationTargetParameters( | |
65 aura::Window* window, | |
66 const WorkspaceAnimationDetails& details, | |
67 bool show, | |
68 bool force); | |
69 | |
54 // Shows or hides the workspace animating based on |details|. | 70 // Shows or hides the workspace animating based on |details|. |
55 ASH_EXPORT void ShowWorkspace(aura::Window* window, | 71 ASH_EXPORT void ShowWorkspace(aura::Window* window, |
56 const WorkspaceAnimationDetails& details); | 72 const WorkspaceAnimationDetails& details); |
57 ASH_EXPORT void HideWorkspace(aura::Window* window, | 73 ASH_EXPORT void HideWorkspace(aura::Window* window, |
58 const WorkspaceAnimationDetails& details); | 74 const WorkspaceAnimationDetails& details); |
59 } // namespace internal | 75 } // namespace internal |
60 } // namespace ash | 76 } // namespace ash |
61 | 77 |
62 #endif // ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ | 78 #endif // ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ |
OLD | NEW |