| 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 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/views/layout/grid_layout.h" | 9 #include "ui/views/layout/grid_layout.h" |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const int kRelatedButtonHSpacing = 6; | 74 const int kRelatedButtonHSpacing = 6; |
| 75 | 75 |
| 76 // Indent of checkboxes relative to related text. | 76 // Indent of checkboxes relative to related text. |
| 77 const int kCheckboxIndent = 10; | 77 const int kCheckboxIndent = 10; |
| 78 | 78 |
| 79 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox) | 79 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox) |
| 80 // and the start of its corresponding text. | 80 // and the start of its corresponding text. |
| 81 const int kItemLabelSpacing = 10; | 81 const int kItemLabelSpacing = 10; |
| 82 | 82 |
| 83 // Horizontal alignment used for a control's introductory label in a GridLayout. | 83 // Horizontal alignment used for a control's introductory label in a GridLayout. |
| 84 #if defined(OS_MACOSX) | |
| 85 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::TRAILING; | |
| 86 #else | |
| 87 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::LEADING; | 84 const GridLayout::Alignment kControlLabelGridAlignment = GridLayout::LEADING; |
| 88 #endif | |
| 89 | 85 |
| 90 } // namespace views | 86 } // namespace views |
| 91 | 87 |
| 92 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ | 88 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_ |
| OLD | NEW |