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

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

Issue 2860953002: Harmony: Apply the upper bound on equal-sized button widths in DialogClientView. (Closed)
Patch Set: Make it 112, per http://crbug.com/671820#c19 Created 3 years, 8 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/layout_provider.h
diff --git a/ui/views/layout/layout_provider.h b/ui/views/layout/layout_provider.h
index f6b964054109d5f872fe47430ea56f042b645827..71c8f7ee6215fc7b92ac12c56208c255bae16ab2 100644
--- a/ui/views/layout/layout_provider.h
+++ b/ui/views/layout/layout_provider.h
@@ -48,6 +48,10 @@ enum DistanceMetric {
// The default padding to add on each side of a button's label.
DISTANCE_BUTTON_HORIZONTAL_PADDING = VIEWS_DISTANCE_START,
+ // The maximum width a button can have and still influence the sizes of
+ // other linked buttons. This allows short buttons to have linked widths
+ // without long buttons making things overly wide.
+ DISTANCE_BUTTON_MAX_LINKABLE_WIDTH,
// The distance between a dialog's edge and the close button in the upper
// trailing corner.
DISTANCE_CLOSE_BUTTON_MARGIN,

Powered by Google App Engine
This is Rietveld 408576698