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 horizontal space between the edge and a bubble. | 21 // The horizontal space between the edge and a bubble. |
22 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, | 22 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, |
23 | 23 |
24 // The additional vertical padding of a bubble. | 24 // The additional vertical padding of a bubble. |
25 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, | 25 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, |
26 | 26 |
27 // The thickness of the location bar's border. | |
28 LOCATION_BAR_EDGE_THICKNESS, | |
Peter Kasting
2015/10/30 21:07:14
Nit: Use BORDER rather than EDGE since semanticall
jonross
2015/11/02 16:36:22
Done.
| |
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, |
31 | 34 |
32 // Space between items in the location bar, as well as between items and the | 35 // Space between items in the location bar, as well as between items and the |
33 // edges. | 36 // edges. |
34 LOCATION_BAR_HORIZONTAL_PADDING, | 37 LOCATION_BAR_HORIZONTAL_PADDING, |
35 | 38 |
36 // The vertical padding of items in the location bar. | 39 // The vertical padding of items in the location bar. |
(...skipping 73 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 |