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

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

Issue 2453133002: [ash-md] Makes Wi-Fi header row sticky when network list is scrolled (Closed)
Patch Set: [ash-md] Makes Wi-Fi header row sticky when network list is scrolled (fixed targeting) Created 4 years, 2 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: ui/views/layout/box_layout.h
diff --git a/ui/views/layout/box_layout.h b/ui/views/layout/box_layout.h
index 9a87984d51f77cec0caa488860fa6dc1986f9e28..8507cb06fd655f9fd38f416100cbb7e9d2b66ff9 100644
--- a/ui/views/layout/box_layout.h
+++ b/ui/views/layout/box_layout.h
@@ -97,6 +97,24 @@ class VIEWS_EXPORT BoxLayout : public LayoutManager {
// Sets the flex for views to use when none is specified.
void SetDefaultFlex(int default_flex);
+ // Positions individual child.
+ void LayoutChild(View* child,
tdanderson 2016/10/28 19:42:41 nit: make private?
varkha 2016/11/02 02:03:21 Acknowledged.
+ const gfx::Rect& child_area,
+ int main_free_space,
+ int flex_sum,
+ int* main_position,
+ int* current_flex,
+ int* total_padding);
+
+ // Positions all children. Can be overridden to change the visible order.
tdanderson 2016/10/28 19:42:41 nit: It would be nice to have some documentation h
varkha 2016/11/02 02:03:21 Acknowledged.
+ virtual void LayoutChildren(View* host,
+ const gfx::Rect& child_area,
+ int main_free_space,
+ int flex_sum,
+ int main_position,
+ int current_flex,
+ int* total_padding);
+
// Overridden from views::LayoutManager:
void Installed(View* host) override;
void ViewRemoved(View* host, View* view) override;

Powered by Google App Engine
This is Rietveld 408576698