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

Unified Diff: ui/views/layout/grid_layout.cc

Issue 2622603003: Hide icons in message center on lock screen (Closed)
Patch Set: Addressed comment and add tests Created 3 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
« ui/views/layout/grid_layout.h ('K') | « ui/views/layout/grid_layout.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/grid_layout.cc
diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc
index b45f1ca474dbdf7a17a9fd3acb1348b99213e9d2..9f68476957addcbf54d146f1dac32a4e398b97a9 100644
--- a/ui/views/layout/grid_layout.cc
+++ b/ui/views/layout/grid_layout.cc
@@ -685,9 +685,16 @@ void GridLayout::StartRowWithPadding(float vertical_resize, int column_set_id,
}
void GridLayout::StartRow(float vertical_resize, int column_set_id) {
+ StartRowWithHeight(vertical_resize, column_set_id, 0);
+}
+
+void GridLayout::StartRowWithHeight(float vertical_resize,
+ int column_set_id,
+ int height) {
+ DCHECK_GE(height, 0);
ColumnSet* column_set = GetColumnSet(column_set_id);
DCHECK(column_set);
- AddRow(base::MakeUnique<Row>(0, vertical_resize, column_set));
+ AddRow(base::MakeUnique<Row>(height, vertical_resize, column_set));
}
void GridLayout::AddPaddingRow(float vertical_resize, int pixel_count) {
« ui/views/layout/grid_layout.h ('K') | « ui/views/layout/grid_layout.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698