| 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 66e1a1f001725d59f0f51eece47c6b78ccd37770..d3204ff7531eb1c0124cfa26d4827a442588e047 100644
|
| --- a/chrome/browser/ui/views/layout_constants.cc
|
| +++ b/chrome/browser/ui/views/layout_constants.cc
|
| @@ -8,7 +8,9 @@
|
| #include "ui/base/resource/material_design/material_design_controller.h"
|
|
|
| int GetLayoutConstant(LayoutConstant constant) {
|
| + const int kIconLabelViewInternalPadding[] = {3, 2, 2};
|
| const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
|
| + const int kLocationBarBubbleFontPixelSize[] = {16, 11, 11};
|
| const int kLocationBarBubbleHorizontalPadding[] = {1, 5, 5};
|
| const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
|
| const int kLocationBarHeight[] = {0, 28, 32};
|
| @@ -35,8 +37,12 @@ int GetLayoutConstant(LayoutConstant constant) {
|
|
|
| const int mode = ui::MaterialDesignController::GetMode();
|
| switch (constant) {
|
| + case ICON_LABEL_VIEW_INTERNAL_PADDING:
|
| + return kIconLabelViewInternalPadding[mode];
|
| case ICON_LABEL_VIEW_TRAILING_PADDING:
|
| return kIconLabelViewTrailingPadding[mode];
|
| + case LOCATION_BAR_BUBBLE_FONT_PIXEL_SIZE:
|
| + return kLocationBarBubbleFontPixelSize[mode];
|
| case LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING:
|
| return kLocationBarBubbleHorizontalPadding[mode];
|
| case LOCATION_BAR_BUBBLE_VERTICAL_PADDING:
|
|
|