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

Unified Diff: ui/views/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 | « ui/views/view.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 598070686a67bdb02e4980e45a5cff4ed02c7584..1f3c0a5d82e97e035ed4c581fedafabe137a57a4 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -424,7 +424,7 @@ gfx::Rect View::GetBoundsInScreen() const {
return gfx::Rect(origin, size());
}
-gfx::Size View::GetPreferredSize() {
+gfx::Size View::GetPreferredSize() const {
if (layout_manager_.get())
return layout_manager_->GetPreferredSize(this);
return gfx::Size();
@@ -440,7 +440,7 @@ void View::SizeToPreferredSize() {
SetBounds(x(), y(), prefsize.width(), prefsize.height());
}
-gfx::Size View::GetMinimumSize() {
+gfx::Size View::GetMinimumSize() const {
return GetPreferredSize();
}
@@ -448,7 +448,7 @@ gfx::Size View::GetMaximumSize() {
return gfx::Size();
}
-int View::GetHeightForWidth(int w) {
+int View::GetHeightForWidth(int w) const {
if (layout_manager_.get())
return layout_manager_->GetPreferredHeightForWidth(this, w);
return GetPreferredSize().height();
« no previous file with comments | « ui/views/view.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698