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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Create the manager and use |active_account_id| as the active user. | 73 // Create the manager and use |active_account_id| as the active user. |
74 explicit MultiUserWindowManagerChromeOS(const AccountId& active_account_id); | 74 explicit MultiUserWindowManagerChromeOS(const AccountId& active_account_id); |
75 ~MultiUserWindowManagerChromeOS() override; | 75 ~MultiUserWindowManagerChromeOS() override; |
76 | 76 |
77 // Initializes the manager after its creation. Should only be called once. | 77 // Initializes the manager after its creation. Should only be called once. |
78 void Init(); | 78 void Init(); |
79 | 79 |
80 // MultiUserWindowManager overrides: | 80 // MultiUserWindowManager overrides: |
81 void SetWindowOwner(aura::Window* window, | 81 void SetWindowOwner(aura::Window* window, |
82 const AccountId& account_id) override; | 82 const AccountId& account_id) override; |
| 83 void MarkWindowAsVisible(aura::Window* window) override; |
83 const AccountId& GetWindowOwner(aura::Window* window) const override; | 84 const AccountId& GetWindowOwner(aura::Window* window) const override; |
84 void ShowWindowForUser(aura::Window* window, | 85 void ShowWindowForUser(aura::Window* window, |
85 const AccountId& account_id) override; | 86 const AccountId& account_id) override; |
86 bool AreWindowsSharedAmongUsers() const override; | 87 bool AreWindowsSharedAmongUsers() const override; |
87 void GetOwnersOfVisibleWindows( | 88 void GetOwnersOfVisibleWindows( |
88 std::set<AccountId>* account_ids) const override; | 89 std::set<AccountId>* account_ids) const override; |
89 bool IsWindowOnDesktopOfUser(aura::Window* window, | 90 bool IsWindowOnDesktopOfUser(aura::Window* window, |
90 const AccountId& account_id) const override; | 91 const AccountId& account_id) const override; |
91 const AccountId& GetUserPresentingWindow(aura::Window* window) const override; | 92 const AccountId& GetUserPresentingWindow(aura::Window* window) const override; |
92 void AddUser(content::BrowserContext* context) override; | 93 void AddUser(content::BrowserContext* context) override; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 // The animation between users. | 261 // The animation between users. |
261 std::unique_ptr<UserSwitchAnimatorChromeOS> animation_; | 262 std::unique_ptr<UserSwitchAnimatorChromeOS> animation_; |
262 | 263 |
263 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); | 264 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); |
264 }; | 265 }; |
265 | 266 |
266 } // namespace chrome | 267 } // namespace chrome |
267 | 268 |
268 #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 |