Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / chrome / browser / ui / views / layout_constants.h
bloba23bf0a47797d1e38d1a418d5c734c8beb8d1d6f
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"
10 enum LayoutConstant {
11 // Additional horizontal padding applied on the trailing edge of icon-label
12 // views.
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
23 // assets.
24 LOCATION_BAR_HEIGHT,
26 // Space between items in the location bar, as well as between items and the
27 // edges.
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
34 // the actual border.
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 // Non-ash uses a rounded content area with no shadow in the assets.
41 // Ash doesn't use a rounded content area and its top edge has an extra
42 // shadow.
43 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT,
44 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH,
46 // Additional horizontal padding between the elements in the toolbar.
47 TOOLBAR_VIEW_ELEMENT_PADDING,
49 // Padding between the right-edge of the location bar and browser actions.
50 TOOLBAR_VIEW_LOCATION_BAR_RIGHT_PADDING,
52 // The horizontal space between most items.
53 TOOLBAR_VIEW_STANDARD_SPACING,
56 enum LayoutInset {
57 // In an omnibox dropdown row, the minimum distance between the icon and the
58 // row edge.
59 OMNIBOX_DROPDOWN_ICON,
61 // In an omnibox dropdown row, the minimum distance between the text and the
62 // row edge.
63 OMNIBOX_DROPDOWN_TEXT,
65 // The spacing between a ToolbarButton's image and its border.
66 TOOLBAR_BUTTON,
68 // The minimum padding of the toolbar. The edge graphics have some built-in
69 // spacing, shadowing, so this accounts for that as well.
70 TOOLBAR_VIEW,
73 int GetLayoutConstant(LayoutConstant constant);
74 gfx::Insets GetLayoutInsets(LayoutInset inset);
76 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_