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

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

Issue 2625083003: Implement Harmony-style consistent button widths for Collected Cookies. (Closed)
Patch Set: selfnits Created 3 years, 9 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/grid_layout.h
diff --git a/ui/views/layout/grid_layout.h b/ui/views/layout/grid_layout.h
index e6a1ee35496efa63e064a1b845fde3f87f061fa0..020f0be3c0c62f4986012b12837afb6bcecc3005 100644
--- a/ui/views/layout/grid_layout.h
+++ b/ui/views/layout/grid_layout.h
@@ -300,6 +300,11 @@ class VIEWS_EXPORT ColumnSet {
// LinkColumnSizes(0, 1, -1);
void LinkColumnSizes(int first, ...);
+ // When sizing linked columns, columns wider than |size_limit| are ignored.
+ void set_linked_column_size_limit(int size_limit) {
+ linked_column_size_limit_ = size_limit;
+ }
+
// ID of this ColumnSet.
int id() const { return id_; }
@@ -355,6 +360,9 @@ class VIEWS_EXPORT ColumnSet {
// ID for this columnset.
const int id_;
+ // Threshold to ignore a column when unifying same sized columns.
Peter Kasting 2017/03/07 02:50:37 Nit: "Columns wider than this limit will be ignore
tapted 2017/03/07 12:06:41 Done.
Peter Kasting 2017/03/07 21:22:49 SGTM
+ int linked_column_size_limit_;
+
// The columns.
std::vector<std::unique_ptr<Column>> columns_;

Powered by Google App Engine
This is Rietveld 408576698