| 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_LAYOUT_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ | 6 #define CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/geometry/insets.h" | 8 #include "ui/gfx/geometry/insets.h" |
| 9 #include "ui/gfx/geometry/size.h" | 9 #include "ui/gfx/geometry/size.h" |
| 10 | 10 |
| 11 enum LayoutConstant { | 11 enum LayoutConstant { |
| 12 // Vertical offset from top of content to the top of find bar. | 12 // Vertical offset from top of content to the top of find bar. |
| 13 FIND_BAR_TOOLBAR_OVERLAP, | 13 FIND_BAR_TOOLBAR_OVERLAP, |
| 14 | 14 |
| 15 // The thickness of the location bar's border. | 15 // The thickness of the location bar's border. |
| 16 LOCATION_BAR_BORDER_THICKNESS, | 16 LOCATION_BAR_BORDER_THICKNESS, |
| 17 | 17 |
| 18 // The vertical padding between the edge of a location bar bubble and its | 18 // The vertical padding between the edge of a location bar bubble and its |
| 19 // contained text. | 19 // contained text. |
| 20 LOCATION_BAR_BUBBLE_FONT_VERTICAL_PADDING, | 20 LOCATION_BAR_BUBBLE_FONT_VERTICAL_PADDING, |
| 21 | 21 |
| 22 // The horizontal space between the edge and a bubble. |
| 23 LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, |
| 24 |
| 22 // The additional vertical padding of a bubble. | 25 // The additional vertical padding of a bubble. |
| 23 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, | 26 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, |
| 24 | 27 |
| 25 // The vertical inset to apply to the bounds of a location bar bubble's anchor | 28 // The vertical inset to apply to the bounds of a location bar bubble's anchor |
| 26 // view, to bring the bubble closer to the anchor. This compensates for the | 29 // view, to bring the bubble closer to the anchor. This compensates for the |
| 27 // space between the bottoms of most such views and the visible bottoms of the | 30 // space between the bottoms of most such views and the visible bottoms of the |
| 28 // images inside. | 31 // images inside. |
| 29 LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET, | 32 LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET, |
| 30 | 33 |
| 31 // The height to be occupied by the LocationBar. | 34 // The height to be occupied by the LocationBar. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // The visible size of the new tab button; does not include any Fitts' Law | 104 // The visible size of the new tab button; does not include any Fitts' Law |
| 102 // extensions. | 105 // extensions. |
| 103 NEW_TAB_BUTTON, | 106 NEW_TAB_BUTTON, |
| 104 }; | 107 }; |
| 105 | 108 |
| 106 int GetLayoutConstant(LayoutConstant constant); | 109 int GetLayoutConstant(LayoutConstant constant); |
| 107 gfx::Insets GetLayoutInsets(LayoutInset inset); | 110 gfx::Insets GetLayoutInsets(LayoutInset inset); |
| 108 gfx::Size GetLayoutSize(LayoutSize size); | 111 gfx::Size GetLayoutSize(LayoutSize size); |
| 109 | 112 |
| 110 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ | 113 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |