| OLD | NEW |
| 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_views.h" | 5 #include "chrome/browser/ui/ash/session_state_delegate_views.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 // This isn't really used. It is mainly here to make the compiler happy. | 13 // This isn't really used. It is mainly here to make the compiler happy. |
| 14 gfx::ImageSkia null_image; | 14 gfx::ImageSkia null_image; |
| 15 } | 15 } |
| 16 | 16 |
| 17 SessionStateDelegate::SessionStateDelegate() { | 17 SessionStateDelegate::SessionStateDelegate() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 SessionStateDelegate::~SessionStateDelegate() { | 20 SessionStateDelegate::~SessionStateDelegate() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 content::BrowserContext* SessionStateDelegate::GetBrowserContextByIndex( |
| 24 ash::MultiProfileIndex index) { |
| 25 NOTIMPLEMENTED(); |
| 26 return NULL; |
| 27 } |
| 28 |
| 23 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const { | 29 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const { |
| 24 return 3; | 30 return 3; |
| 25 } | 31 } |
| 26 | 32 |
| 27 int SessionStateDelegate::NumberOfLoggedInUsers() const { | 33 int SessionStateDelegate::NumberOfLoggedInUsers() const { |
| 28 return 1; | 34 return 1; |
| 29 } | 35 } |
| 30 | 36 |
| 31 bool SessionStateDelegate::IsActiveUserSessionStarted() const { | 37 bool SessionStateDelegate::IsActiveUserSessionStarted() const { |
| 32 return true; | 38 return true; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return ""; | 72 return ""; |
| 67 } | 73 } |
| 68 | 74 |
| 69 const std::string SessionStateDelegate::GetUserID( | 75 const std::string SessionStateDelegate::GetUserID( |
| 70 ash::MultiProfileIndex index) const { | 76 ash::MultiProfileIndex index) const { |
| 71 NOTIMPLEMENTED(); | 77 NOTIMPLEMENTED(); |
| 72 return ""; | 78 return ""; |
| 73 } | 79 } |
| 74 | 80 |
| 75 const gfx::ImageSkia& SessionStateDelegate::GetUserImage( | 81 const gfx::ImageSkia& SessionStateDelegate::GetUserImage( |
| 76 ash::MultiProfileIndex index) const { | 82 content::BrowserContext* context) const { |
| 77 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
| 78 // To make the compiler happy. | 84 // To make the compiler happy. |
| 79 return null_image; | 85 return null_image; |
| 80 } | 86 } |
| 81 | 87 |
| 82 void SessionStateDelegate::GetLoggedInUsers(ash::UserIdList* users) { | 88 bool SessionStateDelegate::ShouldShowAvatar(aura::Window* window) { |
| 83 NOTIMPLEMENTED(); | 89 return false; |
| 84 } | 90 } |
| 85 | 91 |
| 86 void SessionStateDelegate::SwitchActiveUser(const std::string& user_id) { | 92 void SessionStateDelegate::SwitchActiveUser(const std::string& user_id) { |
| 87 NOTIMPLEMENTED(); | 93 NOTIMPLEMENTED(); |
| 88 } | 94 } |
| 89 | 95 |
| 90 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user) { | 96 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user) { |
| 91 NOTIMPLEMENTED(); | 97 NOTIMPLEMENTED(); |
| 92 } | 98 } |
| 93 | 99 |
| 94 void SessionStateDelegate::AddSessionStateObserver( | 100 void SessionStateDelegate::AddSessionStateObserver( |
| 95 ash::SessionStateObserver* observer) { | 101 ash::SessionStateObserver* observer) { |
| 96 NOTIMPLEMENTED(); | 102 NOTIMPLEMENTED(); |
| 97 } | 103 } |
| 98 | 104 |
| 99 void SessionStateDelegate::RemoveSessionStateObserver( | 105 void SessionStateDelegate::RemoveSessionStateObserver( |
| 100 ash::SessionStateObserver* observer) { | 106 ash::SessionStateObserver* observer) { |
| 101 NOTIMPLEMENTED(); | 107 NOTIMPLEMENTED(); |
| 102 } | 108 } |
| OLD | NEW |