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

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

Issue 166573005: Rename apps::ShellWindow to apps::AppWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, nits (rename) Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // The user id of the user on which desktop the window gets shown. 146 // The user id of the user on which desktop the window gets shown.
147 std::string show_for_user_; 147 std::string show_for_user_;
148 148
149 // True if the window should be visible for the user which shows the window. 149 // True if the window should be visible for the user which shows the window.
150 bool show_; 150 bool show_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(WindowEntry); 152 DISALLOW_COPY_AND_ASSIGN(WindowEntry);
153 }; 153 };
154 154
155 typedef std::map<aura::Window*, WindowEntry*> WindowToEntryMap; 155 typedef std::map<aura::Window*, WindowEntry*> WindowToEntryMap;
156 typedef std::map<std::string, AppObserver*> UserIDToShellWindowObserver; 156 typedef std::map<std::string, AppObserver*> UserIDToAppWindowObserver;
157 typedef std::map<aura::Window*, bool> TransientWindowToVisibility; 157 typedef std::map<aura::Window*, bool> TransientWindowToVisibility;
158 158
159 // The animation step for the user change animation. First the old user gets 159 // The animation step for the user change animation. First the old user gets
160 // hidden and then the new one gets presented. 160 // hidden and then the new one gets presented.
161 enum AnimationStep { 161 enum AnimationStep {
162 HIDE_OLD_USER, 162 HIDE_OLD_USER,
163 SHOW_NEW_USER 163 SHOW_NEW_USER
164 }; 164 };
165 165
166 // Show a window for a user without switching the user. 166 // Show a window for a user without switching the user.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // Animate a |window| to be |visible| in |animation_time_in_ms|. 216 // Animate a |window| to be |visible| in |animation_time_in_ms|.
217 void SetWindowVisible(aura::Window* window, 217 void SetWindowVisible(aura::Window* window,
218 bool visible, 218 bool visible,
219 int aimation_time_in_ms); 219 int aimation_time_in_ms);
220 220
221 // A lookup to see to which user the given window belongs to, where and if it 221 // A lookup to see to which user the given window belongs to, where and if it
222 // should get shown. 222 // should get shown.
223 WindowToEntryMap window_to_entry_; 223 WindowToEntryMap window_to_entry_;
224 224
225 // A list of all known users and their shell window observers. 225 // A list of all known users and their app window observers.
226 UserIDToShellWindowObserver user_id_to_app_observer_; 226 UserIDToAppWindowObserver user_id_to_app_observer_;
227 227
228 // An observer list to be notified upon window owner changes. 228 // An observer list to be notified upon window owner changes.
229 ObserverList<Observer> observers_; 229 ObserverList<Observer> observers_;
230 230
231 // A map which remembers for owned transient windows their own visibility. 231 // A map which remembers for owned transient windows their own visibility.
232 TransientWindowToVisibility transient_window_to_visibility_; 232 TransientWindowToVisibility transient_window_to_visibility_;
233 233
234 // The currently selected active user. It is used to find the proper 234 // The currently selected active user. It is used to find the proper
235 // visibility state in various cases. The state is stored here instead of 235 // visibility state in various cases. The state is stored here instead of
236 // being read from the user manager to be in sync while a switch occurs. 236 // being read from the user manager to be in sync while a switch occurs.
(...skipping 19 matching lines...) Expand all
256 256
257 // If true, all animations will be suppressed. 257 // If true, all animations will be suppressed.
258 bool animations_disabled_; 258 bool animations_disabled_;
259 259
260 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); 260 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS);
261 }; 261 };
262 262
263 } // namespace chrome 263 } // namespace chrome
264 264
265 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _ 265 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698