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

Unified Diff: ui/views/views_delegate.h

Issue 2750063002: views: implement dialog width snapping (Closed)
Patch Set: 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/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 04324b50a4edba52b08125bd4bd80a32b436a015..1c5d90eaae21d6a183d7a5a7e5e6037b3a370789 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -80,6 +80,8 @@ enum class DistanceMetric {
CLOSE_BUTTON_MARGIN,
// The default minimum width of a dialog button.
DIALOG_BUTTON_MINIMUM_WIDTH,
+ // Dialog widths are snapped upwards to a multiple of this unit.
+ DIALOG_WIDTH_SNAPPING_UNIT,
// The spacing between a pair of related horizontal buttons, used for
// dialog layout.
RELATED_BUTTON_HORIZONTAL,

Powered by Google App Engine
This is Rietveld 408576698