- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / ash / session_state_delegate_views.cc
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 "ui/gfx/image/image_skia.h"
11
12 namespace {
13 // This isn't really used. It is mainly here to make the compiler happy.
14 gfx::ImageSkia null_image;
15 }
16
17 SessionStateDelegate::SessionStateDelegate() {
18 }
19
20 SessionStateDelegate::~SessionStateDelegate() {
21 }
22
23 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const {
24   return 3;
25 }
26
27 int SessionStateDelegate::NumberOfLoggedInUsers() const {
28   return 1;
29 }
30
31 bool SessionStateDelegate::IsActiveUserSessionStarted() const {
32   return true;
33 }
34
35 bool SessionStateDelegate::CanLockScreen() const {
36   return false;
37 }
38
39 bool SessionStateDelegate::IsScreenLocked() const {
40   return false;
41 }
42
43 bool SessionStateDelegate::ShouldLockScreenBeforeSuspending() const {
44   return false;
45 }
46
47 void SessionStateDelegate::LockScreen() {
48 }
49
50 void SessionStateDelegate::UnlockScreen() {
51 }
52
53 bool SessionStateDelegate::IsUserSessionBlocked() const {
54   return false;
55 }
56
57 const base::string16 SessionStateDelegate::GetUserDisplayName(
58     ash::MultiProfileIndex index) const {
59   NOTIMPLEMENTED();
60   return UTF8ToUTF16("");
61 }
62
63 const std::string SessionStateDelegate::GetUserEmail(
64     ash::MultiProfileIndex index) const {
65   NOTIMPLEMENTED();
66   return "";
67 }
68
69 const std::string SessionStateDelegate::GetUserID(
70     ash::MultiProfileIndex index) const {
71   NOTIMPLEMENTED();
72   return "";
73 }
74
75 const gfx::ImageSkia& SessionStateDelegate::GetUserImage(
76     ash::MultiProfileIndex index) const {
77   NOTIMPLEMENTED();
78   // To make the compiler happy.
79   return null_image;
80 }
81
82 void SessionStateDelegate::GetLoggedInUsers(ash::UserIdList* users) {
83   NOTIMPLEMENTED();
84 }
85
86 void SessionStateDelegate::SwitchActiveUser(const std::string& user_id) {
87   NOTIMPLEMENTED();
88 }
89
90 void SessionStateDelegate::SwitchActiveUserToNext() {
91   NOTIMPLEMENTED();
92 }
93
94 void SessionStateDelegate::AddSessionStateObserver(
95     ash::SessionStateObserver* observer) {
96   NOTIMPLEMENTED();
97 }
98
99 void SessionStateDelegate::RemoveSessionStateObserver(
100     ash::SessionStateObserver* observer) {
101   NOTIMPLEMENTED();
102 }
103
104 bool SessionStateDelegate::TransferWindowToDesktopOfUser(
105     aura::Window* window,
106     ash::MultiProfileIndex index) {
107   NOTIMPLEMENTED();
108   return false;
109 }