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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
6 #define CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
8 #include "ui/gfx/geometry/insets.h"
11 // Additional horizontal padding applied on the trailing edge of icon-label
13 ICON_LABEL_VIEW_TRAILING_PADDING
,
15 // The horizontal space between the edge and a bubble.
16 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING
,
18 // The additional vertical padding of a bubble.
19 LOCATION_BAR_BUBBLE_VERTICAL_PADDING
,
21 // The height to be occupied by the LocationBar. For
22 // MaterialDesignController::NON_MATERIAL the height is determined from image
26 // Space between items in the location bar, as well as between items and the
28 LOCATION_BAR_HORIZONTAL_PADDING
,
30 // The vertical padding of items in the location bar.
31 LOCATION_BAR_VERTICAL_PADDING
,
33 // The number of pixels in the omnibox dropdown border image interior to
35 OMNIBOX_DROPDOWN_BORDER_INTERIOR
,
37 // The font size to use in the location bar and omnibox dropdown, in pixels.
38 OMNIBOX_FONT_PIXEL_SIZE
,
40 // The amount of overlap between two adjacent tabs.
43 // The vertical overlap of the tabstrip atop the toolbar.
44 TABSTRIP_TOOLBAR_OVERLAP
,
46 // The height of the shadow region above the top of the tabs.
47 TABSTRIP_TOP_SHADOW_HEIGHT
,
49 // The amount by which the tab close button should overlap the trailing
50 // padding region after the tab's contents region.
51 TAB_CLOSE_BUTTON_TRAILING_PADDING_OVERLAP
,
53 // The horizontal space between a tab's favicon and its title.
54 TAB_FAVICON_TITLE_SPACING
,
56 // The maximum width we'll allow for a tab's title, when the tabstrip is wide
57 // enough for tabs to take as much space as they want.
58 TAB_MAXIMUM_TITLE_WIDTH
,
60 // Width available for content inside a pinned tab.
61 TAB_PINNED_CONTENT_WIDTH
,
63 // Non-ash uses a rounded content area with no shadow in the assets.
64 // Ash doesn't use a rounded content area and its top edge has an extra
66 TOOLBAR_CONTENT_SHADOW_HEIGHT
,
67 TOOLBAR_CONTENT_SHADOW_HEIGHT_ASH
,
69 // Additional horizontal padding between the elements in the toolbar.
70 TOOLBAR_ELEMENT_PADDING
,
72 // Padding between the right-edge of the location bar and browser actions.
73 TOOLBAR_LOCATION_BAR_RIGHT_PADDING
,
75 // The horizontal space between most items in the toolbar.
76 TOOLBAR_STANDARD_SPACING
,
80 // In an omnibox dropdown row, the minimum distance between the icon and the
82 OMNIBOX_DROPDOWN_ICON
,
84 // In an omnibox dropdown row, the minimum distance between the text and the
86 OMNIBOX_DROPDOWN_TEXT
,
88 // The padding inside the tab bounds that defines the tab contents region.
91 // The minimum padding of the toolbar. The edge graphics have some built-in
92 // spacing, shadowing, so this accounts for that as well.
95 // The spacing between a ToolbarButton's image and its border.
99 int GetLayoutConstant(LayoutConstant constant
);
100 gfx::Insets
GetLayoutInsets(LayoutInset inset
);
102 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_