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.
5 #include "chrome/browser/ui/ash/session_state_delegate_views.h"
7 #include "base/logging.h"
8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/gfx/image/image_skia.h"
13 // This isn't really used. It is mainly here to make the compiler happy.
14 gfx::ImageSkia null_image
;
17 SessionStateDelegate::SessionStateDelegate() {
20 SessionStateDelegate::~SessionStateDelegate() {
23 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const {
27 int SessionStateDelegate::NumberOfLoggedInUsers() const {
31 bool SessionStateDelegate::IsActiveUserSessionStarted() const {
35 bool SessionStateDelegate::CanLockScreen() const {
39 bool SessionStateDelegate::IsScreenLocked() const {
43 bool SessionStateDelegate::ShouldLockScreenBeforeSuspending() const {
47 void SessionStateDelegate::LockScreen() {
50 void SessionStateDelegate::UnlockScreen() {
53 bool SessionStateDelegate::IsUserSessionBlocked() const {
57 const base::string16
SessionStateDelegate::GetUserDisplayName(
58 ash::MultiProfileIndex index
) const {
60 return base::UTF8ToUTF16("");
63 const std::string
SessionStateDelegate::GetUserEmail(
64 ash::MultiProfileIndex index
) const {
69 const std::string
SessionStateDelegate::GetUserID(
70 ash::MultiProfileIndex index
) const {
75 const gfx::ImageSkia
& SessionStateDelegate::GetUserImage(
76 ash::MultiProfileIndex index
) const {
78 // To make the compiler happy.
82 void SessionStateDelegate::GetLoggedInUsers(ash::UserIdList
* users
) {
86 void SessionStateDelegate::SwitchActiveUser(const std::string
& user_id
) {
90 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user
) {
94 void SessionStateDelegate::AddSessionStateObserver(
95 ash::SessionStateObserver
* observer
) {
99 void SessionStateDelegate::RemoveSessionStateObserver(
100 ash::SessionStateObserver
* observer
) {
104 bool SessionStateDelegate::TransferWindowToDesktopOfUser(
105 aura::Window
* window
,
106 ash::MultiProfileIndex index
) {