| 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 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
| 11 | 11 |
| 12 namespace ash { | 12 namespace ash { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 class TestSessionStateDelegate : public SessionStateDelegate { | 15 class TestSessionStateDelegate : public SessionStateDelegate { |
| 16 public: | 16 public: |
| 17 TestSessionStateDelegate(); | 17 TestSessionStateDelegate(); |
| 18 ~TestSessionStateDelegate() override; | 18 ~TestSessionStateDelegate() override; |
| 19 | 19 |
| 20 // SessionStateDelegate: | 20 // SessionStateDelegate: |
| 21 bool ShouldShowAvatar(WmWindow* window) const override; | 21 bool ShouldShowAvatar(aura::Window* window) const override; |
| 22 gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const override; | 22 gfx::ImageSkia GetAvatarImageForWindow(aura::Window* window) const override; |
| 23 | 23 |
| 24 // Setting non NULL image enables avatar icon. | 24 // Setting non NULL image enables avatar icon. |
| 25 void SetUserImage(const gfx::ImageSkia& user_image); | 25 void SetUserImage(const gfx::ImageSkia& user_image); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 gfx::ImageSkia user_image_; | 28 gfx::ImageSkia user_image_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 30 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace test | 33 } // namespace test |
| 34 } // namespace ash | 34 } // namespace ash |
| 35 | 35 |
| 36 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 36 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |