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

Unified Diff: ash/common/system/tray/hover_highlight_view.cc

Issue 2165133002: Set maximum size for HoverHighlightView right icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/hover_highlight_view.cc
diff --git a/ash/common/system/tray/hover_highlight_view.cc b/ash/common/system/tray/hover_highlight_view.cc
index dfcc8a724d1188efd685777de4e437bc22c6b568..01173d96504a19c66dace23661454e14aec357bb 100644
--- a/ash/common/system/tray/hover_highlight_view.cc
+++ b/ash/common/system/tray/hover_highlight_view.cc
@@ -52,7 +52,9 @@ void HoverHighlightView::AddRightIcon(const gfx::ImageSkia& image) {
DCHECK(box_layout_);
DCHECK(!right_icon_);
- right_icon_ = new FixedSizedImageView(kTrayPopupDetailsIconWidth, 0);
+ right_icon_ = new views::ImageView();
+ right_icon_->SetImageSize(
+ gfx::Size(kTrayPopupDetailsIconWidth, kTrayPopupDetailsIconWidth));
stevenjb 2016/07/21 20:32:05 Is this not a problem for other FixedSizedImageVie
jdufault 2016/07/22 21:44:58 From my current understanding, FixedSizedImageView
stevenjb 2016/07/22 21:50:40 Fair enough, I just wanted to make sure we had tho
right_icon_->SetImage(image);
right_icon_->SetEnabled(enabled());
AddChildView(right_icon_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698