Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / views / layout / layout_constants.h
blob1cee4c00d6962d1cf78b1ac7e2cdb61f5b60316b
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 // Vertical spacing between the edge of the window and the
66 // top or bottom of a button (when using new style dialogs).
67 const int kButtonVEdgeMarginNew = 20;
69 // Vertical spacing between the edge of the window and the
70 // left or right of a button (when using new style dialogs).
71 const int kButtonHEdgeMarginNew = 20;
73 // Horizontal spacing between buttons that are logically related.
74 const int kRelatedButtonHSpacing = 6;
76 // Indent of checkboxes relative to related text.
77 const int kCheckboxIndent = 10;
79 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox)
80 // and the start of its corresponding text.
81 const int kItemLabelSpacing = 10;
83 } // namespace views
85 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_