| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 5 #ifndef VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| 6 #define VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 6 #define VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file contains some constants we use to implement our standard panel | 9 #include "ui/views/layout/layout_constants.h" |
| 10 // layout. | 10 // TODO(tfarina): remove this file once all includes have been updated. |
| 11 // see: spec 21/4 | |
| 12 | |
| 13 namespace views { | |
| 14 | |
| 15 // Left or right margin. | |
| 16 const int kPanelHorizMargin = 13; | |
| 17 | |
| 18 // Top or bottom margin. | |
| 19 const int kPanelVertMargin = 13; | |
| 20 | |
| 21 // If some UI has some sub UI. Indent horizontally by the following value. | |
| 22 const int kPanelHorizIndentation = 24; | |
| 23 | |
| 24 // When several controls are aligned vertically, the baseline should be spaced | |
| 25 // by the following number of pixels. | |
| 26 const int kPanelVerticalSpacing = 32; | |
| 27 | |
| 28 // Vertical spacing between sub UI. | |
| 29 const int kPanelSubVerticalSpacing = 24; | |
| 30 | |
| 31 // Vertical spacing between a label and some control. | |
| 32 const int kLabelToControlVerticalSpacing = 8; | |
| 33 | |
| 34 // Small horizontal spacing between controls that are logically related. | |
| 35 const int kRelatedControlSmallHorizontalSpacing = 8; | |
| 36 | |
| 37 // Horizontal spacing between controls that are logically related. | |
| 38 const int kRelatedControlHorizontalSpacing = 8; | |
| 39 | |
| 40 // Vertical spacing between controls that are logically related. | |
| 41 const int kRelatedControlVerticalSpacing = 8; | |
| 42 | |
| 43 // Small vertical spacing between controls that are logically related. | |
| 44 const int kRelatedControlSmallVerticalSpacing = 4; | |
| 45 | |
| 46 // Horizontal spacing between controls that are logically unrelated. | |
| 47 const int kUnrelatedControlHorizontalSpacing = 12; | |
| 48 | |
| 49 // Larger horizontal spacing between unrelated controls. | |
| 50 const int kUnrelatedControlLargeHorizontalSpacing = 20; | |
| 51 | |
| 52 // Vertical spacing between controls that are logically unrelated. | |
| 53 const int kUnrelatedControlVerticalSpacing = 20; | |
| 54 | |
| 55 // Larger vertical spacing between unrelated controls. | |
| 56 const int kUnrelatedControlLargeVerticalSpacing = 30; | |
| 57 | |
| 58 // Vertical spacing between the edge of the window and the | |
| 59 // top or bottom of a button. | |
| 60 const int kButtonVEdgeMargin = 6; | |
| 61 | |
| 62 // Vertical spacing between the edge of the window and the | |
| 63 // left or right of a button. | |
| 64 const int kButtonHEdgeMargin = 7; | |
| 65 | |
| 66 // Horizontal spacing between buttons that are logically related. | |
| 67 const int kRelatedButtonHSpacing = 6; | |
| 68 | |
| 69 } // namespace views | |
| 70 | 11 |
| 71 #endif // VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 12 #endif // VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |