| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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_SESSION_SESSION_STATE_DELEGATE_H_ | |
| 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 | |
| 10 namespace gfx { | |
| 11 class ImageSkia; | |
| 12 } | |
| 13 | |
| 14 namespace ash { | |
| 15 | |
| 16 class WmWindow; | |
| 17 | |
| 18 // Delegate for checking and modifying the session state. | |
| 19 // DEPRECATED in favor of SessionController/SessionControllerClient for mash. | |
| 20 // TODO(xiyuan): Remove this when SessionController etc are ready. | |
| 21 class ASH_EXPORT SessionStateDelegate { | |
| 22 public: | |
| 23 virtual ~SessionStateDelegate() {} | |
| 24 | |
| 25 // Whether or not the window's title should show the avatar. | |
| 26 virtual bool ShouldShowAvatar(WmWindow* window) const = 0; | |
| 27 | |
| 28 // Returns the avatar image for the specified window. | |
| 29 virtual gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const = 0; | |
| 30 }; | |
| 31 | |
| 32 } // namespace ash | |
| 33 | |
| 34 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ | |
| OLD | NEW |