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

Side by Side Diff: ash/test/test_session_state_delegate.cc

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: rebase 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
(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 #include "ash/test/test_session_state_delegate.h"
6
7 namespace ash {
8 namespace test {
9
10 TestSessionStateDelegate::TestSessionStateDelegate() = default;
11 TestSessionStateDelegate::~TestSessionStateDelegate() = default;
12
13 void TestSessionStateDelegate::SetUserImage(const gfx::ImageSkia& user_image) {
14 user_image_ = user_image;
15 }
16
17 bool TestSessionStateDelegate::ShouldShowAvatar(WmWindow* window) const {
18 return !user_image_.isNull();
19 }
20
21 gfx::ImageSkia TestSessionStateDelegate::GetAvatarImageForWindow(
22 WmWindow* window) const {
23 return gfx::ImageSkia();
24 }
25
26 } // namespace test
27 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698