| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/ash/session_state_delegate_views.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "base/strings/string16.h" | |
| 9 #include "base/strings/utf_string_conversions.h" | |
| 10 #include "components/user_manager/empty_user_info.h" | |
| 11 #include "ui/gfx/image/image_skia.h" | |
| 12 | |
| 13 SessionStateDelegate::SessionStateDelegate() { | |
| 14 } | |
| 15 | |
| 16 SessionStateDelegate::~SessionStateDelegate() { | |
| 17 } | |
| 18 | |
| 19 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const { | |
| 20 return 3; | |
| 21 } | |
| 22 | |
| 23 int SessionStateDelegate::NumberOfLoggedInUsers() const { | |
| 24 return 1; | |
| 25 } | |
| 26 | |
| 27 bool SessionStateDelegate::IsActiveUserSessionStarted() const { | |
| 28 return true; | |
| 29 } | |
| 30 | |
| 31 bool SessionStateDelegate::CanLockScreen() const { | |
| 32 return false; | |
| 33 } | |
| 34 | |
| 35 bool SessionStateDelegate::IsScreenLocked() const { | |
| 36 return false; | |
| 37 } | |
| 38 | |
| 39 bool SessionStateDelegate::ShouldLockScreenBeforeSuspending() const { | |
| 40 return false; | |
| 41 } | |
| 42 | |
| 43 void SessionStateDelegate::LockScreen() { | |
| 44 } | |
| 45 | |
| 46 void SessionStateDelegate::UnlockScreen() { | |
| 47 } | |
| 48 | |
| 49 bool SessionStateDelegate::IsUserSessionBlocked() const { | |
| 50 return false; | |
| 51 } | |
| 52 | |
| 53 ash::SessionStateDelegate::SessionState SessionStateDelegate::GetSessionState() | |
| 54 const { | |
| 55 return SESSION_STATE_ACTIVE; | |
| 56 } | |
| 57 | |
| 58 const user_manager::UserInfo* SessionStateDelegate::GetUserInfo( | |
| 59 ash::UserIndex index) const { | |
| 60 static const user_manager::UserInfo* kUserInfo = | |
| 61 new user_manager::EmptyUserInfo(); | |
| 62 return kUserInfo; | |
| 63 } | |
| 64 | |
| 65 bool SessionStateDelegate::ShouldShowAvatar(aura::Window* window) const { | |
| 66 return false; | |
| 67 } | |
| 68 | |
| 69 gfx::ImageSkia SessionStateDelegate::GetAvatarImageForWindow( | |
| 70 aura::Window* window) const { | |
| 71 return gfx::ImageSkia(); | |
| 72 } | |
| 73 | |
| 74 void SessionStateDelegate::SwitchActiveUser(const AccountId& account_id) { | |
| 75 NOTIMPLEMENTED(); | |
| 76 } | |
| 77 | |
| 78 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user) { | |
| 79 NOTIMPLEMENTED(); | |
| 80 } | |
| 81 | |
| 82 bool SessionStateDelegate::IsMultiProfileAllowedByPrimaryUserPolicy() const { | |
| 83 return true; | |
| 84 } | |
| 85 | |
| 86 void SessionStateDelegate::AddSessionStateObserver( | |
| 87 ash::SessionStateObserver* observer) { | |
| 88 NOTIMPLEMENTED(); | |
| 89 } | |
| 90 | |
| 91 void SessionStateDelegate::RemoveSessionStateObserver( | |
| 92 ash::SessionStateObserver* observer) { | |
| 93 NOTIMPLEMENTED(); | |
| 94 } | |
| OLD | NEW |