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

Unified Diff: ash/system/chromeos/power/power_status_view.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more const for Windows. 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
Index: ash/system/chromeos/power/power_status_view.cc
diff --git a/ash/system/chromeos/power/power_status_view.cc b/ash/system/chromeos/power/power_status_view.cc
index 058ac08f35208af3d8c260c98c0ab19dad772245..760c3d4da642691f83ba7c08170c3203fd6740b9 100644
--- a/ash/system/chromeos/power/power_status_view.cc
+++ b/ash/system/chromeos/power/power_status_view.cc
@@ -197,12 +197,12 @@ void PowerStatusView::ChildPreferredSizeChanged(views::View* child) {
PreferredSizeChanged();
}
-gfx::Size PowerStatusView::GetPreferredSize() {
+gfx::Size PowerStatusView::GetPreferredSize() const {
gfx::Size size = views::View::GetPreferredSize();
return gfx::Size(size.width(), kTrayPopupItemHeight);
}
-int PowerStatusView::GetHeightForWidth(int width) {
+int PowerStatusView::GetHeightForWidth(int width) const {
return kTrayPopupItemHeight;
}

Powered by Google App Engine
This is Rietveld 408576698