| 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_WINDOW_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_WINDOW_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_WINDOW_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_WINDOW_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void ShowWindowForUser(aura::Window* window, const std::string& user_id); | 121 void ShowWindowForUser(aura::Window* window, const std::string& user_id); |
| 122 | 122 |
| 123 // Returns true when windows are shared among users. | 123 // Returns true when windows are shared among users. |
| 124 bool AreWindowsSharedAmongUsers(); | 124 bool AreWindowsSharedAmongUsers(); |
| 125 | 125 |
| 126 // A query call for a given window to see if it is on the given user's | 126 // A query call for a given window to see if it is on the given user's |
| 127 // desktop. | 127 // desktop. |
| 128 bool IsWindowOnDesktopOfUser(aura::Window* window, | 128 bool IsWindowOnDesktopOfUser(aura::Window* window, |
| 129 const std::string& user_id); | 129 const std::string& user_id); |
| 130 | 130 |
| 131 // The current user. |
| 132 const std::string& current_user_id() { return current_user_id_; } |
| 133 |
| 131 // Get the user on which the window is currently shown. If an empty string is | 134 // Get the user on which the window is currently shown. If an empty string is |
| 132 // passed back the window will be presented for every user. | 135 // passed back the window will be presented for every user. |
| 133 const std::string& GetUserPresentingWindow(aura::Window* window); | 136 const std::string& GetUserPresentingWindow(aura::Window* window); |
| 134 | 137 |
| 135 // Adds user to monitor now and future running V1/V2 application windows. | 138 // Adds user to monitor now and future running V1/V2 application windows. |
| 136 // Returns immediately if the user (identified by a |profile|) is already | 139 // Returns immediately if the user (identified by a |profile|) is already |
| 137 // known to the manager. Note: This function is not implemented as a | 140 // known to the manager. Note: This function is not implemented as a |
| 138 // SessionStateObserver to coordinate the timing of the addition with other | 141 // SessionStateObserver to coordinate the timing of the addition with other |
| 139 // modules. | 142 // modules. |
| 140 void AddUser(Profile* profile); | 143 void AddUser(Profile* profile); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Caching the current multi profile mode since the detection which mode is | 272 // Caching the current multi profile mode since the detection which mode is |
| 270 // used is quite expensive. | 273 // used is quite expensive. |
| 271 static MultiProfileMode multi_user_mode_; | 274 static MultiProfileMode multi_user_mode_; |
| 272 | 275 |
| 273 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManager); | 276 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManager); |
| 274 }; | 277 }; |
| 275 | 278 |
| 276 } // namespace chrome | 279 } // namespace chrome |
| 277 | 280 |
| 278 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_WINDOW_MANAGER_H_ | 281 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_WINDOW_MANAGER_H_ |
| OLD | NEW |