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

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

Issue 2783023002: Use an InsetMetric instead of a constant for vector button padding. (Closed)
Patch Set: revert the stuff that got mixed in from another patch 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
« no previous file with comments | « ui/views/controls/button/image_button_factory.cc ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
sky 2017/03/29 23:45:31 If you add this constant here how do you prevent p
Peter Kasting 2017/03/29 23:47:21 I think the answer is "Allen's refactoring lands a
Bret 2017/03/29 23:52:00 Right, since we're moving towards deleting this fi
+
} // namespace views
#endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
« no previous file with comments | « ui/views/controls/button/image_button_factory.cc ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698