Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / ash / session_state_delegate_views.cc
blob68423e7db7eb6820243ce0928970583c0f7a9026
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"
12 namespace {
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 {
24 return 3;
27 int SessionStateDelegate::NumberOfLoggedInUsers() const {
28 return 1;
31 bool SessionStateDelegate::IsActiveUserSessionStarted() const {
32 return true;
35 bool SessionStateDelegate::CanLockScreen() const {
36 return false;
39 bool SessionStateDelegate::IsScreenLocked() const {
40 return false;
43 bool SessionStateDelegate::ShouldLockScreenBeforeSuspending() const {
44 return false;
47 void SessionStateDelegate::LockScreen() {
50 void SessionStateDelegate::UnlockScreen() {
53 bool SessionStateDelegate::IsUserSessionBlocked() const {
54 return false;
57 const base::string16 SessionStateDelegate::GetUserDisplayName(
58 ash::MultiProfileIndex index) const {
59 NOTIMPLEMENTED();
60 return base::UTF8ToUTF16("");
63 const std::string SessionStateDelegate::GetUserEmail(
64 ash::MultiProfileIndex index) const {
65 NOTIMPLEMENTED();
66 return "";
69 const std::string SessionStateDelegate::GetUserID(
70 ash::MultiProfileIndex index) const {
71 NOTIMPLEMENTED();
72 return "";
75 const gfx::ImageSkia& SessionStateDelegate::GetUserImage(
76 ash::MultiProfileIndex index) const {
77 NOTIMPLEMENTED();
78 // To make the compiler happy.
79 return null_image;
82 void SessionStateDelegate::GetLoggedInUsers(ash::UserIdList* users) {
83 NOTIMPLEMENTED();
86 void SessionStateDelegate::SwitchActiveUser(const std::string& user_id) {
87 NOTIMPLEMENTED();
90 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user) {
91 NOTIMPLEMENTED();
94 void SessionStateDelegate::AddSessionStateObserver(
95 ash::SessionStateObserver* observer) {
96 NOTIMPLEMENTED();
99 void SessionStateDelegate::RemoveSessionStateObserver(
100 ash::SessionStateObserver* observer) {
101 NOTIMPLEMENTED();
104 bool SessionStateDelegate::TransferWindowToDesktopOfUser(
105 aura::Window* window,
106 ash::MultiProfileIndex index) {
107 NOTIMPLEMENTED();
108 return false;