| 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 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h" | 5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_stub.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "components/user_manager/user_id.h" |
| 9 | 10 |
| 10 namespace chrome { | 11 namespace chrome { |
| 11 | 12 |
| 12 void MultiUserWindowManagerStub::SetWindowOwner(aura::Window* window, | 13 void MultiUserWindowManagerStub::SetWindowOwner(aura::Window* window, |
| 13 const std::string& user_id) { | 14 const user_manager::UserID& user_
id) { |
| 14 NOTIMPLEMENTED(); | 15 NOTIMPLEMENTED(); |
| 15 } | 16 } |
| 16 | 17 |
| 17 const std::string& MultiUserWindowManagerStub::GetWindowOwner( | 18 const user_manager::UserID& MultiUserWindowManagerStub::GetWindowOwner( |
| 18 aura::Window* window) const { | 19 aura::Window* window) const { |
| 19 return base::EmptyString(); | 20 return user_manager::EmptyUserID(); |
| 20 } | 21 } |
| 21 | 22 |
| 22 void MultiUserWindowManagerStub::ShowWindowForUser(aura::Window* window, | 23 void MultiUserWindowManagerStub::ShowWindowForUser(aura::Window* window, |
| 23 const std::string& user_id) { | 24 const user_manager::UserID& us
er_id) { |
| 24 NOTIMPLEMENTED(); | 25 NOTIMPLEMENTED(); |
| 25 } | 26 } |
| 26 | 27 |
| 27 bool MultiUserWindowManagerStub::AreWindowsSharedAmongUsers() const { | 28 bool MultiUserWindowManagerStub::AreWindowsSharedAmongUsers() const { |
| 28 return false; | 29 return false; |
| 29 } | 30 } |
| 30 | 31 |
| 31 void MultiUserWindowManagerStub::GetOwnersOfVisibleWindows( | 32 void MultiUserWindowManagerStub::GetOwnersOfVisibleWindows( |
| 32 std::set<std::string>* user_ids) const { | 33 std::set<user_manager::UserID>* user_ids) const { |
| 33 } | 34 } |
| 34 | 35 |
| 35 bool MultiUserWindowManagerStub::IsWindowOnDesktopOfUser( | 36 bool MultiUserWindowManagerStub::IsWindowOnDesktopOfUser( |
| 36 aura::Window* window, | 37 aura::Window* window, |
| 37 const std::string& user_id) const { | 38 const user_manager::UserID& user_id) const { |
| 38 return true; | 39 return true; |
| 39 } | 40 } |
| 40 | 41 |
| 41 const std::string& MultiUserWindowManagerStub::GetUserPresentingWindow( | 42 const user_manager::UserID& MultiUserWindowManagerStub::GetUserPresentingWindow( |
| 42 aura::Window* window) const { | 43 aura::Window* window) const { |
| 43 return base::EmptyString(); | 44 return user_manager::EmptyUserID(); |
| 44 } | 45 } |
| 45 | 46 |
| 46 void MultiUserWindowManagerStub::AddUser(content::BrowserContext* context) { | 47 void MultiUserWindowManagerStub::AddUser(content::BrowserContext* context) { |
| 47 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
| 48 } | 49 } |
| 49 | 50 |
| 50 void MultiUserWindowManagerStub::AddObserver(Observer* observer) { | 51 void MultiUserWindowManagerStub::AddObserver(Observer* observer) { |
| 51 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 void MultiUserWindowManagerStub::RemoveObserver(Observer* observer) { | 55 void MultiUserWindowManagerStub::RemoveObserver(Observer* observer) { |
| 55 NOTIMPLEMENTED(); | 56 NOTIMPLEMENTED(); |
| 56 } | 57 } |
| 57 | 58 |
| 58 } // namespace chrome | 59 } // namespace chrome |
| OLD | NEW |