| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ |
| 7 |
| 8 #include "ui/gfx/geometry/insets.h" |
| 9 |
| 10 enum LayoutConstant { |
| 11 // Additional horizontal padding applied on the trailing edge of icon-label |
| 12 // views. |
| 13 ICON_LABEL_VIEW_TRAILING_PADDING, |
| 14 |
| 15 // The horizontal space between the edge and a bubble. |
| 16 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, |
| 17 |
| 18 // The additional vertical padding of a bubble. |
| 19 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, |
| 20 |
| 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, |
| 25 |
| 26 // Space between items in the location bar, as well as between items and the |
| 27 // edges. |
| 28 LOCATION_BAR_HORIZONTAL_PADDING, |
| 29 |
| 30 // The vertical padding of items in the location bar. |
| 31 LOCATION_BAR_VERTICAL_PADDING, |
| 32 |
| 33 // The number of pixels in the omnibox dropdown border image interior to |
| 34 // the actual border. |
| 35 OMNIBOX_DROPDOWN_BORDER_INTERIOR, |
| 36 |
| 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, |
| 42 |
| 43 // Additional horizontal padding between the elements in the toolbar. |
| 44 TOOLBAR_VIEW_ELEMENT_PADDING, |
| 45 |
| 46 // Padding between the right-edge of the location bar and browser actions. |
| 47 TOOLBAR_VIEW_LOCATION_BAR_RIGHT_PADDING, |
| 48 |
| 49 // The horizontal space between most items. |
| 50 TOOLBAR_VIEW_STANDARD_SPACING, |
| 51 }; |
| 52 |
| 53 enum LayoutInset { |
| 54 // In an omnibox dropdown row, the minimum distance between the icon and the |
| 55 // row edge. |
| 56 OMNIBOX_DROPDOWN_ICON, |
| 57 |
| 58 // In an omnibox dropdown row, the minimum distance between the text and the |
| 59 // row edge. |
| 60 OMNIBOX_DROPDOWN_TEXT, |
| 61 |
| 62 // The spacing between a ToolbarButton's image and its border. |
| 63 TOOLBAR_BUTTON, |
| 64 |
| 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, |
| 68 }; |
| 69 |
| 70 int GetLayoutConstant(LayoutConstant constant); |
| 71 gfx::Insets GetLayoutInsets(LayoutInset inset); |
| 72 |
| 73 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |