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

Unified Diff: chrome/browser/ui/views/layout_constants.cc

Issue 1419673017: [MD] Twiddle padding of omnibox chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: chrome/browser/ui/views/layout_constants.cc
diff --git a/chrome/browser/ui/views/layout_constants.cc b/chrome/browser/ui/views/layout_constants.cc
index de59375c435eb208a224304b4f9e33a0ec334717..e2bcd3fc2a3b816abf1e2cf4e46db5c281e9137d 100644
--- a/chrome/browser/ui/views/layout_constants.cc
+++ b/chrome/browser/ui/views/layout_constants.cc
@@ -9,7 +9,10 @@
int GetLayoutConstant(LayoutConstant constant) {
const int kFindBarVerticalOffset[] = {1, 6, 6};
- const int kIconLabelViewInternalPadding[] = {3, 2, 2};
+ // The -1 means the label and the icon will overlap by a pixel.
+ const int kIconLabelViewInternalPadding[] = {3, -1, -1};
+ // Unused pre-MD.
+ const int kIconLabelViewLeadingPadding[] = {-99, 2, 2};
Peter Kasting 2015/11/07 02:36:21 If this isn't used pre-MD, then don't use LayoutCo
Evan Stade 2015/11/07 03:10:12 Done.
const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
const int kLocationBarBorderThickness[] = {2, 1, 1};
const int kLocationBarBubbleHorizontalPadding[] = {1, 4, 4};
@@ -46,6 +49,8 @@ int GetLayoutConstant(LayoutConstant constant) {
return kFindBarVerticalOffset[mode];
case ICON_LABEL_VIEW_INTERNAL_PADDING:
return kIconLabelViewInternalPadding[mode];
+ case ICON_LABEL_VIEW_LEADING_PADDING:
+ return kIconLabelViewLeadingPadding[mode];
case ICON_LABEL_VIEW_TRAILING_PADDING:
return kIconLabelViewTrailingPadding[mode];
case LOCATION_BAR_BORDER_THICKNESS:
« no previous file with comments | « chrome/browser/ui/views/layout_constants.h ('k') | chrome/browser/ui/views/location_bar/icon_label_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698