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

Side by Side Diff: chrome/browser/ui/views/layout_constants.h

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 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 #ifndef CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
6 #define CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
7 7
8 #include "ui/gfx/geometry/insets.h" 8 #include "ui/gfx/geometry/insets.h"
9 9
10 enum LayoutConstant { 10 enum LayoutConstant {
(...skipping 16 matching lines...) Expand all
27 // edges. 27 // edges.
28 LOCATION_BAR_HORIZONTAL_PADDING, 28 LOCATION_BAR_HORIZONTAL_PADDING,
29 29
30 // The vertical padding of items in the location bar. 30 // The vertical padding of items in the location bar.
31 LOCATION_BAR_VERTICAL_PADDING, 31 LOCATION_BAR_VERTICAL_PADDING,
32 32
33 // The number of pixels in the omnibox dropdown border image interior to 33 // The number of pixels in the omnibox dropdown border image interior to
34 // the actual border. 34 // the actual border.
35 OMNIBOX_DROPDOWN_BORDER_INTERIOR, 35 OMNIBOX_DROPDOWN_BORDER_INTERIOR,
36 36
37 // The font size to use in the location bar and omnibox dropdown, in pixels.
38 OMNIBOX_FONT_PIXEL_SIZE,
39
37 // Non-ash uses a rounded content area with no shadow in the assets. 40 // Non-ash uses a rounded content area with no shadow in the assets.
38 // Ash doesn't use a rounded content area and its top edge has an extra 41 // Ash doesn't use a rounded content area and its top edge has an extra
39 // shadow. 42 // shadow.
40 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT, 43 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT,
41 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH, 44 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH,
42 45
43 // Additional horizontal padding between the elements in the toolbar. 46 // Additional horizontal padding between the elements in the toolbar.
44 TOOLBAR_VIEW_ELEMENT_PADDING, 47 TOOLBAR_VIEW_ELEMENT_PADDING,
45 48
46 // Padding between the right-edge of the location bar and browser actions. 49 // Padding between the right-edge of the location bar and browser actions.
(...skipping 17 matching lines...) Expand all
64 67
65 // The minimum padding of the toolbar. The edge graphics have some built-in 68 // The minimum padding of the toolbar. The edge graphics have some built-in
66 // spacing, shadowing, so this accounts for that as well. 69 // spacing, shadowing, so this accounts for that as well.
67 TOOLBAR_VIEW, 70 TOOLBAR_VIEW,
68 }; 71 };
69 72
70 int GetLayoutConstant(LayoutConstant constant); 73 int GetLayoutConstant(LayoutConstant constant);
71 gfx::Insets GetLayoutInsets(LayoutInset inset); 74 gfx::Insets GetLayoutInsets(LayoutInset inset);
72 75
73 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698