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

Side by Side Diff: ash/test/test_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/test/shell_test_api.cc ('k') | ash/test/test_session_state_delegate.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 (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_
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ash/test/test_session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698