| 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 23 matching lines...) Expand all Loading... |
| 34 // The height to be occupied by the LocationBar. | 34 // The height to be occupied by the LocationBar. |
| 35 LOCATION_BAR_HEIGHT, | 35 LOCATION_BAR_HEIGHT, |
| 36 | 36 |
| 37 // 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 |
| 38 // edges. | 38 // edges. |
| 39 LOCATION_BAR_HORIZONTAL_PADDING, | 39 LOCATION_BAR_HORIZONTAL_PADDING, |
| 40 | 40 |
| 41 // Space between the location bar edge and contents. | 41 // Space between the location bar edge and contents. |
| 42 LOCATION_BAR_VERTICAL_PADDING, | 42 LOCATION_BAR_VERTICAL_PADDING, |
| 43 | 43 |
| 44 // The number of pixels in the omnibox dropdown border image interior to | |
| 45 // the actual border. | |
| 46 OMNIBOX_DROPDOWN_BORDER_INTERIOR, | |
| 47 | |
| 48 // The font size to use in the location bar and omnibox dropdown, in pixels. | 44 // The font size to use in the location bar and omnibox dropdown, in pixels. |
| 49 OMNIBOX_FONT_PIXEL_SIZE, | 45 OMNIBOX_FONT_PIXEL_SIZE, |
| 50 | 46 |
| 51 // The amount of overlap between the last tab and the new tab button. | 47 // The amount of overlap between the last tab and the new tab button. |
| 52 TABSTRIP_NEW_TAB_BUTTON_OVERLAP, | 48 TABSTRIP_NEW_TAB_BUTTON_OVERLAP, |
| 53 | 49 |
| 54 // The amount of overlap between two adjacent tabs. | 50 // The amount of overlap between two adjacent tabs. |
| 55 TABSTRIP_TAB_OVERLAP, | 51 TABSTRIP_TAB_OVERLAP, |
| 56 | 52 |
| 57 // The horizontal space between a tab's favicon and its title. | 53 // The horizontal space between a tab's favicon and its title. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // 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 |
| 109 // extensions. | 105 // extensions. |
| 110 NEW_TAB_BUTTON, | 106 NEW_TAB_BUTTON, |
| 111 }; | 107 }; |
| 112 | 108 |
| 113 int GetLayoutConstant(LayoutConstant constant); | 109 int GetLayoutConstant(LayoutConstant constant); |
| 114 gfx::Insets GetLayoutInsets(LayoutInset inset); | 110 gfx::Insets GetLayoutInsets(LayoutInset inset); |
| 115 gfx::Size GetLayoutSize(LayoutSize size); | 111 gfx::Size GetLayoutSize(LayoutSize size); |
| 116 | 112 |
| 117 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ | 113 #endif // CHROME_BROWSER_UI_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |