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

Side by Side 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: . Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/layout_constants.h" 5 #include "chrome/browser/ui/layout_constants.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/base/material_design/material_design_controller.h" 9 #include "ui/base/material_design/material_design_controller.h"
10 10
11 int GetLayoutConstant(LayoutConstant constant) { 11 int GetLayoutConstant(LayoutConstant constant) {
12 const int kFindBarVerticalOffset[] = {1, 6, 6}; 12 const int kFindBarVerticalOffset[] = {1, 6, 6};
13 const int kIconLabelViewInternalSpacing[] = {3, 5, 5}; 13 const int kIconLabelViewInternalSpacing[] = {3, 5, 5};
14 const int kIconLabelViewTrailingPadding[] = {2, 6, 6}; 14 const int kIconLabelViewTrailingPadding[] = {2, 6, 6};
15 const int kLocationBarBorderThickness[] = {2, 1, 1}; 15 const int kLocationBarBorderThickness[] = {2, 1, 1};
16 const int kLocationBarBubbleFontVerticalPadding[] = {1, 2, 4}; 16 const int kLocationBarBubbleFontVerticalPadding[] = {1, 2, 4};
17 const int kLocationBarBubbleHorizontalPadding[] = {1, 4, 4}; 17 const int kLocationBarBubbleHorizontalPadding[] = {1, 0, 0};
18 const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3}; 18 const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
19 const int kLocationBarBubbleAnchorVerticalInset[] = {5, 6, 8}; 19 const int kLocationBarBubbleAnchorVerticalInset[] = {5, 6, 8};
20 const int kLocationBarHeight[] = {27, 28, 32}; 20 const int kLocationBarHeight[] = {27, 28, 32};
21 const int kLocationBarHorizontalPadding[] = {3, 6, 6}; 21 const int kLocationBarHorizontalPadding[] = {3, 6, 6};
22 const int kLocationBarVerticalPadding[] = {0, 1, 1}; 22 const int kLocationBarVerticalPadding[] = {0, 1, 1};
23 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0}; 23 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0};
24 const int kOmniboxFontPixelSize[] = {16, 14, 14}; 24 const int kOmniboxFontPixelSize[] = {16, 14, 14};
25 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 0, 0}; 25 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 0, 0};
26 const int kTabFaviconTitleSpacing[] = {4, 6, 6}; 26 const int kTabFaviconTitleSpacing[] = {4, 6, 6};
27 const int kTabHeight[] = {29, 29, 33}; 27 const int kTabHeight[] = {29, 29, 33};
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const int kNewTabButtonHeight[] = {18, 18, 21}; 148 const int kNewTabButtonHeight[] = {18, 18, 21};
149 149
150 const int mode = ui::MaterialDesignController::GetMode(); 150 const int mode = ui::MaterialDesignController::GetMode();
151 switch (size) { 151 switch (size) {
152 case NEW_TAB_BUTTON: 152 case NEW_TAB_BUTTON:
153 return gfx::Size(kNewTabButtonWidth[mode], kNewTabButtonHeight[mode]); 153 return gfx::Size(kNewTabButtonWidth[mode], kNewTabButtonHeight[mode]);
154 } 154 }
155 NOTREACHED(); 155 NOTREACHED();
156 return gfx::Size(); 156 return gfx::Size();
157 } 157 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('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