| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 public: | 63 public: |
| 64 // The speed which should be used to perform animations. | 64 // The speed which should be used to perform animations. |
| 65 enum AnimationSpeed { | 65 enum AnimationSpeed { |
| 66 ANIMATION_SPEED_NORMAL, // The normal animation speed. | 66 ANIMATION_SPEED_NORMAL, // The normal animation speed. |
| 67 ANIMATION_SPEED_FAST, // Unit test speed which test animations. | 67 ANIMATION_SPEED_FAST, // Unit test speed which test animations. |
| 68 ANIMATION_SPEED_DISABLED // Unit tests which do not require animations. | 68 ANIMATION_SPEED_DISABLED // Unit tests which do not require animations. |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 // Create the manager and use |active_user_id| as the active user. | 71 // Create the manager and use |active_user_id| as the active user. |
| 72 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id); | 72 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id); |
| 73 virtual ~MultiUserWindowManagerChromeOS(); | 73 ~MultiUserWindowManagerChromeOS() override; |
| 74 | 74 |
| 75 // MultiUserWindowManager overrides: | 75 // MultiUserWindowManager overrides: |
| 76 void SetWindowOwner( | 76 void SetWindowOwner( |
| 77 aura::Window* window, const std::string& user_id) override; | 77 aura::Window* window, const std::string& user_id) override; |
| 78 const std::string& GetWindowOwner( | 78 const std::string& GetWindowOwner( |
| 79 aura::Window* window) const override; | 79 aura::Window* window) const override; |
| 80 void ShowWindowForUser( | 80 void ShowWindowForUser( |
| 81 aura::Window* window, const std::string& user_id) override; | 81 aura::Window* window, const std::string& user_id) override; |
| 82 bool AreWindowsSharedAmongUsers() const override; | 82 bool AreWindowsSharedAmongUsers() const override; |
| 83 void GetOwnersOfVisibleWindows( | 83 void GetOwnersOfVisibleWindows( |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 // The animation between users. | 261 // The animation between users. |
| 262 scoped_ptr<UserSwichAnimatorChromeOS> animation_; | 262 scoped_ptr<UserSwichAnimatorChromeOS> animation_; |
| 263 | 263 |
| 264 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); | 264 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 } // namespace chrome | 267 } // namespace chrome |
| 268 | 268 |
| 269 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H
_ | 269 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H
_ |
| OLD | NEW |