| OLD | NEW |
| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 class AccountId; | 12 class AccountId; |
| 13 class Browser; | |
| 14 | 13 |
| 15 namespace content { | 14 namespace content { |
| 16 class BrowserContext; | 15 class BrowserContext; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace aura { | 18 namespace aura { |
| 20 class Window; | 19 class Window; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace chrome { | 22 namespace chrome { |
| 24 | 23 |
| 25 class MultiUserWindowManagerChromeOS; | |
| 26 | |
| 27 // The MultiUserWindowManager manages windows from multiple users by presenting | 24 // The MultiUserWindowManager manages windows from multiple users by presenting |
| 28 // only user relevant windows to the current user. The manager is automatically | 25 // only user relevant windows to the current user. The manager is automatically |
| 29 // determining the window ownership from browser and application windows and | 26 // determining the window ownership from browser and application windows and |
| 30 // puts them onto the correct "desktop". | 27 // puts them onto the correct "desktop". |
| 31 // Un-owned windows will be visible on all users desktop's and owned windows can | 28 // Un-owned windows will be visible on all users desktop's and owned windows can |
| 32 // only be presented on one desktop. If a window should get moved to another | 29 // only be presented on one desktop. If a window should get moved to another |
| 33 // user's desktop |ShowWindowForUser| can be called. | 30 // user's desktop |ShowWindowForUser| can be called. |
| 34 // Windows which are neither a browser nor an app can be associated with a user | 31 // Windows which are neither a browser nor an app can be associated with a user |
| 35 // through |SetWindowOwner|. | 32 // through |SetWindowOwner|. |
| 36 // This class will also switch the desktop upon user change. | 33 // This class will also switch the desktop upon user change. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 virtual ~MultiUserWindowManager() {} | 144 virtual ~MultiUserWindowManager() {} |
| 148 | 145 |
| 149 private: | 146 private: |
| 150 // Caching the current multi profile mode since the detection is expensive. | 147 // Caching the current multi profile mode since the detection is expensive. |
| 151 static MultiProfileMode multi_user_mode_; | 148 static MultiProfileMode multi_user_mode_; |
| 152 }; | 149 }; |
| 153 | 150 |
| 154 } // namespace chrome | 151 } // namespace chrome |
| 155 | 152 |
| 156 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_H_ | 153 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_H_ |
| OLD | NEW |