| 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_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // To address that, all transient children (and their children) are remembered | 52 // To address that, all transient children (and their children) are remembered |
| 53 // in |transient_window_to_visibility_| and monitored to keep track of the | 53 // in |transient_window_to_visibility_| and monitored to keep track of the |
| 54 // visibility changes from the owning user. This way the visibility can be | 54 // visibility changes from the owning user. This way the visibility can be |
| 55 // changed back to its requested state upon showing by us - or when the window | 55 // changed back to its requested state upon showing by us - or when the window |
| 56 // gets detached from its current owning parent. | 56 // gets detached from its current owning parent. |
| 57 class MultiUserWindowManagerChromeOS | 57 class MultiUserWindowManagerChromeOS |
| 58 : public MultiUserWindowManager, | 58 : public MultiUserWindowManager, |
| 59 public ash::SessionStateObserver, | 59 public ash::SessionStateObserver, |
| 60 public aura::WindowObserver, | 60 public aura::WindowObserver, |
| 61 public content::NotificationObserver, | 61 public content::NotificationObserver, |
| 62 public views::corewm::TransientWindowObserver { | 62 public wm::TransientWindowObserver { |
| 63 public: | 63 public: |
| 64 // Create the manager and use |active_user_id| as the active user. | 64 // Create the manager and use |active_user_id| as the active user. |
| 65 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id); | 65 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id); |
| 66 virtual ~MultiUserWindowManagerChromeOS(); | 66 virtual ~MultiUserWindowManagerChromeOS(); |
| 67 | 67 |
| 68 // MultiUserWindowManager overrides: | 68 // MultiUserWindowManager overrides: |
| 69 virtual void SetWindowOwner( | 69 virtual void SetWindowOwner( |
| 70 aura::Window* window, const std::string& user_id) OVERRIDE; | 70 aura::Window* window, const std::string& user_id) OVERRIDE; |
| 71 virtual const std::string& GetWindowOwner(aura::Window* window) OVERRIDE; | 71 virtual const std::string& GetWindowOwner(aura::Window* window) OVERRIDE; |
| 72 virtual void ShowWindowForUser( | 72 virtual void ShowWindowForUser( |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 // If true, all animations will be suppressed. | 260 // If true, all animations will be suppressed. |
| 261 bool animations_disabled_; | 261 bool animations_disabled_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); | 263 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 } // namespace chrome | 266 } // namespace chrome |
| 267 | 267 |
| 268 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H
_ | 268 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |