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

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

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Used ifdef instead of duplicated code for delegate initialization 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/examples/dialog_example.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 620a28de6c6df48df58cb81d4c5c538b53f10c37..98133510d1cb57289ddff493be26d8623a8c349f 100644
--- a/ui/views/layout/layout_constants.h
+++ b/ui/views/layout/layout_constants.h
@@ -71,7 +71,7 @@ constexpr int kButtonVEdgeMarginNew = 20;
constexpr int kButtonHEdgeMarginNew = 20;
// Spacing between the edge of the window and the edge of the close button.
-const int kCloseButtonMargin = 7;
+constexpr int kCloseButtonMargin = 7;
// Horizontal spacing between buttons that are logically related.
constexpr int kRelatedButtonHSpacing = 6;
@@ -90,7 +90,7 @@ const int kButtonHorizontalPadding = 16;
const int kMinimumButtonWidth = 48;
// Minimum width of dialog buttons.
-const int kDialogMinimumButtonWidth = 75;
+constexpr int kDialogMinimumButtonWidth = 75;
} // namespace views
« no previous file with comments | « ui/views/examples/dialog_example.cc ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698