Create c/b/ui/views/layout_constants.*.
[chromium-blink-merge.git] / chrome / browser / ui / views / layout_constants.h
blob84261f67259b243104bfa67644b297a47bf9caa3
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 // 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
39 // shadow.
40 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT,
41 TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH,
43 // Additional horizontal padding between the elements in the toolbar.
44 TOOLBAR_VIEW_ELEMENT_PADDING,
46 // Padding between the right-edge of the location bar and browser actions.
47 TOOLBAR_VIEW_LOCATION_BAR_RIGHT_PADDING,
49 // The horizontal space between most items.
50 TOOLBAR_VIEW_STANDARD_SPACING,
53 enum LayoutInset {
54 // In an omnibox dropdown row, the minimum distance between the icon and the
55 // row edge.
56 OMNIBOX_DROPDOWN_ICON,
58 // In an omnibox dropdown row, the minimum distance between the text and the
59 // row edge.
60 OMNIBOX_DROPDOWN_TEXT,
62 // The spacing between a ToolbarButton's image and its border.
63 TOOLBAR_BUTTON,
65 // The minimum padding of the toolbar. The edge graphics have some built-in
66 // spacing, shadowing, so this accounts for that as well.
67 TOOLBAR_VIEW,
70 int GetLayoutConstant(LayoutConstant constant);
71 gfx::Insets GetLayoutInsets(LayoutInset inset);
73 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_