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