| 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 "ash/test/test_session_state_delegate.h" | 5 #include "ash/test/test_session_state_delegate.h" |
| 6 | 6 |
| 7 namespace ash { | 7 namespace ash { |
| 8 namespace test { | 8 namespace test { |
| 9 | 9 |
| 10 TestSessionStateDelegate::TestSessionStateDelegate() = default; | 10 TestSessionStateDelegate::TestSessionStateDelegate() = default; |
| 11 TestSessionStateDelegate::~TestSessionStateDelegate() = default; | 11 TestSessionStateDelegate::~TestSessionStateDelegate() = default; |
| 12 | 12 |
| 13 void TestSessionStateDelegate::SetUserImage(const gfx::ImageSkia& user_image) { | 13 void TestSessionStateDelegate::SetUserImage(const gfx::ImageSkia& user_image) { |
| 14 user_image_ = user_image; | 14 user_image_ = user_image; |
| 15 } | 15 } |
| 16 | 16 |
| 17 bool TestSessionStateDelegate::ShouldShowAvatar(WmWindow* window) const { | 17 bool TestSessionStateDelegate::ShouldShowAvatar(aura::Window* window) const { |
| 18 return !user_image_.isNull(); | 18 return !user_image_.isNull(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 gfx::ImageSkia TestSessionStateDelegate::GetAvatarImageForWindow( | 21 gfx::ImageSkia TestSessionStateDelegate::GetAvatarImageForWindow( |
| 22 WmWindow* window) const { | 22 aura::Window* window) const { |
| 23 return gfx::ImageSkia(); | 23 return gfx::ImageSkia(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 } // namespace test | 26 } // namespace test |
| 27 } // namespace ash | 27 } // namespace ash |
| OLD | NEW |