Fix cookie searchbox bug.
[chromium-blink-merge.git] / ui / views / layout / layout_constants.h
blob267c855830ecb55d584c6c47aadcee3d5b279318
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
8 // This file contains some constants we use to implement our standard panel
9 // layout.
10 // see: spec 21/4
12 namespace views {
14 // Left or right margin.
15 const int kPanelHorizMargin = 13;
17 // Top or bottom margin.
18 const int kPanelVertMargin = 13;
20 // If some UI has some sub UI. Indent horizontally by the following value.
21 const int kPanelHorizIndentation = 24;
23 // When several controls are aligned vertically, the baseline should be spaced
24 // by the following number of pixels.
25 const int kPanelVerticalSpacing = 32;
27 // Vertical spacing between sub UI.
28 const int kPanelSubVerticalSpacing = 24;
30 // Vertical spacing between a label and some control.
31 const int kLabelToControlVerticalSpacing = 8;
33 // Small horizontal spacing between controls that are logically related.
34 const int kRelatedControlSmallHorizontalSpacing = 8;
36 // Horizontal spacing between controls that are logically related.
37 const int kRelatedControlHorizontalSpacing = 8;
39 // Vertical spacing between controls that are logically related.
40 const int kRelatedControlVerticalSpacing = 8;
42 // Small vertical spacing between controls that are logically related.
43 const int kRelatedControlSmallVerticalSpacing = 4;
45 // Horizontal spacing between controls that are logically unrelated.
46 const int kUnrelatedControlHorizontalSpacing = 12;
48 // Larger horizontal spacing between unrelated controls.
49 const int kUnrelatedControlLargeHorizontalSpacing = 20;
51 // Vertical spacing between controls that are logically unrelated.
52 const int kUnrelatedControlVerticalSpacing = 20;
54 // Larger vertical spacing between unrelated controls.
55 const int kUnrelatedControlLargeVerticalSpacing = 30;
57 // Vertical spacing between the edge of the window and the
58 // top or bottom of a button.
59 const int kButtonVEdgeMargin = 9;
61 // Vertical spacing between the edge of the window and the
62 // left or right of a button.
63 const int kButtonHEdgeMargin = 13;
65 // Horizontal spacing between buttons that are logically related.
66 const int kRelatedButtonHSpacing = 6;
68 // Indent of checkboxes relative to related text.
69 const int kCheckboxIndent = 10;
71 } // namespace views
73 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_