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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 | « ash/system/tray/hover_highlight_view.h ('k') | ash/system/tray/special_popup_row.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/hover_highlight_view.cc
diff --git a/ash/system/tray/hover_highlight_view.cc b/ash/system/tray/hover_highlight_view.cc
index 539cb722cb54aaa0ec20e5cdb8fdcf9ea3b0ec79..e87708cac04a1d9da117aca6ee777baa6f854bbd 100644
--- a/ash/system/tray/hover_highlight_view.cc
+++ b/ash/system/tray/hover_highlight_view.cc
@@ -147,14 +147,14 @@ void HoverHighlightView::GetAccessibleState(ui::AXViewState* state) {
}
}
-gfx::Size HoverHighlightView::GetPreferredSize() {
+gfx::Size HoverHighlightView::GetPreferredSize() const {
gfx::Size size = ActionableView::GetPreferredSize();
if (!expandable_ || size.height() < kTrayPopupItemHeight)
size.set_height(kTrayPopupItemHeight);
return size;
}
-int HoverHighlightView::GetHeightForWidth(int width) {
+int HoverHighlightView::GetHeightForWidth(int width) const {
return GetPreferredSize().height();
}
« no previous file with comments | « ash/system/tray/hover_highlight_view.h ('k') | ash/system/tray/special_popup_row.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698