| OLD | NEW |
| 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 { |
| 11 // Vertical offset from top of content to the top of find bar. | 11 // Vertical offset from top of content to the top of find bar. |
| 12 FIND_BAR_TOOLBAR_OVERLAP, | 12 FIND_BAR_TOOLBAR_OVERLAP, |
| 13 | 13 |
| 14 // Horizontal padding applied between items of icon-label views. | 14 // Horizontal padding applied between items of icon-label views. |
| 15 ICON_LABEL_VIEW_INTERNAL_PADDING, | 15 ICON_LABEL_VIEW_INTERNAL_PADDING, |
| 16 | 16 |
| 17 // Additional horizontal padding applied on the trailing edge of icon-label | 17 // Additional horizontal padding applied on the trailing edge of icon-label |
| 18 // views. | 18 // views. |
| 19 ICON_LABEL_VIEW_TRAILING_PADDING, | 19 ICON_LABEL_VIEW_TRAILING_PADDING, |
| 20 | 20 |
| 21 // The thickness of the location bar's border. |
| 22 LOCATION_BAR_BORDER_THICKNESS, |
| 23 |
| 21 // The horizontal space between the edge and a bubble. | 24 // The horizontal space between the edge and a bubble. |
| 22 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, | 25 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, |
| 23 | 26 |
| 24 // The additional vertical padding of a bubble. | 27 // The additional vertical padding of a bubble. |
| 25 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, | 28 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, |
| 26 | 29 |
| 27 // The height to be occupied by the LocationBar. For | 30 // The height to be occupied by the LocationBar. For |
| 28 // MaterialDesignController::NON_MATERIAL the height is determined from image | 31 // MaterialDesignController::NON_MATERIAL the height is determined from image |
| 29 // assets. | 32 // assets. |
| 30 LOCATION_BAR_HEIGHT, | 33 LOCATION_BAR_HEIGHT, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 TOOLBAR, | 113 TOOLBAR, |
| 111 | 114 |
| 112 // The spacing between a ToolbarButton's image and its border. | 115 // The spacing between a ToolbarButton's image and its border. |
| 113 TOOLBAR_BUTTON, | 116 TOOLBAR_BUTTON, |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 int GetLayoutConstant(LayoutConstant constant); | 119 int GetLayoutConstant(LayoutConstant constant); |
| 117 gfx::Insets GetLayoutInsets(LayoutInset inset); | 120 gfx::Insets GetLayoutInsets(LayoutInset inset); |
| 118 | 121 |
| 119 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |