Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_views.cc

Issue 14756019: Adding new user menu section to the SystemTrayMenu & refactoring of user access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More windows breakages addressed Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/ui/ash/session_state_delegate.h" 5 #include "chrome/browser/ui/ash/session_state_delegate.h"
6 6
7 #include "base/logging.h"
8 #include "base/string16.h"
9 #include "base/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
7 SessionStateDelegate::SessionStateDelegate() { 17 SessionStateDelegate::SessionStateDelegate() {
8 } 18 }
9 19
10 SessionStateDelegate::~SessionStateDelegate() { 20 SessionStateDelegate::~SessionStateDelegate() {
11 } 21 }
12 22
13 bool SessionStateDelegate::HasActiveUser() const { 23 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const {
14 return true; 24 return 3;
25 }
26
27 int SessionStateDelegate::NumberOfLoggedInUsers() const {
28 return 1;
15 } 29 }
16 30
17 bool SessionStateDelegate::IsActiveUserSessionStarted() const { 31 bool SessionStateDelegate::IsActiveUserSessionStarted() const {
18 return true; 32 return true;
19 } 33 }
20 34
21 bool SessionStateDelegate::CanLockScreen() const { 35 bool SessionStateDelegate::CanLockScreen() const {
22 return false; 36 return false;
23 } 37 }
24 38
25 bool SessionStateDelegate::IsScreenLocked() const { 39 bool SessionStateDelegate::IsScreenLocked() const {
26 return false; 40 return false;
27 } 41 }
28 42
29 void SessionStateDelegate::LockScreen() { 43 void SessionStateDelegate::LockScreen() {
30 } 44 }
31 45
32 void SessionStateDelegate::UnlockScreen() { 46 void SessionStateDelegate::UnlockScreen() {
33 } 47 }
48
49 const base::string16 SessionStateDelegate::GetUserDisplayName(
50 ash::MultiProfileIndex index) const {
51 NOTIMPLEMENTED();
52 return UTF8ToUTF16("");
53 }
54
55 const std::string SessionStateDelegate::GetUserEmail(
56 ash::MultiProfileIndex index) const {
57 NOTIMPLEMENTED();
58 return "";
59 }
60
61 const gfx::ImageSkia& SessionStateDelegate::GetUserImage(
62 ash::MultiProfileIndex index) const {
63 NOTIMPLEMENTED();
64 // To make the compiler happy.
65 return null_image;
66 }
67
68 void SessionStateDelegate::GetLoggedInUsers(
69 ash::UserEmailList* users) {
70 NOTIMPLEMENTED();
71 }
72
73 void SessionStateDelegate::SwitchActiveUser(const std::string& email) {
74 NOTIMPLEMENTED();
75 }
OLDNEW
« ash/session_state_delegate.h ('K') | « chrome/browser/ui/ash/session_state_delegate_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698