Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: ash/session/session_state_delegate.h

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/shelf/shelf_locking_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/shelf/shelf_locking_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698