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/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.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 Browser; | |
16 class Profile; | |
17 | |
18 namespace aura { | |
19 class Window; | |
20 } | |
21 | |
22 namespace chrome { | 15 namespace chrome { |
23 | 16 |
24 // This is the implementation of MultiUserWindowManager for single user mode. | 17 // This is the implementation of MultiUserWindowManager for single user mode. |
25 class MultiUserWindowManagerStub : public MultiUserWindowManager { | 18 class MultiUserWindowManagerStub : public MultiUserWindowManager { |
26 public: | 19 public: |
27 MultiUserWindowManagerStub() {} | 20 MultiUserWindowManagerStub() {} |
28 virtual ~MultiUserWindowManagerStub() {} | 21 virtual ~MultiUserWindowManagerStub() {} |
29 | 22 |
30 // MultiUserWindowManager overrides: | 23 // MultiUserWindowManager overrides: |
31 virtual void SetWindowOwner( | 24 virtual void SetWindowOwner( |
32 aura::Window* window, const std::string& user_id) OVERRIDE; | 25 aura::Window* window, const std::string& user_id) OVERRIDE; |
33 virtual const std::string& GetWindowOwner(aura::Window* window) OVERRIDE; | 26 virtual const std::string& GetWindowOwner(aura::Window* window) OVERRIDE; |
34 virtual void ShowWindowForUser( | 27 virtual void ShowWindowForUser( |
35 aura::Window* window, const std::string& user_id) OVERRIDE; | 28 aura::Window* window, const std::string& user_id) OVERRIDE; |
36 virtual bool AreWindowsSharedAmongUsers() OVERRIDE; | 29 virtual bool AreWindowsSharedAmongUsers() OVERRIDE; |
37 virtual void GetOwnersOfVisibleWindows( | 30 virtual void GetOwnersOfVisibleWindows( |
38 std::set<std::string>* user_ids) OVERRIDE; | 31 std::set<std::string>* user_ids) OVERRIDE; |
39 virtual bool IsWindowOnDesktopOfUser(aura::Window* window, | 32 virtual bool IsWindowOnDesktopOfUser(aura::Window* window, |
40 const std::string& user_id) OVERRIDE; | 33 const std::string& user_id) OVERRIDE; |
41 virtual const std::string& GetUserPresentingWindow( | 34 virtual const std::string& GetUserPresentingWindow( |
42 aura::Window* window) OVERRIDE; | 35 aura::Window* window) OVERRIDE; |
43 virtual void AddUser(Profile* profile) OVERRIDE; | 36 virtual void AddUser(content::BrowserContext* context) OVERRIDE; |
44 virtual void AddObserver(Observer* observer) OVERRIDE; | 37 virtual void AddObserver(Observer* observer) OVERRIDE; |
45 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 38 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
46 | 39 |
47 private: | 40 private: |
48 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerStub); | 41 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerStub); |
49 }; | 42 }; |
50 | 43 |
51 } // namespace chrome | 44 } // namespace chrome |
52 | 45 |
53 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ | 46 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_STUB_H_ |
OLD | NEW |