| 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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // The additional vertical padding of a bubble. | 25 // The additional vertical padding of a bubble. |
| 26 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, | 26 LOCATION_BAR_BUBBLE_VERTICAL_PADDING, |
| 27 | 27 |
| 28 // 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 |
| 29 // 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 |
| 30 // 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 |
| 31 // images inside. | 31 // images inside. |
| 32 LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET, | 32 LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET, |
| 33 | 33 |
| 34 // The height to be occupied by the LocationBar. For | 34 // The height to be occupied by the LocationBar. |
| 35 // MaterialDesignController::NON_MATERIAL the height is determined from image | |
| 36 // assets. | |
| 37 LOCATION_BAR_HEIGHT, | 35 LOCATION_BAR_HEIGHT, |
| 38 | 36 |
| 39 // Space between items in the location bar, as well as between items and the | 37 // Space between items in the location bar, as well as between items and the |
| 40 // edges. | 38 // edges. |
| 41 LOCATION_BAR_HORIZONTAL_PADDING, | 39 LOCATION_BAR_HORIZONTAL_PADDING, |
| 42 | 40 |
| 43 // Space between the location bar edge and contents. | 41 // Space between the location bar edge and contents. |
| 44 LOCATION_BAR_VERTICAL_PADDING, | 42 LOCATION_BAR_VERTICAL_PADDING, |
| 45 | 43 |
| 46 // The number of pixels in the omnibox dropdown border image interior to | 44 // The number of pixels in the omnibox dropdown border image interior to |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // The visible size of the new tab button; does not include any Fitts' Law | 128 // The visible size of the new tab button; does not include any Fitts' Law |
| 131 // extensions. | 129 // extensions. |
| 132 NEW_TAB_BUTTON, | 130 NEW_TAB_BUTTON, |
| 133 }; | 131 }; |
| 134 | 132 |
| 135 int GetLayoutConstant(LayoutConstant constant); | 133 int GetLayoutConstant(LayoutConstant constant); |
| 136 gfx::Insets GetLayoutInsets(LayoutInset inset); | 134 gfx::Insets GetLayoutInsets(LayoutInset inset); |
| 137 gfx::Size GetLayoutSize(LayoutSize size); | 135 gfx::Size GetLayoutSize(LayoutSize size); |
| 138 | 136 |
| 139 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ | 137 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |