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/signin/core/account_id/account_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 AccountId& account_id) { |
14 NOTIMPLEMENTED(); | 15 NOTIMPLEMENTED(); |
15 } | 16 } |
16 | 17 |
17 const std::string& MultiUserWindowManagerStub::GetWindowOwner( | 18 const AccountId& MultiUserWindowManagerStub::GetWindowOwner( |
18 aura::Window* window) const { | 19 aura::Window* window) const { |
19 return base::EmptyString(); | 20 return EmptyAccountId(); |
20 } | 21 } |
21 | 22 |
22 void MultiUserWindowManagerStub::ShowWindowForUser(aura::Window* window, | 23 void MultiUserWindowManagerStub::ShowWindowForUser( |
23 const std::string& user_id) { | 24 aura::Window* window, |
| 25 const AccountId& account_id) { |
24 NOTIMPLEMENTED(); | 26 NOTIMPLEMENTED(); |
25 } | 27 } |
26 | 28 |
27 bool MultiUserWindowManagerStub::AreWindowsSharedAmongUsers() const { | 29 bool MultiUserWindowManagerStub::AreWindowsSharedAmongUsers() const { |
28 return false; | 30 return false; |
29 } | 31 } |
30 | 32 |
31 void MultiUserWindowManagerStub::GetOwnersOfVisibleWindows( | 33 void MultiUserWindowManagerStub::GetOwnersOfVisibleWindows( |
32 std::set<std::string>* user_ids) const { | 34 std::set<AccountId>* account_ids) const {} |
33 } | |
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 AccountId& account_id) const { |
38 return true; | 39 return true; |
39 } | 40 } |
40 | 41 |
41 const std::string& MultiUserWindowManagerStub::GetUserPresentingWindow( | 42 const AccountId& MultiUserWindowManagerStub::GetUserPresentingWindow( |
42 aura::Window* window) const { | 43 aura::Window* window) const { |
43 return base::EmptyString(); | 44 return EmptyAccountId(); |
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 |