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

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

Issue 1306173002: Set font size to 14 in location bar for material design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: padding Created 5 years, 3 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/views/layout_constants.cc
diff --git a/chrome/browser/ui/views/layout_constants.cc b/chrome/browser/ui/views/layout_constants.cc
index 9182f797ce6ecb266f5456d86e39fcd02f9dea44..fef99efe7c1abb873e4b331e4c94232a79828404 100644
--- a/chrome/browser/ui/views/layout_constants.cc
+++ b/chrome/browser/ui/views/layout_constants.cc
@@ -13,8 +13,9 @@ int GetLayoutConstant(LayoutConstant constant) {
const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
const int kLocationBarHeight[] = {0, 28, 32};
const int kLocationBarHorizontalPadding[] = {3, 6, 6};
- const int kLocationBarVerticalPadding[] = {2, 6, 6};
+ const int kLocationBarVerticalPadding[] = {2, 2, 2};
Peter Kasting 2015/09/16 23:22:11 You didn't make this change in old versions of thi
tdanderson 2015/09/18 14:23:47 Yes, this is an intentional change. Changed the CL
const int kOmniboxDropdownBorderInterior[] = {6, 0, 0};
+ const int kOmniboxFontPixelSize[] = {16, 14, 14};
const int kToolbarViewContentShadowHeight[] = {0, 0, 0};
const int kToolbarViewContentShadowHeightAsh[] = {2, 0, 0};
const int kToolbarViewElementPadding[] = {0, 0, 8};
@@ -37,6 +38,8 @@ int GetLayoutConstant(LayoutConstant constant) {
return kLocationBarVerticalPadding[mode];
case OMNIBOX_DROPDOWN_BORDER_INTERIOR:
return kOmniboxDropdownBorderInterior[mode];
+ case OMNIBOX_FONT_PIXEL_SIZE:
+ return kOmniboxFontPixelSize[mode];
case TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT:
return kToolbarViewContentShadowHeight[mode];
case TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH:
« no previous file with comments | « chrome/browser/ui/views/layout_constants.h ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698