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

Unified Diff: ash/system/user/rounded_image_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/user/rounded_image_view.cc
diff --git a/ash/system/user/rounded_image_view.cc b/ash/system/user/rounded_image_view.cc
index b5a38bd560ebf0cc7647128dde0b89b92598c1c4..9c42a2c1e28d2534844a339e0b6a2e143de5b6ff 100644
--- a/ash/system/user/rounded_image_view.cc
+++ b/ash/system/user/rounded_image_view.cc
@@ -45,7 +45,7 @@ void RoundedImageView::SetCornerRadii(int top_left,
corner_radius_[3] = bottom_left;
}
-gfx::Size RoundedImageView::GetPreferredSize() {
+gfx::Size RoundedImageView::GetPreferredSize() const {
return gfx::Size(image_size_.width() + GetInsets().width(),
image_size_.height() + GetInsets().height());
}

Powered by Google App Engine
This is Rietveld 408576698