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

Unified Diff: ui/views/layout/layout_manager.h

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/grid_layout_unittest.cc ('k') | ui/views/layout/layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/layout_manager.h
diff --git a/ui/views/layout/layout_manager.h b/ui/views/layout/layout_manager.h
index f678e721179ef86dda1284be01c6a93bdc0bd536..d10e09ed381311ef15bab5eb3c6d9c05f58fe4ce 100644
--- a/ui/views/layout/layout_manager.h
+++ b/ui/views/layout/layout_manager.h
@@ -42,11 +42,11 @@ class VIEWS_EXPORT LayoutManager {
// Return the preferred size which is the size required to give each
// children their respective preferred size.
- virtual gfx::Size GetPreferredSize(View* host) = 0;
+ virtual gfx::Size GetPreferredSize(const View* host) const = 0;
// Returns the preferred height for the specified width. The default
// implementation returns the value from GetPreferredSize.
- virtual int GetPreferredHeightForWidth(View* host, int width);
+ virtual int GetPreferredHeightForWidth(const View* host, int width) const;
// Notification that a view has been added.
virtual void ViewAdded(View* host, View* view);
« no previous file with comments | « ui/views/layout/grid_layout_unittest.cc ('k') | ui/views/layout/layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698