Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/ui/views/layout_constants.h

Issue 1402453002: Parametrize some more constants that will be changing in MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {
(...skipping 15 matching lines...) Expand all
26 // assets. 26 // assets.
27 LOCATION_BAR_HEIGHT, 27 LOCATION_BAR_HEIGHT,
28 28
29 // Space between items in the location bar, as well as between items and the 29 // Space between items in the location bar, as well as between items and the
30 // edges. 30 // edges.
31 LOCATION_BAR_HORIZONTAL_PADDING, 31 LOCATION_BAR_HORIZONTAL_PADDING,
32 32
33 // The vertical padding of items in the location bar. 33 // The vertical padding of items in the location bar.
34 LOCATION_BAR_VERTICAL_PADDING, 34 LOCATION_BAR_VERTICAL_PADDING,
35 35
36 // The width of the New Tab button.
37 NEW_TAB_BUTTON_WIDTH,
38
36 // The number of pixels in the omnibox dropdown border image interior to 39 // The number of pixels in the omnibox dropdown border image interior to
37 // the actual border. 40 // the actual border.
38 OMNIBOX_DROPDOWN_BORDER_INTERIOR, 41 OMNIBOX_DROPDOWN_BORDER_INTERIOR,
39 42
40 // The font size to use in the location bar and omnibox dropdown, in pixels. 43 // The font size to use in the location bar and omnibox dropdown, in pixels.
41 OMNIBOX_FONT_PIXEL_SIZE, 44 OMNIBOX_FONT_PIXEL_SIZE,
42 45
46 // The amount of overlap between the last tab and the new tab button.
47 TABSTRIP_NEW_TAB_BUTTON_OVERLAP,
48
43 // The amount of overlap between two adjacent tabs. 49 // The amount of overlap between two adjacent tabs.
44 TABSTRIP_TAB_OVERLAP, 50 TABSTRIP_TAB_OVERLAP,
45 51
46 // The vertical overlap of the tabstrip atop the toolbar. 52 // The vertical overlap of the tabstrip atop the toolbar.
47 TABSTRIP_TOOLBAR_OVERLAP, 53 TABSTRIP_TOOLBAR_OVERLAP,
48 54
49 // The amount by which the tab close button should overlap the trailing 55 // The amount by which the tab close button should overlap the trailing
50 // padding region after the tab's contents region. 56 // padding region after the tab's contents region.
51 TAB_CLOSE_BUTTON_TRAILING_PADDING_OVERLAP, 57 TAB_CLOSE_BUTTON_TRAILING_PADDING_OVERLAP,
52 58
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 TOOLBAR, 103 TOOLBAR,
98 104
99 // The spacing between a ToolbarButton's image and its border. 105 // The spacing between a ToolbarButton's image and its border.
100 TOOLBAR_BUTTON, 106 TOOLBAR_BUTTON,
101 }; 107 };
102 108
103 int GetLayoutConstant(LayoutConstant constant); 109 int GetLayoutConstant(LayoutConstant constant);
104 gfx::Insets GetLayoutInsets(LayoutInset inset); 110 gfx::Insets GetLayoutInsets(LayoutInset inset);
105 111
106 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_ 112 #endif // CHROME_BROWSER_UI_VIEWS_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc ('k') | chrome/browser/ui/views/layout_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698