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

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

Issue 9465042: views: Add option in BoxLayout to spread blank space among the child views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | ui/views/layout/box_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/box_layout.h
diff --git a/ui/views/layout/box_layout.h b/ui/views/layout/box_layout.h
index 723511978e3e7991817cc645fe1563881b920ef4..cc23c71d2ce36134d0c26bfd91c63df32cfe77f0 100644
--- a/ui/views/layout/box_layout.h
+++ b/ui/views/layout/box_layout.h
@@ -40,6 +40,10 @@ class VIEWS_EXPORT BoxLayout : public LayoutManager {
int between_child_spacing);
virtual ~BoxLayout();
+ void set_spread_blank_space(bool spread) {
+ spread_blank_space_ = spread;
+ }
+
// Overridden from views::LayoutManager:
virtual void Layout(View* host) OVERRIDE;
virtual gfx::Size GetPreferredSize(View* host) OVERRIDE;
@@ -54,6 +58,10 @@ class VIEWS_EXPORT BoxLayout : public LayoutManager {
// Spacing to put in between child views.
const int between_child_spacing_;
+ // Whether the available extra space should be distributed among the child
+ // views.
+ bool spread_blank_space_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(BoxLayout);
};
« no previous file with comments | « no previous file | ui/views/layout/box_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698