OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Animate stopping the workspace cycler. | 68 // Animate stopping the workspace cycler. |
69 // StopWorkspaceCyclerAnimationFinished() will be called on the delegate when | 69 // StopWorkspaceCyclerAnimationFinished() will be called on the delegate when |
70 // the animations have completed. | 70 // the animations have completed. |
71 void AnimateStoppingCycler(); | 71 void AnimateStoppingCycler(); |
72 | 72 |
73 // Abort the animations started by the animator and reset any state set by the | 73 // Abort the animations started by the animator and reset any state set by the |
74 // animator. | 74 // animator. |
75 void AbortAnimations(); | 75 void AbortAnimations(); |
76 | 76 |
77 // Animate cycling by |scroll_delta|. | 77 // Animate cycling by |scroll_delta|. |
78 void AnimateCyclingByScrollDelta(float scroll_delta); | 78 void AnimateCyclingByScrollDelta(double scroll_delta); |
79 | 79 |
80 // Returns the workspace which should be activated if the user does not do | 80 // Returns the workspace which should be activated if the user does not do |
81 // any more cycling. | 81 // any more cycling. |
82 Workspace* get_selected_workspace() const { | 82 Workspace* get_selected_workspace() const { |
83 return workspaces_[selected_workspace_index_]; | 83 return workspaces_[selected_workspace_index_]; |
84 } | 84 } |
85 | 85 |
86 private: | 86 private: |
87 enum AnimationType { | 87 enum AnimationType { |
88 NONE, | 88 NONE, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // of workspaces during animations. | 179 // of workspaces during animations. |
180 scoped_ptr<StyleCalculator> style_calculator_; | 180 scoped_ptr<StyleCalculator> style_calculator_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(WorkspaceCyclerAnimator); | 182 DISALLOW_COPY_AND_ASSIGN(WorkspaceCyclerAnimator); |
183 }; | 183 }; |
184 | 184 |
185 } // namespace internal | 185 } // namespace internal |
186 } // namespace ash | 186 } // namespace ash |
187 | 187 |
188 #endif // ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ | 188 #endif // ASH_WM_WORKSPACE_WORKSPACE_CYCLER_ANIMATOR_H_ |
OLD | NEW |