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_STUB_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ |
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ | 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | 13 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |
14 | 14 |
15 class AccountId; | 15 class AccountId; |
16 | 16 |
17 namespace chrome { | 17 namespace chrome { |
18 | 18 |
19 // This is the implementation of MultiUserWindowManager for single user mode. | 19 // This is the implementation of MultiUserWindowManager for single user mode. |
20 class MultiUserWindowManagerStub : public MultiUserWindowManager { | 20 class MultiUserWindowManagerStub : public MultiUserWindowManager { |
21 public: | 21 public: |
22 MultiUserWindowManagerStub() {} | 22 MultiUserWindowManagerStub(); |
23 ~MultiUserWindowManagerStub() override {} | 23 ~MultiUserWindowManagerStub() override; |
24 | 24 |
25 // MultiUserWindowManager overrides: | 25 // MultiUserWindowManager overrides: |
26 void SetWindowOwner(aura::Window* window, | 26 void SetWindowOwner(aura::Window* window, |
27 const AccountId& account_id) override; | 27 const AccountId& account_id) override; |
28 const AccountId& GetWindowOwner(aura::Window* window) const override; | 28 const AccountId& GetWindowOwner(aura::Window* window) const override; |
29 void ShowWindowForUser(aura::Window* window, | 29 void ShowWindowForUser(aura::Window* window, |
30 const AccountId& account_id) override; | 30 const AccountId& account_id) override; |
31 bool AreWindowsSharedAmongUsers() const override; | 31 bool AreWindowsSharedAmongUsers() const override; |
32 void GetOwnersOfVisibleWindows( | 32 void GetOwnersOfVisibleWindows( |
33 std::set<AccountId>* account_ids) const override; | 33 std::set<AccountId>* account_ids) const override; |
34 bool IsWindowOnDesktopOfUser(aura::Window* window, | 34 bool IsWindowOnDesktopOfUser(aura::Window* window, |
35 const AccountId& account_id) const override; | 35 const AccountId& account_id) const override; |
36 const AccountId& GetUserPresentingWindow(aura::Window* window) const override; | 36 const AccountId& GetUserPresentingWindow(aura::Window* window) const override; |
37 void AddUser(content::BrowserContext* context) override; | 37 void AddUser(content::BrowserContext* context) override; |
38 void AddObserver(Observer* observer) override; | 38 void AddObserver(Observer* observer) override; |
39 void RemoveObserver(Observer* observer) override; | 39 void RemoveObserver(Observer* observer) override; |
40 | 40 |
41 private: | 41 private: |
42 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerStub); | 42 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerStub); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace chrome | 45 } // namespace chrome |
46 | 46 |
47 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ | 47 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ |
OLD | NEW |