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

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

Issue 1998493002: Update omnibox chips in MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: slight refactor Created 4 years, 7 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: chrome/browser/ui/layout_constants.cc
diff --git a/chrome/browser/ui/layout_constants.cc b/chrome/browser/ui/layout_constants.cc
index e1661cb3709ea5c577b98cde3d60408e505fc2ec..68e567e8d7e1df19a508fbe4ded79e64a7988ca7 100644
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -13,8 +13,9 @@ int GetLayoutConstant(LayoutConstant constant) {
const int kIconLabelViewInternalSpacing[] = {3, 5, 5};
const int kIconLabelViewTrailingPadding[] = {2, 6, 6};
const int kLocationBarBorderThickness[] = {2, 1, 1};
+ const int kLocationBarPreEditSpacing[] = {0, 2, 2};
const int kLocationBarBubbleFontVerticalPadding[] = {1, 2, 4};
- const int kLocationBarBubbleHorizontalPadding[] = {1, 4, 4};
+ const int kLocationBarBubbleHorizontalPadding[] = {1, 0, 0};
const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
const int kLocationBarBubbleAnchorVerticalInset[] = {5, 6, 8};
const int kLocationBarHeight[] = {27, 28, 32};
@@ -52,6 +53,8 @@ int GetLayoutConstant(LayoutConstant constant) {
return kIconLabelViewTrailingPadding[mode];
case LOCATION_BAR_BORDER_THICKNESS:
return kLocationBarBorderThickness[mode];
+ case LOCATION_BAR_PRE_EDIT_SPACING:
+ return kLocationBarPreEditSpacing[mode];
case LOCATION_BAR_BUBBLE_FONT_VERTICAL_PADDING:
return kLocationBarBubbleFontVerticalPadding[mode];
case LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING:

Powered by Google App Engine
This is Rietveld 408576698