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: ui/views/layout/layout_manager.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/layout/layout_manager.h ('k') | ui/views/test/child_modal_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/layout_manager.cc
diff --git a/ui/views/layout/layout_manager.cc b/ui/views/layout/layout_manager.cc
index 188cc6f14fc8e1f5cb3c696f26796b2796614085..9a79ce75832b5bcbe771e7f6b40a5063abda2acd 100644
--- a/ui/views/layout/layout_manager.cc
+++ b/ui/views/layout/layout_manager.cc
@@ -17,7 +17,8 @@ void LayoutManager::Installed(View* host) {
void LayoutManager::Uninstalled(View* host) {
}
-int LayoutManager::GetPreferredHeightForWidth(View* host, int width) {
+int LayoutManager::GetPreferredHeightForWidth(const View* host,
+ int width) const {
return GetPreferredSize(host).height();
}
« no previous file with comments | « ui/views/layout/layout_manager.h ('k') | ui/views/test/child_modal_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698