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

Side by Side Diff: ash/test/test_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 (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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698