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

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

Issue 11280188: Fix focus loss on partial lock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review fixes Created 8 years 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
« no previous file with comments | « ash/wm/session_state_animator.cc ('k') | ash/wm/workspace/workspace_animations.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) 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 23 matching lines...) Expand all
34 // Whether to animate. If false the show/hide is immediate, otherwise it 34 // Whether to animate. If false the show/hide is immediate, otherwise it
35 // animates. 35 // animates.
36 bool animate; 36 bool animate;
37 37
38 // Whether the opacity should be animated. 38 // Whether the opacity should be animated.
39 bool animate_opacity; 39 bool animate_opacity;
40 40
41 // Whether the scale should be animated. 41 // Whether the scale should be animated.
42 bool animate_scale; 42 bool animate_scale;
43 43
44 // Whether the animation is supposed to be cancelled.
45 bool can_be_cancelled;
sky 2012/11/28 21:54:40 How hide_window_immediately defaulting to true? Al
46
44 // The duration of the animation. If empty the default is used. 47 // The duration of the animation. If empty the default is used.
45 base::TimeDelta duration; 48 base::TimeDelta duration;
46 49
47 // Amount of time (in milliseconds) to pause before animating. 50 // Amount of time (in milliseconds) to pause before animating.
48 int pause_time_ms; 51 int pause_time_ms;
49 }; 52 };
50 53
51 // Amount of time for the workspace switch animation. 54 // Amount of time for the workspace switch animation.
52 extern const int kWorkspaceSwitchTimeMS; 55 extern const int kWorkspaceSwitchTimeMS;
53 56
54 // Shows or hides the workspace animating based on |details|. 57 // Shows or hides the workspace animating based on |details|.
55 ASH_EXPORT void ShowWorkspace(aura::Window* window, 58 ASH_EXPORT void ShowWorkspace(aura::Window* window,
56 const WorkspaceAnimationDetails& details); 59 const WorkspaceAnimationDetails& details);
57 ASH_EXPORT void HideWorkspace(aura::Window* window, 60 ASH_EXPORT void HideWorkspace(aura::Window* window,
58 const WorkspaceAnimationDetails& details); 61 const WorkspaceAnimationDetails& details);
59 } // namespace internal 62 } // namespace internal
60 } // namespace ash 63 } // namespace ash
61 64
62 #endif // ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_ 65 #endif // ASH_WM_WORKSPACE_WORKSPACE_ANIMATIONS_H_
OLDNEW
« no previous file with comments | « ash/wm/session_state_animator.cc ('k') | ash/wm/workspace/workspace_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698