| 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_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
| 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 enum class DistanceMetric { | 75 enum class DistanceMetric { |
| 76 // The default padding to add on each side of a button's label. | 76 // The default padding to add on each side of a button's label. |
| 77 BUTTON_HORIZONTAL_PADDING, | 77 BUTTON_HORIZONTAL_PADDING, |
| 78 // The distance between a dialog's edge and the close button in the upper | 78 // The distance between a dialog's edge and the close button in the upper |
| 79 // trailing corner. | 79 // trailing corner. |
| 80 CLOSE_BUTTON_MARGIN, | 80 CLOSE_BUTTON_MARGIN, |
| 81 // The default minimum width of a dialog button. | 81 // The default minimum width of a dialog button. |
| 82 DIALOG_BUTTON_MINIMUM_WIDTH, | 82 DIALOG_BUTTON_MINIMUM_WIDTH, |
| 83 // Dialog widths are snapped upwards to a multiple of this unit. |
| 84 DIALOG_WIDTH_SNAPPING_UNIT, |
| 83 // The spacing between a pair of related horizontal buttons, used for | 85 // The spacing between a pair of related horizontal buttons, used for |
| 84 // dialog layout. | 86 // dialog layout. |
| 85 RELATED_BUTTON_HORIZONTAL, | 87 RELATED_BUTTON_HORIZONTAL, |
| 86 // Horizontal spacing between controls that are logically related. | 88 // Horizontal spacing between controls that are logically related. |
| 87 RELATED_CONTROL_HORIZONTAL, | 89 RELATED_CONTROL_HORIZONTAL, |
| 88 // The spacing between a pair of related vertical controls, used for | 90 // The spacing between a pair of related vertical controls, used for |
| 89 // dialog layout. | 91 // dialog layout. |
| 90 RELATED_CONTROL_VERTICAL, | 92 RELATED_CONTROL_VERTICAL, |
| 91 }; | 93 }; |
| 92 | 94 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 #endif | 267 #endif |
| 266 | 268 |
| 267 NativeWidgetFactory native_widget_factory_; | 269 NativeWidgetFactory native_widget_factory_; |
| 268 | 270 |
| 269 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 271 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace views | 274 } // namespace views |
| 273 | 275 |
| 274 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 276 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |