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

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

Issue 74363004: Switching to the correct desktop when a system modal dialog gets shown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 typedef std::map<aura::Window*, WindowEntry*> WindowToEntryMap; 131 typedef std::map<aura::Window*, WindowEntry*> WindowToEntryMap;
132 typedef std::map<std::string, AppObserver*> UserIDToShellWindowObserver; 132 typedef std::map<std::string, AppObserver*> UserIDToShellWindowObserver;
133 typedef std::map<aura::Window*, bool> TransientWindowToVisibility; 133 typedef std::map<aura::Window*, bool> TransientWindowToVisibility;
134 134
135 // Add a browser window to the system so that the owner can be remembered. 135 // Add a browser window to the system so that the owner can be remembered.
136 void AddBrowserWindow(Browser* browser); 136 void AddBrowserWindow(Browser* browser);
137 137
138 // Show / hide the given window. Note: By not doing this within the functions, 138 // Show / hide the given window. Note: By not doing this within the functions,
139 // this allows to either switching to different ways to show/hide and / or to 139 // this allows to either switching to different ways to show/hide and / or to
140 // distinguish state changes performed by this class vs. state changes 140 // distinguish state changes performed by this class vs. state changes
141 // performed by the others. 141 // performed by the others. Note furthermore that system modal dialogs will
142 // not get hidden. We will switch instead to the owners desktop.
142 void SetWindowVisibility(aura::Window* window, bool visible); 143 void SetWindowVisibility(aura::Window* window, bool visible);
143 144
144 // Show the window and its transient children. However - if a transient child 145 // Show the window and its transient children. However - if a transient child
145 // was turned invisible by some other operation, it will stay invisible. 146 // was turned invisible by some other operation, it will stay invisible.
146 void ShowWithTransientChildrenRecursive(aura::Window* window); 147 void ShowWithTransientChildrenRecursive(aura::Window* window);
147 148
148 // Find the first owned window in the chain. 149 // Find the first owned window in the chain.
149 // Returns NULL when the window itself is owned. 150 // Returns NULL when the window itself is owned.
150 aura::Window* GetOwningWindowInTransientChain(aura::Window* window); 151 aura::Window* GetOwningWindowInTransientChain(aura::Window* window);
151 152
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Caching the current multi profile mode since the detection which mode is 184 // Caching the current multi profile mode since the detection which mode is
184 // used is quite expensive. 185 // used is quite expensive.
185 static MultiProfileMode multi_user_mode_; 186 static MultiProfileMode multi_user_mode_;
186 187
187 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); 188 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS);
188 }; 189 };
189 190
190 } // namespace chrome 191 } // namespace chrome
191 192
192 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _ 193 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698