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

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

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash (cleaning remaining wm_window.h in c/b/ui) 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_SESSION_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_SESSION_SESSION_STATE_DELEGATE_H_
6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 9
10 namespace aura {
11 class Window;
12 }
13
10 namespace gfx { 14 namespace gfx {
11 class ImageSkia; 15 class ImageSkia;
12 } 16 }
13 17
14 namespace ash { 18 namespace ash {
15 19
16 class WmWindow;
17
18 // Delegate for checking and modifying the session state. 20 // Delegate for checking and modifying the session state.
19 // DEPRECATED in favor of SessionController/SessionControllerClient for mash. 21 // DEPRECATED in favor of SessionController/SessionControllerClient for mash.
20 // TODO(xiyuan): Remove this when SessionController etc are ready. 22 // TODO(xiyuan): Remove this when SessionController etc are ready.
21 class ASH_EXPORT SessionStateDelegate { 23 class ASH_EXPORT SessionStateDelegate {
22 public: 24 public:
23 virtual ~SessionStateDelegate() {} 25 virtual ~SessionStateDelegate() {}
24 26
25 // Whether or not the window's title should show the avatar. 27 // Whether or not the window's title should show the avatar.
26 virtual bool ShouldShowAvatar(WmWindow* window) const = 0; 28 virtual bool ShouldShowAvatar(aura::Window* window) const = 0;
27 29
28 // Returns the avatar image for the specified window. 30 // Returns the avatar image for the specified window.
29 virtual gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const = 0; 31 virtual gfx::ImageSkia GetAvatarImageForWindow(
32 aura::Window* window) const = 0;
30 }; 33 };
31 34
32 } // namespace ash 35 } // namespace ash
33 36
34 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ 37 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698