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