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

Side by Side Diff: chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.h

Issue 448493002: Avoiding double resize of maximized windows upon user switch due to showing and hiding of the shelf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Execute the user wallpaper animations for |animation_step|. 77 // Execute the user wallpaper animations for |animation_step|.
78 void TransitionWallpaper(AnimationStep animtion_step); 78 void TransitionWallpaper(AnimationStep animtion_step);
79 79
80 // Execute the user shelf animations for |animation_step|. 80 // Execute the user shelf animations for |animation_step|.
81 void TransitionUserShelf(AnimationStep animtion_step); 81 void TransitionUserShelf(AnimationStep animtion_step);
82 82
83 // Execute the window animations for |animation_step|. 83 // Execute the window animations for |animation_step|.
84 void TransitionWindows(AnimationStep animation_step); 84 void TransitionWindows(AnimationStep animation_step);
85 85
86 // Check if a window is maximized / fullscreen / covering the entire screen. 86 // Check if a window is maximized / fullscreen / covering the entire screen.
87 // TODO(skuhne): We might want to do this on a per screen basis. 87 // If a |root_window| is given, the screen coverage of that root_window is
88 TransitioningScreenCover GetScreenCover(); 88 // tested, otherwise all screens.
89 TransitioningScreenCover GetScreenCover(aura::Window* root_window);
89 90
90 // The owning window manager. 91 // The owning window manager.
91 MultiUserWindowManagerChromeOS* owner_; 92 MultiUserWindowManagerChromeOS* owner_;
92 93
93 // The new user to set. 94 // The new user to set.
94 std::string new_user_id_; 95 std::string new_user_id_;
95 96
96 // The animation speed in ms. If 0, animations are disabled. 97 // The animation speed in ms. If 0, animations are disabled.
97 int animation_speed_ms_; 98 int animation_speed_ms_;
98 99
99 // The next animation step for AdvanceUserTransitionAnimation(). 100 // The next animation step for AdvanceUserTransitionAnimation().
100 AnimationStep animation_step_; 101 AnimationStep animation_step_;
101 102
102 // The screen cover status before the animation has started. 103 // The screen cover status before the animation has started.
103 TransitioningScreenCover screen_cover_; 104 TransitioningScreenCover screen_cover_;
104 105
105 // A timer which watches to executes the second part of a "user changed" 106 // A timer which watches to executes the second part of a "user changed"
106 // animation. Note that this timer exists only during such an animation. 107 // animation. Note that this timer exists only during such an animation.
107 scoped_ptr<base::Timer> user_changed_animation_timer_; 108 scoped_ptr<base::Timer> user_changed_animation_timer_;
108 109
109 // For unit tests: Check which wallpaper was set. 110 // For unit tests: Check which wallpaper was set.
110 std::string wallpaper_user_id_; 111 std::string wallpaper_user_id_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(UserSwichAnimatorChromeOS); 113 DISALLOW_COPY_AND_ASSIGN(UserSwichAnimatorChromeOS);
113 }; 114 };
114 115
115 } // namespace chrome 116 } // namespace chrome
116 117
117 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_ 118 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_USER_SWITCH_ANIMATOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698