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

Side by Side Diff: ash/wm/workspace/workspace_cycler_animator.h

Issue 12212040: Make the workspace cycler animation parameters editable via chrome://gesture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/workspace/workspace_cycler.cc ('k') | ash/wm/workspace/workspace_cycler_animator.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) 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
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
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_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_cycler.cc ('k') | ash/wm/workspace/workspace_cycler_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698