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

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

Issue 2783023002: Use an InsetMetric instead of a constant for vector button padding. (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/layout/layout_constants.h
diff --git a/ui/views/layout/layout_constants.h b/ui/views/layout/layout_constants.h
index 98133510d1cb57289ddff493be26d8623a8c349f..2cc7aaf33dde53b56bef24f65f6528601c47832e 100644
--- a/ui/views/layout/layout_constants.h
+++ b/ui/views/layout/layout_constants.h
@@ -92,6 +92,9 @@ const int kMinimumButtonWidth = 48;
// Minimum width of dialog buttons.
constexpr int kDialogMinimumButtonWidth = 75;
+// Extra space around vector buttons to increase their event target size.
+constexpr int kVectorButtonExtraTouchSize = 4;
+
} // namespace views
#endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698