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

Unified Diff: views/fill_layout.h

Issue 6245003: Views-implementation of AutocompleteEditView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 11 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: views/fill_layout.h
diff --git a/views/fill_layout.h b/views/fill_layout.h
index bede6addbae323b49924fd766dd11cde6f660c1b..3ef5a4ef39764dc6ee36bd25eefd9e379bd4e3a2 100644
--- a/views/fill_layout.h
+++ b/views/fill_layout.h
@@ -21,6 +21,9 @@ namespace views {
class FillLayout : public LayoutManager {
public:
FillLayout();
+ // Set |exclude_insets| to true to exclude the insets area when
+ // laying out a child.
+ explicit FillLayout(bool exclude_insets);
Peter Kasting 2011/01/20 19:44:37 Nit: Having a null constructor makes this arg effe
oshima 2011/01/20 21:35:48 I actually did this in AutocompleteEditViewViews,
virtual ~FillLayout();
// Overridden from LayoutManager:
@@ -28,6 +31,9 @@ class FillLayout : public LayoutManager {
virtual gfx::Size GetPreferredSize(View* host);
private:
+ // True to exclude the insets when laying out a child.
Peter Kasting 2011/01/20 19:44:37 Nit: "If true, we exclude our insets when laying o
+ bool exclude_insets_;
+
DISALLOW_COPY_AND_ASSIGN(FillLayout);
};

Powered by Google App Engine
This is Rietveld 408576698