OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ash/session_state_delegate_stub.h" | 5 #include "ash/session_state_delegate_stub.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell/example_factory.h" | 8 #include "ash/shell/example_factory.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 SessionStateDelegateStub::SessionStateDelegateStub() : screen_locked_(false) { | 14 SessionStateDelegateStub::SessionStateDelegateStub() : screen_locked_(false) { |
15 } | 15 } |
16 | 16 |
17 SessionStateDelegateStub::~SessionStateDelegateStub() { | 17 SessionStateDelegateStub::~SessionStateDelegateStub() { |
18 } | 18 } |
19 | 19 |
| 20 content::BrowserContext* |
| 21 SessionStateDelegateStub::GetBrowserContextByIndex( |
| 22 MultiProfileIndex index) { |
| 23 return NULL; |
| 24 } |
| 25 |
20 int SessionStateDelegateStub::GetMaximumNumberOfLoggedInUsers() const { | 26 int SessionStateDelegateStub::GetMaximumNumberOfLoggedInUsers() const { |
21 return 3; | 27 return 3; |
22 } | 28 } |
23 | 29 |
24 int SessionStateDelegateStub::NumberOfLoggedInUsers() const { | 30 int SessionStateDelegateStub::NumberOfLoggedInUsers() const { |
25 return 1; | 31 return 1; |
26 } | 32 } |
27 | 33 |
28 bool SessionStateDelegateStub::IsActiveUserSessionStarted() const { | 34 bool SessionStateDelegateStub::IsActiveUserSessionStarted() const { |
29 return true; | 35 return true; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 MultiProfileIndex index) const { | 71 MultiProfileIndex index) const { |
66 return "stub-user@domain.com"; | 72 return "stub-user@domain.com"; |
67 } | 73 } |
68 | 74 |
69 const std::string SessionStateDelegateStub::GetUserID( | 75 const std::string SessionStateDelegateStub::GetUserID( |
70 MultiProfileIndex index) const { | 76 MultiProfileIndex index) const { |
71 return GetUserEmail(index); | 77 return GetUserEmail(index); |
72 } | 78 } |
73 | 79 |
74 const gfx::ImageSkia& SessionStateDelegateStub::GetUserImage( | 80 const gfx::ImageSkia& SessionStateDelegateStub::GetUserImage( |
75 MultiProfileIndex index) const { | 81 content::BrowserContext* context) const { |
76 return null_image_; | 82 return null_image_; |
77 } | 83 } |
78 | 84 |
79 void SessionStateDelegateStub::GetLoggedInUsers(UserIdList* users) { | 85 bool SessionStateDelegateStub::ShouldShowAvatar(aura::Window* window) { |
| 86 return false; |
80 } | 87 } |
81 | 88 |
82 void SessionStateDelegateStub::SwitchActiveUser(const std::string& user_id) { | 89 void SessionStateDelegateStub::SwitchActiveUser(const std::string& user_id) { |
83 } | 90 } |
84 | 91 |
85 void SessionStateDelegateStub::CycleActiveUser(CycleUser cycle_user) { | 92 void SessionStateDelegateStub::CycleActiveUser(CycleUser cycle_user) { |
86 } | 93 } |
87 | 94 |
88 void SessionStateDelegateStub::AddSessionStateObserver( | 95 void SessionStateDelegateStub::AddSessionStateObserver( |
89 ash::SessionStateObserver* observer) { | 96 ash::SessionStateObserver* observer) { |
90 } | 97 } |
91 | 98 |
92 void SessionStateDelegateStub::RemoveSessionStateObserver( | 99 void SessionStateDelegateStub::RemoveSessionStateObserver( |
93 ash::SessionStateObserver* observer) { | 100 ash::SessionStateObserver* observer) { |
94 } | 101 } |
95 | 102 |
96 } // namespace ash | 103 } // namespace ash |
OLD | NEW |