| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| 6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| 7 | 7 |
| 8 // This file contains some constants we use to implement our standard panel | 8 // This file contains some constants we use to implement our standard panel |
| 9 // layout. | 9 // layout. |
| 10 // see: spec 21/4 | 10 // see: spec 21/4 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Small vertical spacing between controls that are logically related. | 42 // Small vertical spacing between controls that are logically related. |
| 43 const int kRelatedControlSmallVerticalSpacing = 4; | 43 const int kRelatedControlSmallVerticalSpacing = 4; |
| 44 | 44 |
| 45 // Horizontal spacing between controls that are logically unrelated. | 45 // Horizontal spacing between controls that are logically unrelated. |
| 46 const int kUnrelatedControlHorizontalSpacing = 12; | 46 const int kUnrelatedControlHorizontalSpacing = 12; |
| 47 | 47 |
| 48 // Larger horizontal spacing between unrelated controls. | 48 // Larger horizontal spacing between unrelated controls. |
| 49 const int kUnrelatedControlLargeHorizontalSpacing = 20; | 49 const int kUnrelatedControlLargeHorizontalSpacing = 20; |
| 50 | 50 |
| 51 // Vertical spacing between controls that are logically unrelated. | 51 // Vertical spacing between controls that are logically unrelated. |
| 52 #if defined(OS_MACOSX) |
| 53 const int kUnrelatedControlVerticalSpacing = 10; |
| 54 #else |
| 52 const int kUnrelatedControlVerticalSpacing = 20; | 55 const int kUnrelatedControlVerticalSpacing = 20; |
| 56 #endif |
| 53 | 57 |
| 54 // Larger vertical spacing between unrelated controls. | 58 // Larger vertical spacing between unrelated controls. |
| 59 #if defined(OS_MACOSX) |
| 60 const int kUnrelatedControlLargeVerticalSpacing = 20; |
| 61 #else |
| 55 const int kUnrelatedControlLargeVerticalSpacing = 30; | 62 const int kUnrelatedControlLargeVerticalSpacing = 30; |
| 63 #endif |
| 56 | 64 |
| 57 // Vertical spacing between the edge of the window and the | 65 // Vertical spacing between the edge of the window and the |
| 58 // top or bottom of a button. | 66 // top or bottom of a button. |
| 59 const int kButtonVEdgeMargin = 9; | 67 const int kButtonVEdgeMargin = 9; |
| 60 | 68 |
| 61 // Vertical spacing between the edge of the window and the | 69 // Vertical spacing between the edge of the window and the |
| 62 // left or right of a button. | 70 // left or right of a button. |
| 63 const int kButtonHEdgeMargin = 13; | 71 const int kButtonHEdgeMargin = 13; |
| 64 | 72 |
| 65 // Vertical spacing between the edge of the window and the | 73 // Vertical spacing between the edge of the window and the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 76 // Indent of checkboxes relative to related text. | 84 // Indent of checkboxes relative to related text. |
| 77 const int kCheckboxIndent = 10; | 85 const int kCheckboxIndent = 10; |
| 78 | 86 |
| 79 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox) | 87 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox) |
| 80 // and the start of its corresponding text. | 88 // and the start of its corresponding text. |
| 81 const int kItemLabelSpacing = 10; | 89 const int kItemLabelSpacing = 10; |
| 82 | 90 |
| 83 } // namespace views | 91 } // namespace views |
| 84 | 92 |
| 85 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 93 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |